[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 9 11:36:13 CET 2017


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

--- Comment #4 from Katrin Fischer <katrin.fischer at bsz-bw.de> ---
At the moment this problem exists in 2 files: maninvoice.tt and mancredit.tt.
Pasting the fix we did on our installations here for making a proper patch
later:


--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/maninvoice.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/maninvoice.tt
@@ -70,7 +70,7 @@ type_fees['[% invoice_types_loo.authorised_value %]'] = "[%
invoice_types_loo.li
        <li><label for="barcode">Barcode: </label><input type="text"
name="barcode" id="barcode" /></li>
        <li><label for="desc">Description: </label><input type="text"
name="desc" id="desc" size="50" /></li>
     <li><label for="note">Note: </label><input type="text" name="note"
size="50" id="note" /></li>
-    <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>
        </ol></fieldset>
 <fieldset class="action"><input type="submit" name="add" value="Save" /> <a
class="cancel" href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=[%
borrowernumber %]">Cancel</a></fieldset>
 </form>

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


More information about the Koha-bugs mailing list