koha-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Koha-cvs] koha/serials serials-edit.pl


From: Henri-Damien LAURENT
Subject: [Koha-cvs] koha/serials serials-edit.pl
Date: Fri, 18 May 2007 12:00:49 +0000

CVSROOT:        /cvsroot/koha
Module name:    koha
Changes by:     Henri-Damien LAURENT <hdl>      07/05/18 12:00:49

Modified files:
        serials        : serials-edit.pl 

Log message:
        Adding redirection to serials-collection.pl if no serials selected for 
edition.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/serials/serials-edit.pl?cvsroot=koha&r1=1.7&r2=1.8

Patches:
Index: serials-edit.pl
===================================================================
RCS file: /cvsroot/koha/koha/serials/serials-edit.pl,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -b -r1.7 -r1.8
--- serials-edit.pl     18 May 2007 09:25:06 -0000      1.7
+++ serials-edit.pl     18 May 2007 12:00:49 -0000      1.8
@@ -17,7 +17,7 @@
 # Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
 # Suite 330, Boston, MA  02111-1307 USA
 
-# $Id: serials-edit.pl,v 1.7 2007/05/18 09:25:06 hdl Exp $
+# $Id: serials-edit.pl,v 1.8 2007/05/18 12:00:49 hdl Exp $
 
 =head1 NAME
 
@@ -101,6 +101,12 @@
   }
 }
 
+unless (scalar(@serialids)){
+  my 
$string="serials-collection.pl?subscriptionid=".join(",",@subscriptionids);
+  $string=~s/,$//;
+ warn $string; 
+  print $query->redirect($string);
+}
 my ($template, $loggedinuser, $cookie)
 = get_template_and_user({template_name => "serials/serials-edit.tmpl",
                 query => $query,




reply via email to

[Prev in Thread] Current Thread [Next in Thread]