[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 11:29:27 CET 2023
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=35263
--- Comment #12 from Pedro Amorim <pedro.amorim at ptfs-europe.com> ---
Created attachment 158588
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=158588&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