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

(-)a/installer/data/mysql/atomicupdate/bug_13188_add_PatronSelfModificationMandatoryField_syspref.perl (-9 / +15 lines)
Lines 1-9 Link Here
1
$DBversion = 'XXX'; # will be replaced by the RM
1
use Modern::Perl;
2
if( CheckVersion( $DBversion ) ) {
2
3
   $dbh->do(q{
3
return {
4
        INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` )
4
    bug_number => "13188",
5
        SELECT 'PatronSelfModificationMandatoryField', value, NULL, 'Define the required fields when a patron is editing their information via the OPAC','multiple'
5
    description => "Allow configuration of required fields when a patron is editing their information via the OPAC",
6
        FROM (SELECT value FROM systempreferences WHERE variable="PatronSelfRegistrationBorrowerMandatoryField") tmp
6
    up => sub {
7
    });
7
        my ($args) = @_;
8
    NewVersion($DBversion, 13188, "Allow configuration of required fields when a patron is editing their information via the OPAC");
8
        my ($dbh, $out) = @$args{qw(dbh out)};
9
10
       $dbh->do(q{
11
            INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` )
12
            SELECT 'PatronSelfModificationMandatoryField', value, NULL, 'Define the required fields when a patron is editing their information via the OPAC','multiple'
13
            FROM (SELECT value FROM systempreferences WHERE variable="PatronSelfRegistrationBorrowerMandatoryField") tmp
14
       });
15
    },
9
}
16
}
10
- 

Return to bug 13188