Bugzilla – Attachment 113338 Details for
Bug 26946
Limit size of cash register's name on the UI
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 26946: Set maxlength for cash register name
Bug-26946-Set-maxlength-for-cash-register-name.patch (text/plain), 2.85 KB, created by
ByWater Sandboxes
on 2020-11-10 10:51:12 UTC
(
hide
)
Description:
Bug 26946: Set maxlength for cash register name
Filename:
MIME Type:
Creator:
ByWater Sandboxes
Created:
2020-11-10 10:51:12 UTC
Size:
2.85 KB
patch
obsolete
>From 66b7e6f22284379ccfa6a6f0ae2bc64b3a4767d7 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Mon, 9 Nov 2020 12:57:13 +0000 >Subject: [PATCH] Bug 26946: Set maxlength for cash register name > >The cash register names is limited to 24 characters at the database >level and so that restriction should also be reflected in the UI. > >Test plan >1/ Add or Edit a cash register ( admin > accounts > cash registers ) >2/ Note that you can enter a cash register name longer than 24 >characters, but upon save the value is truncated. >3/ Apply patch >4/ Note you can not longer enter a cash register name longer than 24 >characters. >5/ Signoff > >Signed-off-by: Sally <sally.healey@cheshiresharedservices.gov.uk> >--- > koha-tmpl/intranet-tmpl/prog/en/modules/admin/cash_registers.tt | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/cash_registers.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/cash_registers.tt >index 8b4784d448..95b3c04761 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/cash_registers.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/cash_registers.tt >@@ -75,13 +75,13 @@ > > <li> > <label for="name" class="required">Name: </label> >- <input type="text" name="name" id="name" size="80" value="[% cash_register.name | html %]" class="required" /> >+ <input type="text" name="name" id="name" size="24" maxlength="24" value="[% cash_register.name | html %]" class="required" /> > <span class="required">Required</span> > </li> > > <li> > <label for="description">Description: </label> >- <input type="text" name="description" id="description" value="[% cash_register.description | html %]"/> >+ <input type="text" name="description" id="description" size="24" value="[% cash_register.description | html %]"/> > </li> > <li> > <label for="branch">Library: </label> >@@ -96,7 +96,7 @@ > > <li> > <label for="starting_float">Initial float: </label> >- <input type="text" pattern='^\d+(?:\.\d{0,2})$' name="starting_float" id="starting_float" value="[% cash_register.starting_float | $Price on_editing => 1 %]" /> >+ <input type="text" pattern='^\d+(?:\.\d{0,2})$' name="starting_float" id="starting_float" size="24" value="[% cash_register.starting_float | $Price on_editing => 1 %]" /> > </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 26946
:
113310
|
113338
|
114269