From 758054a1b67e3a60d79052983952715b802d4d18 Mon Sep 17 00:00:00 2001 From: wolfpac444 Date: Sun, 13 Apr 2003 03:11:44 +0000 Subject: [PATCH] Bug fixes --- admin/systempreferences.pl | 15 +++++---------- .../default/en/parameters/systempreferences.tmpl | 14 +++++++++++--- 2 files changed, 16 insertions(+), 13 deletions(-) diff --git a/admin/systempreferences.pl b/admin/systempreferences.pl index 6a2ce37ca1..9838371d9e 100755 --- a/admin/systempreferences.pl +++ b/admin/systempreferences.pl @@ -107,18 +107,13 @@ if ($op eq 'add_form') { $sth->finish; } if ($searchfield) { - $template->param(action => "Modify pref"); - } else { - $template->param(action => "Add pref"); + $template->param(modify => 1); } + $template->param(explanation => $data->{'explanation'}, - value => $data->{'value'}, - ); - if ($searchfield) { - $template->param(searchfield => "$searchfield"); - } else { - $template->param(searchfield => ""); - } + value => $data->{'value'}, + searchfield => $searchfield); + ################## ADD_VALIDATE ################################## # called by add_form, used to insert/modify data in DB } elsif ($op eq 'add_validate') { diff --git a/koha-tmpl/intranet-tmpl/default/en/parameters/systempreferences.tmpl b/koha-tmpl/intranet-tmpl/default/en/parameters/systempreferences.tmpl index bb64dc3f86..562907bb74 100644 --- a/koha-tmpl/intranet-tmpl/default/en/parameters/systempreferences.tmpl +++ b/koha-tmpl/intranet-tmpl/default/en/parameters/systempreferences.tmpl @@ -56,13 +56,21 @@ -

+ +

Modify a system preference

+ +

Add a system preference

+
- - + + + + + +
Variable
Variable
Variable
Value
Explanation
 
-- 2.39.5