https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40948

            Bug ID: 40948
           Summary: Transport cost matrix needs form validation
 Change sponsored?: ---
           Product: Koha
           Version: Main
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P5 - low
         Component: System Administration
          Assignee: [email protected]
          Reporter: [email protected]
        QA Contact: [email protected]
                CC: [email protected]

When testing bug 40655, I noticed that while there is an alert that warns you
if you enter an invalid value in a cell "Cost must be expressed as a decimal
number >= 0" it only runs onblur, but you can still submit the form with
invalid values.

If you submit the form with an empty cell, you get an error "There were
problems with your submission Invalid value for Centerville -> Fairfield" and
the cell does not render an input anymore. It also let's you enter non numeric
values which could cause  unexpected results.

To recreate:
1. Enable UseTransportCostMatrix and go to Administration > Transport cost
matrix
2. Click in any cell
3. Uncheck the disabled box (don't click in the cell)
4. Click save
5. Notice the error "There were problems with your submission
Invalid value for Centerville -> Fairview"
6. Notice the form is broken for that cell

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to