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

(-)a/admin/preferences.pl (-7 / +7 lines)
Lines 161-181 sub _get_chunk { Link Here
161
              }
161
              }
162
              keys %{ $options{multiple} }
162
              keys %{ $options{multiple} }
163
        ];
163
        ];
164
    } elsif ( $options{'multiple_sortable'} ) {
164
    }
165
    elsif ( $options{'multiple_sortable'} ) {
165
        my @values;
166
        my @values;
166
        @values = split /,/, $value if defined($value);
167
        @values        = split /,/, $value if defined($value);
167
        $chunk->{type}    = 'multiple_sortable';
168
        $chunk->{type} = 'multiple_sortable';
168
        my @options = sort keys %{ $options{multiple_sortable} };
169
        my @options = sort keys %{ $options{multiple_sortable} };
169
        $chunk->{CHOICES} = [
170
        $chunk->{CHOICES} = [
170
              map {
171
            map {
171
                my $option_value = $_;
172
                my $option_value = $_;
172
                {
173
                {
173
                    text     => $options{multiple_sortable}->{$option_value},
174
                    text     => $options{multiple_sortable}->{$option_value},
174
                    value    => $option_value,
175
                    value    => $option_value,
175
                    selected => (grep { $_ eq $option_value } @values) ? 1 : 0,
176
                    selected => ( grep { $_ eq $option_value } @values ) ? 1 : 0,
176
                }
177
                }
177
              }
178
            } uniq( @values, @options )
178
              uniq(@values, @options)
179
        ];
179
        ];
180
    }
180
    }
181
181
(-)a/installer/data/mysql/db_revs/230600052.pl (-4 / +7 lines)
Lines 9-15 return { Link Here
9
9
10
        $dbh->do(
10
        $dbh->do(
11
            q{
11
            q{
12
            INSERT IGNORE INTO `letter` VALUES (NULL,'reserves','HOLDDGST','','Hold available for pickup (digest)',0,'Hold(s) available for pickup','You have one or more holds available for pickup:\r\n\r\n----\r\nTitle: [% hold.biblio.title %]\r\nAuthor: [% hold.biblio.author %]\r\nCopy: [% hold.item.copynumber %]\r\nLocation: [% hold.branch.branchname %]\r\nWaiting since: [% hold.waitingdate %]\r\nWaiting at: [%hold.branch.branchname%]\r\n[% hold.branch.branchaddress1 %]\r\n[% hold.branch.branchaddress2 %]\r\n[% hold.branch.branchaddress3 %]\r\n[% hold.branch.branchcity %] [% hold.branch.branchzip %]\r\n----','email','default','2023-08-29 18:42:15');
12
            INSERT IGNORE INTO `letter` (`module`, `code`, `branchcode`, `name`, `is_html`, `title`, `content`, `message_transport_type`, `lang`)
13
            VALUES ('reserves','HOLDDGST','','Hold available for pickup (digest)',0,'Hold(s) available for pickup','You have one or more holds available for pickup:\r\n\r\n----\r\nTitle: [% hold.biblio.title %]\r\nAuthor: [% hold.biblio.author %]\r\nCopy: [% hold.item.copynumber %]\r\nLocation: [% hold.branch.branchname %]\r\nWaiting since: [% hold.waitingdate %]\r\nWaiting at: [%hold.branch.branchname%]\r\n[% hold.branch.branchaddress1 %]\r\n[% hold.branch.branchaddress2 %]\r\n[% hold.branch.branchaddress3 %]\r\n[% hold.branch.branchcity %] [% hold.branch.branchzip %]\r\n----','email','default');
13
        }
14
        }
14
        );
15
        );
15
16
Lines 17-23 return { Link Here
17
18
18
        $dbh->do(
19
        $dbh->do(
19
            q{
20
            q{
20
            INSERT IGNORE INTO `letter` VALUES (NULL,'reserves','HOLDDGST','','Hold available for pickup (digest)',0,'Hold(s) available for pickup','You have one or more holds available for pickup:\r\n----\r\n[% hold.biblio.title %]\r\n----','sms','default','2023-08-29 18:42:15');
21
            INSERT IGNORE INTO `letter` (`module`, `code`, `branchcode`, `name`, `is_html`, `title`, `content`, `message_transport_type`, `lang`)
22
            VALUES ('reserves','HOLDDGST','','Hold available for pickup (digest)',0,'Hold(s) available for pickup','You have one or more holds available for pickup:\r\n----\r\n[% hold.biblio.title %]\r\n----','sms','default');
21
        }
23
        }
22
        );
24
        );
23
25
Lines 25-31 return { Link Here
25
27
26
        $dbh->do(
28
        $dbh->do(
27
            q{
29
            q{
28
            INSERT IGNORE INTO message_transports VALUES
30
            INSERT IGNORE INTO message_transports
31
            (`message_attribute_id`, `message_transport_type`, `is_digest`, `letter_module`, `letter_code`, `branchcode`)
32
            VALUES
29
            ( 4, "email", 1, "reserves", "HOLDDGST", "" ),
33
            ( 4, "email", 1, "reserves", "HOLDDGST", "" ),
30
            ( 4, "sms", 1, "reserves", "HOLDDGST", "" ),
34
            ( 4, "sms", 1, "reserves", "HOLDDGST", "" ),
31
            ( 4, "phone", 1, "reserves", "HOLDDGST", "");
35
            ( 4, "phone", 1, "reserves", "HOLDDGST", "");
32
- 

Return to bug 36790