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

(-)a/installer/data/mysql/db_revs/210508001.pl (-12 lines)
Lines 1-12 Link Here
1
use Modern::Perl;
2
3
return {
4
    bug_number => "29457",
5
    description => "Fee Cancellation records the wrong manager_id",
6
    up => sub {
7
        my ($args) = @_;
8
        my ($dbh, $out) = @$args{qw(dbh out)};
9
        say $out "WARNING: You may have some incorrect manager_id's recorded against account cancellation lines, please see bugzilla for details.";
10
        say $out "NOTE: You may already have this bugfix applied at an earlier upgrade.";
11
    },
12
}
(-)a/installer/data/mysql/db_revs/210508002.pl (-15 lines)
Lines 1-15 Link Here
1
use Modern::Perl;
2
3
return {
4
    bug_number => "29557",
5
    description => "Add auto_account_expired to AUTO_RENEWALS notice. Please update your AUTO_RENEWALS notice manually if you have changed or translated it.",
6
    up => sub {
7
        my ($args) = @_;
8
        my ($dbh, $out) = @$args{qw(dbh out)};
9
        my @c = $dbh->do(q{
10
            UPDATE letter
11
            SET content=REPLACE(content, "[% ELSIF checkout.auto_renew_error == 'too_unseen' %]\r\nThis item must be renewed at the library.\r\n[% END %]", "[% ELSIF checkout.auto_renew_error == 'too_unseen' %]\r\nThis item must be renewed at the library.\r\n[% ELSIF checkout.auto_renew_error == 'auto_account_expired' %]\r\nYour account has expired.\r\n[% END %]")
12
            WHERE code="AUTO_RENEWALS"
13
        });
14
    },
15
}
(-)a/installer/data/mysql/updatedatabase.pl (-1 / +15 lines)
Lines 24556-24561 if( CheckVersion( $DBversion ) ) { Link Here
24556
    NewVersion( $DBversion, "", "Koha 21.05.08 release" );
24556
    NewVersion( $DBversion, "", "Koha 21.05.08 release" );
24557
}
24557
}
24558
24558
24559
$DBversion = '21.05.08.001';
24560
if( CheckVersion( $DBversion ) ) {
24561
    NewVersion( $DBversion, "29457", "WARNING: You may have some incorrect manager_id's recorded against account cancellation lines, please see bugzilla for details. NOTE: You may already have this bugfix applied at an earlier upgrade.");
24562
}
24563
24564
$DBversion = '21.05.08.002';
24565
if( CheckVersion( $DBversion ) ) {
24566
    $dbh->do(q{
24567
            UPDATE letter
24568
            SET content=REPLACE(content, "[% ELSIF checkout.auto_renew_error == 'too_unseen' %]\r\nThis item must be renewed at the library.\r\n[% END %]", "[% ELSIF checkout.auto_renew_error == 'too_unseen' %]\r\nThis item must be renewed at the library.\r\n[% ELSIF checkout.auto_renew_error == 'auto_account_expired' %]\r\nYour account has expired.\r\n[% END %]")
24569
            WHERE code="AUTO_RENEWALS"
24570
            });
24571
    NewVersion( $DBversion, "29557", "Add auto_account_expired to AUTO_RENEWALS notice. Please update your AUTO_RENEWALS notice manually if you have changed or translated it." );
24572
}
24573
24559
$DBversion = '21.05.09.000';
24574
$DBversion = '21.05.09.000';
24560
if( CheckVersion( $DBversion ) ) {
24575
if( CheckVersion( $DBversion ) ) {
24561
    NewVersion( $DBversion, "", "Koha 21.05.09 release" );
24576
    NewVersion( $DBversion, "", "Koha 21.05.09 release" );
24562
- 

Return to bug 30065