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

(-)a/installer/data/mysql/atomicupdate/bug_23590.perl (+5 lines)
Lines 35-42 if( CheckVersion( $DBversion ) ) { Link Here
35
                WHERE suggestionid = ?
35
                WHERE suggestionid = ?
36
            |, undef, $max_date, $last_modif_by, $suggestion->{suggestionid});
36
            |, undef, $max_date, $last_modif_by, $suggestion->{suggestionid});
37
        }
37
        }
38
38
    }
39
    }
39
40
41
    $dbh->do( q|
42
        INSERT IGNORE INTO letter(module, code, branchcode, name, is_html, title, content, message_transport_type, lang) VALUES ('suggestions', 'NOTIFY_MANAGER', '', 'Notify manager of a suggestion', 0, "A suggestion has been assigned to you", "Dear [% borrower.firstname %] [% borrower.surname %],\nA suggestion has been assigned to you: [% suggestion.title %].\nThank you,\n[% branch.branchname %]", 'email', 'default');
43
    | );
44
40
    # Always end with this (adjust the bug info)
45
    # Always end with this (adjust the bug info)
41
    SetVersion( $DBversion );
46
    SetVersion( $DBversion );
42
    print "Upgrade to $DBversion done (Bug 23590 - Add lastmodificationby and lastmodificationdate to the suggestions table)\n";
47
    print "Upgrade to $DBversion done (Bug 23590 - Add lastmodificationby and lastmodificationdate to the suggestions table)\n";
(-)a/installer/data/mysql/en/mandatory/sample_notices.yml (+17 lines)
Lines 1145-1147 tables: Link Here
1145
            - "Thank you,"
1145
            - "Thank you,"
1146
            - ""
1146
            - ""
1147
            - "<<branches.branchname>>"
1147
            - "<<branches.branchname>>"
1148
1149
        - module: suggestions
1150
          code: NOTIFY_MANAGER
1151
          branchcode: ""
1152
          name: "Notify manager of a suggestion"
1153
          is_html: 0
1154
          title: "A suggestion has been assigned to you"
1155
          message_transport_type: email
1156
          lang: default
1157
          content:
1158
            - "Dear [% borrower.firstname %] [% borrowers.surname %],"
1159
            - ""
1160
            - "A new suggestion has been assigned to you: [% suggestion.title %]."
1161
            - ""
1162
            - "Thank you,"
1163
            - ""
1164
            - "[% branch.branchname %]"
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt (-1 / +1 lines)
Lines 418-424 Link Here
418
418
419
                    <br/>
419
                    <br/>
420
                    <label for="notify">Notify manager:</label>
420
                    <label for="notify">Notify manager:</label>
421
                    <input type="checkbox" id="notify" name="notify" value="notify" disabled="disabled" title="A TO_PROCESS notice will be generated and send to the manager if a valid email address is defined. This can be checked if a new manager has been selected." />
421
                    <input type="checkbox" id="notify" name="notify" value="notify" disabled="disabled" title="A NOTIFY_MANAGER notice will be generated and send to the manager if a valid email address is defined. This can be checked if a new manager has been selected." />
422
                </div>
422
                </div>
423
            </li>
423
            </li>
424
        </ol>
424
        </ol>
(-)a/suggestion/suggestion.pl (-2 / +1 lines)
Lines 180-186 if ( $op =~ /save/i ) { Link Here
180
180
181
                    my $letter = C4::Letters::GetPreparedLetter(
181
                    my $letter = C4::Letters::GetPreparedLetter(
182
                        module      => 'suggestions',
182
                        module      => 'suggestions',
183
                        letter_code => 'TO_PROCESS',
183
                        letter_code => 'NOTIFY_MANAGER',
184
                        branchcode  => $patron->branchcode,
184
                        branchcode  => $patron->branchcode,
185
                        lang        => $patron->lang,
185
                        lang        => $patron->lang,
186
                        tables      => {
186
                        tables      => {
187
- 

Return to bug 23590