https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22734
--- Comment #3 from sandbo...@biblibre.com <sandbo...@biblibre.com> --- Created attachment 88322 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=88322&action=edit Bug 22734: Fund not marked as mandatory when ordering from a staged file This patch does some refactoring of JavaScript to make handling of required fields more robust. It also moves some template JavaScript to the footer and some to a separate file. A fallback "pattern" attribute is added to the quantity field, requiring 0-9+ values. The "required" property of the funds dropdown is now dependent on the value set under the "Default accounting details" tab. If a default is selected, the individual item funds are preselected and not marked required. To test, apply the patch and begin the process of ordering from a staged file. - Select all items to import. - Under each item, the fund should be marked mandatory. - The quantity field should accept only numbers. - Select the "Default accounting details" tab and select a default fund. - Return to the "Select to import" tab. Your selected default fund should now be preselected under each item. The fund should no longer be marked required. Un-selecting a default fund should result in each item fund select becoming required. Signed-off-by: Séverine QUEUNE <severine.que...@bulac.fr> Signed-off-by: Séverine QUEUNE <severine.que...@bulac.fr> -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list Koha-bugs@lists.koha-community.org http://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/