Bug 31577: Use patron category multi-select for OpacHiddenItemsExceptions system...
[koha.git] / installer / data / mysql / atomicupdate / bug_31577_OpacHiddenItemsExceptions.pl
1 use Modern::Perl;
2
3 return {
4     bug_number => "31577",
5     description => "Add category list pull-down to OpacHiddenItemsExceptions",
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 = REPLACE(value,"|",","),
12             explanation = REPLACE(explanation,"separated by |,","separated by comma,")
13             WHERE variable = "OpacHiddenItemsExceptions"
14         });
15         # Print useful stuff here
16         say $out "Settings for OpacHiddenItemsExceptions have been updated";
17     },
18 };