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

(-)a/about.pl (+16 lines)
Lines 444-449 $template->param( 'bad_yaml_prefs' => \@bad_yaml_prefs ) if @bad_yaml_prefs; Link Here
444
        );
444
        );
445
    }
445
    }
446
}
446
}
447
448
# Circ rule warnings
449
{
450
    my $dbh   = C4::Context->dbh;
451
    my $units = $dbh->selectall_arrayref(
452
        q|SELECT branchcode, categorycode, itemtype, lengthunit FROM issuingrules WHERE lengthunit NOT IN ( 'days', 'hours' ); |,
453
        { Slice => {} }
454
    );
455
456
    if (@$units) {
457
        $template->param(
458
            warnIssuingRules => 1,
459
            ir_units         => $units,
460
        );
461
    }
462
}
447
my %versions = C4::Context::get_versions();
463
my %versions = C4::Context::get_versions();
448
464
449
$template->param(
465
$template->param(
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt (-2 / +16 lines)
Lines 229-235 Link Here
229
            <br/>
229
            <br/>
230
        [% END %]
230
        [% END %]
231
231
232
        [% IF warnPrefBiblioAddsAuthorities || warnPrefEasyAnalyticalRecords || warnPrefAnonymousPatron || warnPrefAnonymousPatron_PatronDoesNotExist || warnNoActiveCurrency || QueryParserError || AutoSelfCheckPatronDoesNotHaveSelfCheckPerm || AutoSelfCheckPatronHasTooManyPerm || warnStatisticsFieldsError || warnNoTemplateCaching || warnILLConfiguration || oauth2_missing_deps || bad_yaml_prefs %]
232
        [% IF warnPrefBiblioAddsAuthorities || warnPrefEasyAnalyticalRecords || warnPrefAnonymousPatron || warnPrefAnonymousPatron_PatronDoesNotExist || warnNoActiveCurrency || QueryParserError || AutoSelfCheckPatronDoesNotHaveSelfCheckPerm || AutoSelfCheckPatronHasTooManyPerm || warnStatisticsFieldsError || warnNoTemplateCaching || warnILLConfiguration || oauth2_missing_deps || bad_yaml_prefs || warnIssuingRules %]
233
            <h2>Warnings regarding the system configuration</h2>
233
            <h2>Warnings regarding the system configuration</h2>
234
            <table>
234
            <table>
235
                <caption>Preferences and parameters</caption>
235
                <caption>Preferences and parameters</caption>
Lines 383-388 Link Here
383
            </table>
383
            </table>
384
        [% END %]
384
        [% END %]
385
385
386
        [% IF warnIssuingRules %]
387
            <table>
388
                <caption>Issuing rules</caption>
389
                [% FOREACH unit IN ir_units %]
390
                <tr>
391
                    <th scope="row"><b>Warning</b></th>
392
                    <td>The [% unit.branchcode | html %], [% unit.categorycode | html %], [% unit.itemtype %] 
393
                        issuingrule will fallback to 'days' for 'lengthunit' as it is incorrectly defined as 
394
                        [% unit.lengthunit | html %]. 
395
                    </td>
396
                </tr>
397
                [% END %]
398
            </table>
399
        [% END %]
400
386
    [% ELSE %]
401
    [% ELSE %]
387
        <p>No warnings.</p>
402
        <p>No warnings.</p>
388
    [% END %]
403
    [% END %]
389
- 

Return to bug 23445