[Koha-bugs] [Bug 35263] Cannot update patron categories
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Nov 7 22:53:18 CET 2023
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35263
--- Comment #16 from Katrin Fischer <katrin.fischer at bsz-bw.de> ---
Created attachment 158635
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=158635&action=edit
Bug 35263: (QA follow-up) Update code
Thank you Jonathan. I first tried with '||' but it would fallback to 1
for either undef or 0 (we want the first case, but not the second).
But using '//' instead, it only falls back to 1 if undef, and not when 0.
Today I learned between '||' and '//'! Thanks!
>From perldoc.perl.org (relating to '//'):
'In fact, it's exactly the same as ||, except that it tests the left hand
side's definedness instead of its truth.'
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list