]> git.koha-community.org Git - koha.git/commit
Bug 22878: Do not pass layout_id on creating a layout
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 10 May 2019 17:27:40 +0000 (12:27 -0500)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Thu, 30 May 2019 07:11:10 +0000 (08:11 +0100)
commitf1eb918616666fe23f9d13aa5c0fea72a6d890d1
treec3a405fd3d0e804e8ee3570fed518b892a2e5c59
parente0eea1b15d727085a3a22932d813c9fe3b8f8088
Bug 22878: Do not pass layout_id on creating a layout

Attempting to create a patron card layout with mysql strict mode on gives the following error:
  DBD::mysql::st execute failed: Incorrect integer value: '' for column 'layout_id' at row 1

Test plan:
- Turn on sql_strict_modes
- Create a new patron card
=> Must success with this patch applied

Signed-off-by: Liz Rea <wizzyrea@gmail.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 8d53fae9494b50c0cf2dcc98b18982b0d8fc416f)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
C4/Creators/Layout.pm