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

(-)a/installer/data/mysql/atomicupdate/bug_31097.pl (+18 lines)
Line 0 Link Here
1
use Modern::Perl;
2
use Koha::Installer::Output qw(say_warning say_failure say_success say_info);
3
4
return {
5
    bug_number  => "31097",
6
    description => "Change default 'Manual' restriction test",
7
    up          => sub {
8
        my ($args) = @_;
9
        my ( $dbh, $out ) = @$args{qw(dbh out)};
10
11
        $dbh->do(q{ UPDATE restriction_types SET display_text = "Manual restriction" WHERE display_text = "Manual"});
12
13
        say_info(
14
            $out,
15
            "Updated patron restriction types display for MANUAL restrictions from 'Manual' to 'Manual restriction'"
16
        );
17
    },
18
};
(-)a/installer/data/mysql/en/mandatory/patron_restriction_types.yml (-2 / +1 lines)
Lines 26-32 tables: Link Here
26
      multiline: []
26
      multiline: []
27
      rows:
27
      rows:
28
        - code: "MANUAL"
28
        - code: "MANUAL"
29
          display_text: "Manual"
29
          display_text: "Manual restriction"
30
          is_system: 0
30
          is_system: 0
31
          is_default: 1
31
          is_default: 1
32
32
33
- 

Return to bug 31097