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

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Nov 19 10:59:05 CET 2019


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

--- Comment #1 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
This is even worst with strict_sql_modes turned on, the creation of a new
template is impossible:

DBD::mysql::st execute failed: Incorrect integer value: '' for column
'profile_id' at row 1 [for Statement "INSERT INTO creator_templates (`creator`,
`label_height`, `top_margin`, `units`, `col_gap`, `row_gap`,
`left_text_margin`, `rows`, `page_height`, `template_code`, `top_text_margin`,
`label_width`, `left_margin`, `cols`, `profile_id`, `page_width`,
`template_desc`) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?);" with ParamValues:
0='Patroncards', 1="0", 2="0", 3="POINT", 4="0", 5="0", 6=0, 7="0", 8="0",
9="DEFAULT TEMPLATE", 10=0, 11="0", 12="0", 13="0", 14='', 15="0", 16="Default
description"] at /kohadevbox/koha/C4/Creators/Template.pm line 199.
Database returned the following error: Incorrect integer value: '' for column
'profile_id' at row 1 at /kohadevbox/koha/C4/Creators/Template.pm line 201.

There is a logic issue in the controller, the printer profile list is not
passed to the template (only passed when editing).

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


More information about the Koha-bugs mailing list