[Koha-cvs] CVS: koha/admin branches.pl,1.26,1.27

Owen Leonard oleonard at users.sourceforge.net
Tue Nov 30 18:40:49 CET 2004


Update of /cvsroot/koha/koha/admin
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13442/admin

Modified Files:
	branches.pl 
Log Message:
Adding branchname to output for deletion confirmation screen (Bug 552)

Index: branches.pl
===================================================================
RCS file: /cvsroot/koha/koha/admin/branches.pl,v
retrieving revision 1.26
retrieving revision 1.27
diff -C2 -r1.26 -r1.27
*** branches.pl	11 Mar 2004 05:42:56 -0000	1.26
--- branches.pl	30 Nov 2004 17:40:46 -0000	1.27
***************
*** 65,68 ****
--- 65,69 ----
  my $input = new CGI;
  my $branchcode=$input->param('branchcode');
+ my $branchname=$input->param('branchname');
  my $categorycode = $input->param('categorycode');
  my $op = $input->param('op');
***************
*** 115,118 ****
--- 116,120 ----
  		default($message);
  	} else {
+ 		$template->param(branchname => $branchname);
  		$template->param(delete_confirm => 1);
  		$template->param(branchcode => $branchcode);
***************
*** 122,126 ****
  	deletebranch($branchcode);
  	$template->param(else => 1);
! 	default("The branch with code $branchcode has been deleted.");
  } elsif ($op eq 'editcategory') {
  	# If the user has pressed the "add new category" or "modify" buttons.
--- 124,128 ----
  	deletebranch($branchcode);
  	$template->param(else => 1);
! 	default("The branch \"$branchname\" ($branchcode) has been deleted.");
  } elsif ($op eq 'editcategory') {
  	# If the user has pressed the "add new category" or "modify" buttons.





More information about the Koha-cvs mailing list