[Koha-bugs] [Bug 17098] Validation problems with form field type "number" (decimal separator)

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Mar 1 12:18:16 CET 2018


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

--- Comment #9 from Katrin Fischer <katrin.fischer at bsz-bw.de> ---
I ended up patching it like that:

-    <li><label for="amount">Amount: </label><input type="number" name="amount"
id="amount" required="required" value="" step="any" min="0" /> Example:
5.00</li>
+    <li><label for="amount">Amount: </label><input type="text"
pattern="\d+(\.\d{2})?" name="amount" id="amount" required="required" value=""
step="any" min="0" /> Example: 5.00</li>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list