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

(-)a/installer/data/mysql/atomicupdate/bug_36757.pl (+16 lines)
Line 0 Link Here
1
use Modern::Perl;
2
3
return {
4
    bug_number  => "36757",
5
    description => "Notify assignee when a concern is assigned to them",
6
    up          => sub {
7
        my ($args) = @_;
8
        my ( $dbh, $out ) = @$args{qw(dbh out)};
9
10
        $dbh->do(
11
            q{INSERT IGNORE INTO letter (module, code, branchcode, name, is_html, title, message_transport_type, lang, content) VALUES ("catalogue", "TICKET_ASSIGNED", "", "Concern assigned notification", 1, "Catalog concern assigned", "email", "default", "[%- PROCESS 'html_helpers.inc' -%][%- USE Koha -%]Dear cataloger,<br>[%- INCLUDE 'patron-title.inc' patron => libraian -%] has assigned the following concern with <a href='[%- Koha.Preference('staffClientBaseURL') -%]/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% ticket.biblio.biblionumber %]' >[%- INCLUDE 'biblio-title.inc' biblio=ticket.biblio link = 0 -%]</a> to you<br><br>[%- ticket.body -%]<br><br>You can action this concern from the <a href='[%- Koha.Preference('staffClientBaseURL') -%]/cgi-bin/koha/cataloguing/concerns.pl'>concern management page</a>.")}
12
        );
13
14
        say $out "Added notice 'TICKET_ASSIGNED'";
15
    },
16
};
(-)a/installer/data/mysql/en/mandatory/sample_notices.yml (-1 / +18 lines)
Lines 62-67 tables: Link Here
62
            - "<br>"
62
            - "<br>"
63
            - "Thank you"
63
            - "Thank you"
64
64
65
        - module: catalogue
66
          code: TICKET_ASSIGNED
67
          branchcode: ""
68
          name: "Concern assigned notification"
69
          is_html: 1
70
          title: "Catalog concern assigned"
71
          message_transport_type: email
72
          lang: default
73
          content:
74
            - "[%- PROCESS 'html_helpers.inc' -%]"
75
            - "[%- USE Koha -%]"
76
            - "Dear cataloger,<br>"
77
            - "[%- INCLUDE 'patron-title.inc' patron => libraian -%] has assigned the following concern with <a href='[%- Koha.Preference('staffClientBaseURL') -%]/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% ticket.biblio.biblionumber %]' >[%- INCLUDE 'biblio-title.inc' biblio=ticket.biblio link = 0 -%]</a> to you<br>"
78
            - "<br>"
79
            - "[%- ticket.body -%]<br>"
80
            - "<br>"
81
            - "You can action this concern from the <a href='[%- Koha.Preference('staffClientBaseURL') -%]/cgi-bin/koha/cataloguing/concerns.pl'>concern management page</a>."
82
65
        - module: catalogue
83
        - module: catalogue
66
          code: TICKET_RESOLVE
84
          code: TICKET_RESOLVE
67
          branchcode: ""
85
          branchcode: ""
68
- 

Return to bug 36758