---
admin/branches.pl | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/admin/branches.pl b/admin/branches.pl
index 6ce54a3..8525f1a 100755
--- a/admin/branches.pl
+++ b/admin/branches.pl
@@ -231,8 +231,10 @@ sub editbranchform {
# printer loop
foreach my $thisprinter ( keys %$printers ) {
+
my $selected = 1
- if $oldprinter eq $printers->{$thisprinter}->{'printqueue'};
+ if $oldprinter and ( $oldprinter eq $printers->{$thisprinter} );
+
my %row = (
value => $thisprinter,
selected => $selected,
--
1.5.6.5
_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha.org/mailman/listinfo/koha-patches