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)
committerTomas Cohen Arazi <tomascohen@theke.io>
Tue, 23 Jun 2015 13:14:13 +0000 (10:14 -0300)
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: Tomas Cohen Arazi <tomascohen@theke.io>
admin/branches.pl

index b240578..4a56f9d 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'},