[Koha-bugs] [Bug 24001] Cannot edit card template

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Mar 8 17:59:05 CET 2022


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

--- Comment #47 from The Minh Luong <the-minh.luong at inlibro.com> ---
Created attachment 131495
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=131495&action=edit
Bug 24001: Fix Card template/rpinter profile creation and edit

This patch adjusts the template/profiles to use the default of '0'
This should probably be NULL, and the columns foreign keys, this code
could use a further rewrite, but this should fix a long standing bug

To test:
 1 - Using the fresh install, with all the sample data.
 2 - Go to Home › Tools › Patron card creator › Templates
 3 - New > Card template
 4 - Save
 5 - Error: DBD::mysql::st execute failed: Incorrect integer value: '' for
column 'profile_id' at row 1
 6 - Edit an existing template
 7 - Save
 8 - Error: Can't bless non-reference value at
/kohadevbox/koha/C4/Creators/Profile.pm line 89
 9 - Create a new 'Printer profile'
10 - Save
11 - Error: DBD::mysql::st execute failed: Incorrect integer value: '' for
column 'template_id' at row 1
12 - Apply the attached patch.
13 - Verify you can create a new 'Card template' and 'Printer profile' with no
errors
14 - Verify you can edit and save both of the newly created objects above

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


More information about the Koha-bugs mailing list