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).
*** Bug 5238 has been marked as a duplicate of this bug. ***
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@...
Updating time.
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.
I can confirm Nicole's observation - it looks like the changes proposed by Chris N. have made it into Koha, based on a comparison of these: http://git.koha-community.org/gitweb/?p=wip/koha-fbc.git;a=blob;f=labels/label-edit-template.pl;h=f0a6ab077352c1c60722a0647810eecbbc0ad55b;hb=b8d5a69e4e145f6684507b62267759f1ea465e80 and http://git.koha-community.org/gitweb/?p=koha.git;a=blob;f=labels/label-edit-template.pl;h=f0a6ab077352c1c60722a0647810eecbbc0ad55b;hb=HEAD#l54 http://git.koha-community.org/gitweb/?p=wip/koha-fbc.git;a=blobdiff;f=labels/label-edit-profile.pl;h=b1145548f27b21ff94ce8b78efe5ba72f4ca8464;hp=baaeb8ad763a33c70af34ae3cfae0e83dbe96ac7;hb=b8d5a69e4e145f6684507b62267759f1ea465e80;hpb=e58961f689422aa1d5ed4518820481b16d62cb4a and http://git.koha-community.org/gitweb/?p=koha.git;a=blob;f=labels/label-edit-profile.pl;h=b1145548f27b21ff94ce8b78efe5ba72f4ca8464;hb=HEAD#l55 http://git.koha-community.org/gitweb/?p=wip/koha-fbc.git;a=blobdiff;f=labels/label-edit-layout.pl;h=470092d90e8ccb1a1391568703cb1c6eafb89ac4;hp=a1879af19061e0be7cecce26fa4361e9a5d8bdd9;hb=b8d5a69e4e145f6684507b62267759f1ea465e80;hpb=e58961f689422aa1d5ed4518820481b16d62cb4a and http://git.koha-community.org/gitweb/?p=koha.git;a=blob;f=labels/label-edit-layout.pl;h=470092d90e8ccb1a1391568703cb1c6eafb89ac4;hb=HEAD Saving a template with an empty description gives it the description "Default description". Marking as "patch pushed" and fixed.