[Koha-bugs] [Bug 10267] No error message when entering an invalid cardnumber

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Apr 24 17:33:53 CEST 2017


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

Jonathan Druart <jonathan.druart at bugs.koha-community.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jonathan.druart at bugs.koha-c
                   |                            |ommunity.org
             Status|Signed Off                  |Failed QA

--- Comment #11 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
Aleisha, the last case is wrong, maxlength_cardnumber is evaluated false and
the message will be "Card number must not be more than  characters". That
should not be possible (because C4::Members::get_cardnumber_length returns
max=16), but the code does not make sense as it is.

Moreover you should not use the keypress event but change, that way a paste or
delete in the input will update the message as well.

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


More information about the Koha-bugs mailing list