Bug 3706 Label templates/layouts do not save properly
authorChris Nighswonger <cnighswonger@foundations.edu>
Mon, 12 Oct 2009 15:50:59 +0000 (11:50 -0400)
committerHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Wed, 14 Oct 2009 16:19:08 +0000 (18:19 +0200)
commita46714b1d7afb5bec1f40503e26cb7c1d61d400a
tree55e766eef4a6432aa402187007c87be143c086f4
parent5d5c9b32776210a7dbb12eae8ec02768966d8789
Bug 3706 Label templates/layouts do not save properly

Two issues here:

1. No radio box was selected by default in the format section of the layout editor. This actually needs some additional attention to allow the user
to establish a default method of entering the format string. As noted in comments in the code, this would probably be best implimented by adding yet
another syspref. However, I don't have time atm.

2. On saving a new template, if no profile was assigned to the new template, the script threw an error and died.

Both issues are addressed in this patch.

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
C4/Labels/Profile.pm
koha-tmpl/intranet-tmpl/prog/en/modules/labels/label-edit-layout.tmpl
labels/label-edit-layout.pl
labels/label-edit-template.pl