Bug #6052 - BranchTransfer Limit :Adds a default value
authorAlex Arnaud <alex.arnaud@biblibre.com>
Fri, 8 Apr 2011 08:10:16 +0000 (10:10 +0200)
committerChris Cormack <chrisc@catalyst.net.nz>
Fri, 8 Apr 2011 22:41:14 +0000 (10:41 +1200)
Signed-off-by: Christophe Croullebois <christophe.croullebois@biblibre.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
admin/branch_transfer_limits.pl

index 1d85937..abba127 100755 (executable)
@@ -65,7 +65,7 @@ for my $thisbranch (sort { $branches->{$a}->{branchname} cmp $branches->{$b}->{b
 
 # Set the template language for the correct limit type
 my $limit_phrase = 'Collection Code';
-my $limitType = C4::Context->preference("BranchTransferLimitsType");
+my $limitType = C4::Context->preference("BranchTransferLimitsType") || "ccode";
 if ( $limitType eq 'itemtype' ) {
        $limit_phrase = 'Item Type';
 }