Bug 8802: On editing a library group category type is not set
authorJonathan Druart <jonathan.druart@biblibre.com>
Wed, 1 Apr 2015 14:23:48 +0000 (16:23 +0200)
committerMason James <mtj@kohaaloha.com>
Sat, 25 Jul 2015 13:20:13 +0000 (01:20 +1200)
The category type was always set to 'searchdomain', because it's the
first of the dropdown list.

Test plan:
1/ Create or edit a library group
2/ Set the category type to "properties"
3/ Edit it again
4/ Confirm "properties" is correctly selected

Signed-off-by: Nick Clemens <nick@quecheelibrary.org>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Signed-off-by: Mason James <mtj@kohaaloha.com>

admin/branches.pl

index 9e6b14a..dbc36ac 100755 (executable)
@@ -284,7 +284,7 @@ sub editcatform {
        my @cats;
     my $data;
        if ($categorycode) {
-        my $data = GetBranchCategory($categorycode);
+        $data = GetBranchCategory($categorycode);
         $innertemplate->param(
             categorycode    => $data->{'categorycode'},
             categoryname    => $data->{'categoryname'},