Lines 76-82
if ( $branch and my $library = Koha::Libraries->find($branch) ) {
Link Here
|
76 |
old_desk => $old_desk_name, |
76 |
old_desk => $old_desk_name, |
77 |
}; |
77 |
}; |
78 |
} |
78 |
} |
79 |
if ( defined($userenv_register_id) |
79 |
if ( defined($register_id) |
80 |
&& ( $userenv_register_id ne $register_id ) ) |
80 |
&& ( $userenv_register_id ne $register_id ) ) |
81 |
{ |
81 |
{ |
82 |
my $old_register_name = C4::Context->userenv->{'register_name'} || ''; |
82 |
my $old_register_name = C4::Context->userenv->{'register_name'} || ''; |
Lines 110-116
foreach ($query->param()) {
Link Here
|
110 |
}; |
110 |
}; |
111 |
} |
111 |
} |
112 |
|
112 |
|
113 |
my $referer = $query->param('oldreferer') || $ENV{HTTP_REFERER}; |
113 |
my $referer = $query->param('oldreferer') || $ENV{HTTP_REFERER} || ''; |
114 |
$referer =~ /set-library\.pl/ and undef $referer; # avoid sending them back to this same page. |
114 |
$referer =~ /set-library\.pl/ and undef $referer; # avoid sending them back to this same page. |
115 |
|
115 |
|
116 |
if (scalar @updated and not scalar @recycle_loop) { |
116 |
if (scalar @updated and not scalar @recycle_loop) { |
117 |
- |
|
|