X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=admin%2Fsystempreferences.pl;h=af9104159cd0c5a95c1f008488f59d2609b44467;hb=2ef8ff9846b0f2014d92e65edb74dd9d71e59147;hp=8b3791933e5ddc754489e52498c5651e4a512c94;hpb=374b6f4b9f33a776d04cdaa696b40e8e033dda32;p=koha_fer diff --git a/admin/systempreferences.pl b/admin/systempreferences.pl index 8b3791933e..af9104159c 100755 --- a/admin/systempreferences.pl +++ b/admin/systempreferences.pl @@ -204,7 +204,7 @@ $tabsysprefs{AllowAllMessageDeletion} = "Circulation"; $tabsysprefs{OverdueNoticeBcc} = "Circulation"; $tabsysprefs{OverduesBlockCirc} = "Circulation"; $tabsysprefs{UseTransportCostMatrix} = "Circulation"; - +$tabsysprefs{AllowReturnToBranch} = "Circulation"; # Staff Client $tabsysprefs{template} = "StaffClient"; @@ -420,8 +420,9 @@ sub StringSearch { my $sth = $dbh->prepare("Select variable,value,explanation,type,options from systempreferences where (variable like ?) order by variable"); $sth->execute($syspref); while ( my $data = $sth->fetchrow_hashref ) { + unless (defined $data->{value}) { $data->{value} = "";} $data->{shortvalue} = $data->{value}; - $data->{shortvalue} = substr( $data->{value}, 0, 60 ) . "..." if defined( $data->{value} ) and length( $data->{value} ) > 60; + $data->{shortvalue} = substr( $data->{value}, 0, 60 ) . "..." if length( $data->{value} ) > 60; push( @results, $data ); $cnt++; } @@ -452,6 +453,7 @@ sub StringSearch { } while ( my $data = $sth->fetchrow_hashref ) { + unless (defined $data->{value}) { $data->{value} = "";} $data->{shortvalue} = $data->{value}; $data->{shortvalue} = substr( $data->{value}, 0, 60 ) . "..." if length( $data->{value} ) > 60; push( @results, $data );