View | Details | Raw Unified | Return to bug 18936
Collapse All | Expand All

(-)a/about.pl (-5 / +2 lines)
Lines 456-467 $template->param( 'bad_yaml_prefs' => \@bad_yaml_prefs ) if @bad_yaml_prefs; Link Here
456
# Circ rule warnings
456
# Circ rule warnings
457
{
457
{
458
    my $dbh   = C4::Context->dbh;
458
    my $dbh   = C4::Context->dbh;
459
    my $units = $dbh->selectall_arrayref(
459
    my $units = Koha::CirculationRules->search({ rule_name => 'lengthunit', rule_value => { -not_in => ['days', 'hours'] } });
460
        q|SELECT branchcode, categorycode, itemtype, lengthunit FROM issuingrules WHERE lengthunit NOT IN ( 'days', 'hours' ); |,
461
        { Slice => {} }
462
    );
463
460
464
    if (@$units) {
461
    if ( $units->count ) {
465
        $template->param(
462
        $template->param(
466
            warnIssuingRules => 1,
463
            warnIssuingRules => 1,
467
            ir_units         => $units,
464
            ir_units         => $units,
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt (-4 / +3 lines)
Lines 412-420 Link Here
412
                [% FOREACH unit IN ir_units %]
412
                [% FOREACH unit IN ir_units %]
413
                <tr>
413
                <tr>
414
                    <th scope="row"><b>Warning</b></th>
414
                    <th scope="row"><b>Warning</b></th>
415
                    <td>The [% unit.branchcode | html %], [% unit.categorycode | html %], [% unit.itemtype | html %] 
415
                    <td>The [% unit.branchcode || 'branchcode=default' | html %], [% unit.categorycode || 'categorycode=default' | html %], [% unit.itemtype || 'itemtype=default' | html %]
416
                        issuingrule will fallback to 'days' for 'lengthunit' as it is incorrectly defined as 
416
                        issuingrule will fallback to 'days' for 'lengthunit' as it is incorrectly defined as
417
                        [% unit.lengthunit | html %]. 
417
                        [% unit.rule_value | html %].
418
                    </td>
418
                    </td>
419
                </tr>
419
                </tr>
420
                [% END %]
420
                [% END %]
421
- 

Return to bug 18936