Bug 10222: Error when saving Demco label templates
authorChris Nighswonger <chris.nighswonger@gmail.com>
Thu, 16 Apr 2015 16:07:29 +0000 (12:07 -0400)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 7 Dec 2017 12:37:11 +0000 (09:37 -0300)
commitf8a25307c4d748ee3646cec8753d91d73f1cd58d
treeb37a9e98bd0ea6f91220fab36066c060ac731b3d
parente46ab82e2855597274fb927f2eea7265eb4b7565
Bug 10222: Error when saving Demco label templates

This patch fixes a bug whereby if you open either of the
Demco label templates (loaded by the sample data) and
click "save" without making any changes you will get an
error:

Can't bless non-reference value at C4/Creators/Profile.pm
line 92.

It also fixes another minor bug in the creator sample data.

To test:

1. Install all sample data in a clean database.
2. In the label tool, edit either of the Demco label templates.
3. Save the template and observe the error mentioned above.
4. Drop and recreate the database.
5. Apply the patch.
6. Repeate steps 1-3 and note the successful save.

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
installer/data/mysql/en/optional/sample_creator_data.sql