diff --git a/admin/systempreferences.pl b/admin/systempreferences.pl index 05c739ad94..ccab33f087 100755 --- a/admin/systempreferences.pl +++ b/admin/systempreferences.pl @@ -31,7 +31,7 @@ sub StringSearch { $searchstring=~ s/\'/\\\'/g; my @data=split(' ',$searchstring); my $count=@data; - my $query="Select variable,value from systempreferences where (variable like \"$data[0]%\") order by variable"; + my $query="Select variable,value,explanation from systempreferences where (variable like \"$data[0]%\") order by variable"; my $sth=$dbh->prepare($query); $sth->execute; my @results; @@ -49,7 +49,7 @@ sub StringSearch { my $input = new CGI; my $searchfield=$input->param('searchfield'); my $pkfield="variable"; -my $reqsel="select variable,value from systempreferences where $pkfield='$searchfield'"; +my $reqsel="select variable,value,explanation from systempreferences where $pkfield='$searchfield'"; my $reqdel="delete from systempreferences where $pkfield='$searchfield'"; my $offset=$input->param('offset'); my $script_name="/cgi-bin/koha/admin/systempreferences.pl"; @@ -70,7 +70,7 @@ if ($op eq 'add_form') { my $data; if ($searchfield) { my $dbh = &C4Connect; - my $sth=$dbh->prepare("select variable,value from systempreferences where variable='$searchfield'"); + my $sth=$dbh->prepare("select variable,value,explanation from systempreferences where variable='$searchfield'"); $sth->execute; $data=$sth->fetchrow_hashref; $sth->finish; @@ -138,6 +138,7 @@ printend } print "