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

(-)a/installer/data/mysql/atomicupdate/bug_32478-fix_NULL_values_in_syspref_ItemsDeniedRenewal.pl (+17 lines)
Line 0 Link Here
1
use Modern::Perl;
2
use C4::Context;
3
4
return {
5
    bug_number => "32478",
6
    description => "Remove usage of Koha::Config::SysPref->find since bypasses cache",
7
    up => sub {
8
        my ($args) = @_;
9
        my ($dbh, $out) = @$args{qw(dbh out)};
10
11
        $dbh->do(q{UPDATE `systempreferences` SET `value` = REPLACE(`value`, 'NULL', 'null') WHERE `variable` = 'ItemsDeniedRenewal'});
12
        say $out "Replace 'NULL' with 'null' in ItemsDeniedRenewal system preference";
13
14
        C4::Context->clear_syspref_cache();
15
        say $out "Clear system preference cache";
16
    },
17
};
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref (-3 / +2 lines)
Lines 540-548 Circulation: Link Here
540
            - "<br />Can name any field in the items table followed by a colon then a space then"
540
            - "<br />Can name any field in the items table followed by a colon then a space then"
541
            - "a bracketed list of values separated by commas."
541
            - "a bracketed list of values separated by commas."
542
            - "For example:"
542
            - "For example:"
543
            - "<br />ccode: [NEWFIC,NULL,DVD]"
543
            - "<br />ccode: [NEWFIC,null,DVD]"
544
            - "<br />itype: [NEWBK,\"\"]"
544
            - "<br />itype: [NEWBK,\"\"]"
545
            - "<br /> <strong>NOTE:</strong> The word 'NULL' can be used to block renewal on undefined fields, while an empty string \"\" will block on an empty (but defined) field."
545
            - "<br /> <strong>NOTE:</strong> The word 'null' can be used to block renewal on undefined fields, while an empty string \"\" will block on an empty (but defined) field."
546
        -
546
        -
547
            - pref: UpdateNotForLoanStatusOnCheckout
547
            - pref: UpdateNotForLoanStatusOnCheckout
548
              type: textarea
548
              type: textarea
549
- 

Return to bug 32478