Bugzilla – Attachment 117015 Details for
Bug 27408
Update intranet-tmpl/prog/en/modules/members/mancredit.tt for ACC2
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 27408: (follow-up) Updates to accommodate currency entry
Bug-27408-follow-up-Updates-to-accommodate-currenc.patch (text/plain), 1.94 KB, created by
David Nind
on 2021-02-18 18:31:29 UTC
(
hide
)
Description:
Bug 27408: (follow-up) Updates to accommodate currency entry
Filename:
MIME Type:
Creator:
David Nind
Created:
2021-02-18 18:31:29 UTC
Size:
1.94 KB
patch
obsolete
>From 5b94d51b4d4106a636c8070ccc9be4204180d566 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Thu, 21 Jan 2021 14:29:03 +0000 >Subject: [PATCH] Bug 27408: (follow-up) Updates to accommodate currency entry > >This patch makes two modifications in order to allow the entry of >currency strings (e.g. 1.25). >- Inputmode changed to "decimal" >- Regex pattern changed to "^\d+(\.\d{2})?$" as found in > admin/debit_types.tt > >To test, apply the patch and test entry of various strings in the manual >credit "amount" field. Confirm that the field only accepts digits or >digits followed by a decimal and two digits. > >Signed-off-by: David Nind <david@davidnind.com> >--- > koha-tmpl/intranet-tmpl/prog/en/modules/members/mancredit.tt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/mancredit.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/mancredit.tt >index 93821b1a27..10a5071e93 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/mancredit.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/mancredit.tt >@@ -56,7 +56,7 @@ > <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" size="50" id="desc" /></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="text" inputmode="numeric" pattern="[0-9]*" name="amount" id="amount" required="required" value=""/> Example: 5.00</li> >+ <li><label for="amount">Amount: </label><input type="text" inputmode="decimal" pattern="^\d+(\.\d{2})?$" name="amount" id="amount" required="required" value=""/> Example: 5.00</li> > </ol> > </fieldset> > >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 27408
:
115396
|
115467
|
115469
|
115483
|
115549
|
115550
|
117014
|
117015
|
117707
|
117708