[Koha-patches] [PATCH] [SIGNED-OFF] Bug 5939: "Save and edit items" button broken

Nicole C. Engard nengard at bywatersolutions.com
Wed Mar 23 22:08:35 CET 2011


From: Jared Camins-Esakov <jcamins at bywatersolutions.com>

When modifying an existing biblio, the "Save and edit items" option in the
"Save" menu did not redirect to the edit items screen. Instead, it redirected to
the regular details screen.

Signed-off-by: Nicole C. Engard <nengard at bywatersolutions.com>
---
 cataloguing/addbiblio.pl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/cataloguing/addbiblio.pl b/cataloguing/addbiblio.pl
index da58166..cd5691e 100755
--- a/cataloguing/addbiblio.pl
+++ b/cataloguing/addbiblio.pl
@@ -933,7 +933,7 @@ if ( $op eq "addbiblio" ) {
         else {
             ( $biblionumber, $oldbibitemnum ) = AddBiblio( $record, $frameworkcode );
         }
-        if ($mode ne "popup" && !$is_a_modif && $redirect eq "items"){
+        if ($redirect eq "items" || ($mode ne "popup" && !$is_a_modif && $redirect ne "view")){
             print $input->redirect(
                 "/cgi-bin/koha/cataloguing/additem.pl?biblionumber=$biblionumber&frameworkcode=$frameworkcode"
             );
-- 
1.7.2.3



More information about the Koha-patches mailing list