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

(-)a/installer/data/mysql/atomicupdate/bug_32911.pl (-7 / +9 lines)
Lines 10-20 return { Link Here
10
        my $xml_config = C4::Context->config("interlibrary_loans");
10
        my $xml_config = C4::Context->config("interlibrary_loans");
11
        my $existing_partner_code = $xml_config->{partner_code};
11
        my $existing_partner_code = $xml_config->{partner_code};
12
12
13
        $dbh->do(qq{
13
        if ( $existing_partner_code ) {
14
            INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type)
14
            $dbh->do(
15
            VALUES ('ILLPartnerCode', '$existing_partner_code', NULL, 'Patrons from this patron category will be used as partners to place ILL requests with', 'free');
15
                qq{
16
        });
16
                    INSERT IGNORE INTO systempreferences (variable,value,explanation,options,type)
17
17
                    VALUES ('ILLPartnerCode', '$existing_partner_code', NULL, 'Patrons from this patron category will be used as partners to place ILL requests with', 'free');
18
        say $out "Moved value of partner_code in koha-conf.xml into new system preference 'ILLPartnerCode'";
18
                }
19
            );
20
            say $out "Moved value of partner_code in koha-conf.xml into new system preference 'ILLPartnerCode'";
21
        }
19
    }
22
    }
20
};
23
};
21
- 

Return to bug 32911