To re-create. 1) Go to Tools > Label creator 2) If you don't have a printer profile defined, create one. 3) Go to manage > Printer profiles 4) Click the 'edit' button on any of the profiles. This will cause a software error; the plack error log will show Can't use string ("fields") as a HASH ref while "strict refs" in use at /usr/share/koha/lib/C4/Creators/Lib.pm line 147.
Created attachment 63044 [details] [review] Bug 18535 - Clicking 'edit printer profile' in label creator causes software error 1) Go to Tools > Label creator 2) If you don't have a printer profile defined, create one. 3) Go to manage > Printer profiles 4) Click the 'edit' button on any of the profiles. 5) INTERNAL SERVER ERROR! "Can't use string ("fields") as a HASH ref while "strict refs" in use at /usr/share/koha/lib/C4/Creators/Lib.pm line 147" 6) Apply patch 7) Click the 'edit' button on any of the profiles. 8) Things work as expected
Created attachment 63131 [details] [review] Bug 18535 - Clicking 'edit printer profile' in label creator causes software error 1) Go to Tools > Label creator 2) If you don't have a printer profile defined, create one. 3) Go to manage > Printer profiles 4) Click the 'edit' button on any of the profiles. 5) INTERNAL SERVER ERROR! "Can't use string ("fields") as a HASH ref while "strict refs" in use at /usr/share/koha/lib/C4/Creators/Lib.pm line 147" 6) Apply patch 7) Click the 'edit' button on any of the profiles. 8) Things work as expected Bug reproduced, is fixed by this patch Signed-off-by: Marc Véron <veron@veron.ch>
Created attachment 63419 [details] [review] Bug 18535 - Clicking 'edit printer profile' in label creator causes software error 1) Go to Tools > Label creator 2) If you don't have a printer profile defined, create one. 3) Go to manage > Printer profiles 4) Click the 'edit' button on any of the profiles. 5) INTERNAL SERVER ERROR! "Can't use string ("fields") as a HASH ref while "strict refs" in use at /usr/share/koha/lib/C4/Creators/Lib.pm line 147" 6) Apply patch 7) Click the 'edit' button on any of the profiles. 8) Things work as expected Bug reproduced, is fixed by this patch Signed-off-by: Marc Véron <veron@veron.ch> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Pushed to master for 17.05, thanks Nick!
This patch has been pushed to 16.11.x and will be in 16.11.08.
Pushed to 3.22.x for 3.22.21
Pushed to 16.05.x, for 16.05.13 release