diff --git a/about.pl b/about.pl index 18293b5db4..42fe42f170 100755 --- a/about.pl +++ b/about.pl @@ -456,12 +456,9 @@ $template->param( 'bad_yaml_prefs' => \@bad_yaml_prefs ) if @bad_yaml_prefs; # Circ rule warnings { my $dbh = C4::Context->dbh; - my $units = $dbh->selectall_arrayref( - q|SELECT branchcode, categorycode, itemtype, lengthunit FROM issuingrules WHERE lengthunit NOT IN ( 'days', 'hours' ); |, - { Slice => {} } - ); + my $units = Koha::CirculationRules->search({ rule_name => 'lengthunit', rule_value => { -not_in => ['days', 'hours'] } }); - if (@$units) { + if ( $units->count ) { $template->param( warnIssuingRules => 1, ir_units => $units, diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt index 1c94254b6c..1540b5630d 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt @@ -412,9 +412,9 @@ [% FOREACH unit IN ir_units %]