Bug 5203

Summary: Creating a label template causes fatal error if description field is empty
Product: Koha Reporter: Liz Rea <wizzyrea>
Component: Label/patron card printingAssignee: Chris Nighswonger <cnighswonger>
Status: CLOSED FIXED QA Contact: Bugs List <koha-bugs>
Severity: minor    
Priority: PATCH-Sent (DO NOT USE) CC: chris, magnus, nengard
Version: rel_3_2   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:

Description Liz Rea 2010-09-07 20:27:32 UTC
Attempting to save a label template causes a fatal error 

Software error:

Can't call method "save" without a package or object reference at /home/liz/kohaclone/labels/label-edit-template.pl line 102.
For help, please send mail to the webmaster (webmaster@koha-deb), giving this error message and the time and date of the error.

when the default text is removed and no text is typed into the description field (it's empty).
Comment 1 Chris Nighswonger 2010-09-23 17:52:14 UTC
*** Bug 5238 has been marked as a duplicate of this bug. ***
Comment 2 Chris Nighswonger 2010-09-23 17:57:16 UTC
This is due to the underlying script not having any defaults hard coded which results in skewed hash elements when the parameter array is coerced into a hash at a later point.

This also occurs in layouts and profiles. This patch adds defaults to all three.

No documentation changes are necessary.

The patch is available here:

http://git.koha-community.org/gitweb/?p=wip/koha-fbc.git;a=shortlog;h=refs/heads/k_bug_5203

Please test, sign-off, and submit to patches@...
Comment 3 Chris Nighswonger 2010-09-23 17:57:51 UTC
Updating time.
Comment 4 Nicole C. Engard 2010-12-16 16:57:42 UTC
has this patch been pushed? When I try  (Before applying the patch) I can't clear out the description at all.  I get no error, but if I save with an empty description it puts the 'default description' in again.