[Koha-cvs] CVS: koha/admin systempreferences.pl,1.13,1.14

Steve Tonnesen tonnesen at users.sourceforge.net
Wed Jun 11 20:57:21 CEST 2003


Update of /cvsroot/koha/koha/admin
In directory sc8-pr-cvs1:/tmp/cvs-serv24435

Modified Files:
	systempreferences.pl 
Log Message:
Using "boolean_preference()" call to get current status of YesNo type system
preferences.


Index: systempreferences.pl
===================================================================
RCS file: /cvsroot/koha/koha/admin/systempreferences.pl,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -r1.13 -r1.14
*** systempreferences.pl	11 Jun 2003 18:45:36 -0000	1.13
--- systempreferences.pl	11 Jun 2003 18:57:18 -0000	1.14
***************
*** 175,179 ****
  	} elsif ($data->{'type'} eq 'YesNo') {
  		$template->param('type-yesno' => 1);
! 		($data->{'value'} eq 'yes') ? ($template->param('value-yes'=>1)) : ($template->param('value-no'=>1));
  	} elsif ($data->{'type'} eq 'free') {
  		$template->param('type-free' => 1);
--- 175,180 ----
  	} elsif ($data->{'type'} eq 'YesNo') {
  		$template->param('type-yesno' => 1);
! 		$data->{'value'}=C4::Context->boolean_preference($data->{'variable'});
! 		($data->{'value'} eq '1') ? ($template->param('value-yes'=>1)) : ($template->param('value-no'=>1));
  	} elsif ($data->{'type'} eq 'free') {
  		$template->param('type-free' => 1);





More information about the Koha-cvs mailing list