[Koha-bugs] [Bug 34338] Cardnumbers should be trimmed before insertion
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Jul 21 11:46:38 CEST 2023
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=34338
Jonathan Druart <jonathan.druart+koha at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |katrin.fischer at bsz-bw.de,
| |m.de.rooy at rijksmuseum.nl
Status|ASSIGNED |In Discussion
--- Comment #1 from Jonathan Druart <jonathan.druart+koha at gmail.com> ---
commit 785af7310daa4633359755add9474e81f108d022
Bug 6521 - allow blank cardnumbers to not trigger "already in use"
+ # If the cardnumber is blank, treat it as null.
+ $newdata{'cardnumber'} = undef if $newdata{'cardnumber'} =~ /^\s*$/;
What's the expected behaviour?
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list