Lines 162-168
if ($op eq 'add_form') {
Link Here
|
162 |
} |
162 |
} |
163 |
} |
163 |
} |
164 |
$sth->finish; |
164 |
$sth->finish; |
165 |
print "Content-Type: text/html\n\n<META HTTP-EQUIV=Refresh CONTENT=\"0; URL=authorised_values.pl?searchfield=".$new_category."&offset=$offset\"></html>"; |
165 |
print $input->redirect("/cgi-bin/koha/admin/authorised_values.pl?searchfield=$new_category&offset=$offset"); |
166 |
exit; |
166 |
exit; |
167 |
} |
167 |
} |
168 |
} |
168 |
} |
Lines 192-199
if ($op eq 'add_form') {
Link Here
|
192 |
$sth->execute($id, $branchcode); |
192 |
$sth->execute($id, $branchcode); |
193 |
} |
193 |
} |
194 |
} |
194 |
} |
195 |
print "Content-Type: text/html\n\n<META HTTP-EQUIV=Refresh CONTENT=\"0; URL=authorised_values.pl?searchfield=".$input->param('category')."&offset=$offset\"></html>"; |
195 |
my $category = $input->param('category'); |
196 |
exit; |
196 |
print $input->redirect("/cgi-bin/koha/admin/authorised_values.pl?searchfield=$category&offset=$offset"); |
|
|
197 |
exit; |
197 |
} |
198 |
} |
198 |
} |
199 |
} |
199 |
if ( $duplicate_entry ) { |
200 |
if ( $duplicate_entry ) { |
Lines 224-231
if ($op eq 'add_form') {
Link Here
|
224 |
my $id = $input->param('id'); |
225 |
my $id = $input->param('id'); |
225 |
my $sth=$dbh->prepare("delete from authorised_values where id=?"); |
226 |
my $sth=$dbh->prepare("delete from authorised_values where id=?"); |
226 |
$sth->execute($id); |
227 |
$sth->execute($id); |
227 |
print "Content-Type: text/html\n\n<META HTTP-EQUIV=Refresh CONTENT=\"0; URL=authorised_values.pl?searchfield=$searchfield&offset=$offset\"></html>"; |
228 |
print $input->redirect("/cgi-bin/koha/admin/authorised_values.pl?searchfield=$searchfield&offset=$offset"); |
228 |
exit; |
229 |
exit; |
229 |
# END $OP eq DELETE_CONFIRMED |
230 |
# END $OP eq DELETE_CONFIRMED |
230 |
################## DEFAULT ################################## |
231 |
################## DEFAULT ################################## |
231 |
} else { # DEFAULT |
232 |
} else { # DEFAULT |