From 33fc864c189f4b2cf32310ab4d4ff639417461e8 Mon Sep 17 00:00:00 2001 From: Julian Maurice Date: Fri, 21 Aug 2015 11:02:00 +0200 Subject: [PATCH] Bug 7957: Redirect after creating a new routing list This avoids creating the same list multiple times when reloading the page --- serials/routinglist.pl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/serials/routinglist.pl b/serials/routinglist.pl index f8455d3..d1e4b86 100755 --- a/serials/routinglist.pl +++ b/serials/routinglist.pl @@ -64,6 +64,9 @@ if($op && $op eq 'savenew') { my $subscriptionid = $input->param('subscriptionid'); $routinglistid = AddRoutingList($subscriptionid, $title); + print $input->redirect('/cgi-bin/koha/serials/routinglist.pl?routinglistid=' + . $routinglistid); + exit; } else { $routinglistid = $input->param('routinglistid'); } -- 1.9.1