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

(-)a/installer/data/mysql/atomicupdate/bug_29073.pl (+17 lines)
Line 0 Link Here
1
use Modern::Perl;
2
3
return {
4
    bug_number => "29073",
5
    description => "Make DefaultHoldExpirationdate use 1/0 values",
6
    up => sub {
7
        my ($args) = @_;
8
        my ($dbh, $out) = @$args{qw(dbh out)};
9
        # Do you stuffs here
10
        $dbh->do(q{
11
            UPDATE systempreferences SET value = IF(value = 'yes',1,0)
12
            WHERE variable = 'DefaultHoldExpirationdate';
13
        });
14
        # Print useful stuff here
15
        say $out "DefaultHoldExpirationdate values updated";
16
    },
17
}
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref (-3 / +2 lines)
Lines 901-908 Circulation: Link Here
901
            - pref: DefaultHoldExpirationdate
901
            - pref: DefaultHoldExpirationdate
902
              default: 0
902
              default: 0
903
              choices:
903
              choices:
904
                  yes: Set
904
                  1: Set
905
                  no: Don't set
905
                  0: Don't set
906
            - default expiration date for holds automatically.
906
            - default expiration date for holds automatically.
907
            - If enabled, set expiration date
907
            - If enabled, set expiration date
908
            - pref: DefaultHoldExpirationdatePeriod
908
            - pref: DefaultHoldExpirationdatePeriod
909
- 

Return to bug 29073