From: Frederic Demians Date: Sat, 17 May 2008 21:23:12 +0000 (+0200) Subject: Fix bug in /admin/z3950servers.pl X-Git-Tag: v3.00.00-stableRC1~356 X-Git-Url: http://git.rot13.org/?a=commitdiff_plain;h=a3d111ae97f80c6252d4cccd9cbd31b1a2ca8d3c;p=koha.git Fix bug in /admin/z3950servers.pl Third attempt to correct a bug affecting this page. Combo lists wasn't reflecting DB content in modification. To Joshua: You have to apply patch 2 first (patch 1 isn't required) since I applied this quick fix without rolling back to original state! Signed-off-by: Joshua Ferraro --- diff --git a/admin/z3950servers.pl b/admin/z3950servers.pl index 50df19e0f6..37d577c7c6 100755 --- a/admin/z3950servers.pl +++ b/admin/z3950servers.pl @@ -78,17 +78,10 @@ if ($op eq 'add_form') { $data=$sth->fetchrow_hashref; $sth->finish; } - - $template->param(host => $data->{'host'}, - port => $data->{'port'}, - db => $data->{'db'}, - userid => $data->{'userid'}, - password => $data->{'password'}, - checked => $data->{'checked'}, - rank => $data->{'rank'}, - syntax => $data->{'syntax'}, - encoding => $data->{'encoding'}, - ); + $template->param( $_ => $data->{$_} ) + for ( qw( host port db userid password checked rank ) ); + $template->param( $_ . $data->{$_} => 1) + for ( qw( syntax encoding ) ); # END $OP eq ADD_FORM ################## ADD_VALIDATE ################################## # called by add_form, used to insert/modify data in DB diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/z3950servers.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/z3950servers.tmpl index 803e4df703..cb8c6da19e 100755 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/z3950servers.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/z3950servers.tmpl @@ -114,82 +114,82 @@