Bug 18535

Summary: Clicking 'edit printer profile' in label creator causes software error
Product: Koha Reporter: Barton Chittenden <barton>
Component: Label/patron card printingAssignee: Nick Clemens <nick>
Status: CLOSED FIXED QA Contact: Marcel de Rooy <m.de.rooy>
Severity: normal    
Priority: P5 - low CC: jonathan.druart, julian.maurice, katrin.fischer, kyle, m.de.rooy, mtj, nick, veron
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: Trivial patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Bug Depends on: 17900    
Bug Blocks:    
Attachments: Bug 18535 - Clicking 'edit printer profile' in label creator causes software error
Bug 18535 - Clicking 'edit printer profile' in label creator causes software error
Bug 18535 - Clicking 'edit printer profile' in label creator causes software error

Description Barton Chittenden 2017-05-03 20:06:41 UTC
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.
Comment 1 Nick Clemens 2017-05-03 20:45:45 UTC
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
Comment 2 Marc Véron 2017-05-04 16:06:12 UTC
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>
Comment 3 Marcel de Rooy 2017-05-12 09:33:38 UTC
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>
Comment 4 Kyle M Hall 2017-05-12 12:52:39 UTC
Pushed to master for 17.05, thanks Nick!
Comment 5 Katrin Fischer 2017-05-14 09:53:05 UTC
This patch has been pushed to 16.11.x and will be in 16.11.08.
Comment 6 Julian Maurice 2017-05-22 10:42:44 UTC
Pushed to 3.22.x for 3.22.21
Comment 7 Mason James 2017-05-24 02:35:56 UTC
Pushed to 16.05.x, for 16.05.13 release