[Koha-bugs] [Bug 35263] Cannot update patron categories

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Nov 6 11:16:48 CET 2023


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

--- Comment #2 from Pedro Amorim <pedro.amorim at ptfs-europe.com> ---
Created attachment 158496
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=158496&action=edit
Bug 35263: Default 'can_place_ill_in_opac' to 1

If ILLModule sys pref is 'off', this input param is undef. The database does
not allow it to be nullable causing an error.
Check if its defined (i.e. the option was submitted) and use that, if not
default to 1

Test plan, k-t-d:
1) Edit an existing patron category, visit:
/cgi-bin/koha/admin/categories.pl?op=add_form&categorycode=B
2) Click 'Save' at the bottom of the form
3) Notice a yellow box is shown with an error message
4) Apply patch. Repeat steps 1-3. Notice it now updates successfully.

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


More information about the Koha-bugs mailing list