From e4cf1941ec3420fe2bbec0517f4e103f25cd7b7b Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Wed, 2 Nov 2022 08:34:35 +0000 Subject: [PATCH] Bug 31028: (follow-up) Rename TICKET_ACKNOWLEDGE TICKET_ACKNOWLEDGEMENT was too long for the database field size, drop the 'MENT' to ensure it fits. --- Koha/Ticket.pm | 2 +- installer/data/mysql/atomicupdate/bug_31028.pl | 4 ++-- installer/data/mysql/en/mandatory/sample_notices.yml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Koha/Ticket.pm b/Koha/Ticket.pm index 354bb71b7e..de2d71f497 100644 --- a/Koha/Ticket.pm +++ b/Koha/Ticket.pm @@ -119,7 +119,7 @@ sub store { # Send patron acknowledgement my $acknowledgement_letter = C4::Letters::GetPreparedLetter( module => 'catalog', - letter_code => 'TICKET_ACKNOWLEDGEMENT', + letter_code => 'TICKET_ACKNOWLEDGE', branchcode => $self->reporter->branchcode, tables => { tickets => $self->id } ); diff --git a/installer/data/mysql/atomicupdate/bug_31028.pl b/installer/data/mysql/atomicupdate/bug_31028.pl index 1333089b50..251b0e04c6 100644 --- a/installer/data/mysql/atomicupdate/bug_31028.pl +++ b/installer/data/mysql/atomicupdate/bug_31028.pl @@ -89,10 +89,10 @@ return { $dbh->do( q{ INSERT IGNORE INTO letter(module,code,branchcode,name,is_html,title,content,message_transport_type) - VALUES ( 'catalog', 'TICKET_ACKNOWLEDGEMENT', '', 'Concern acknowledgement', '1', 'Catalog concern acknowledgement', "Dear [% INCLUDE 'patron-title.inc' patron => ticket.reporter %],\r\n\r\nThankyou for your report concerning [% INCLUDE 'biblio-title.inc' biblio=ticket.biblio link = 0 %].\r\n\r\nYou reported: \r\n[% ticket.body %]\r\n\r\nThankyou", 'email' ); + VALUES ( 'catalog', 'TICKET_ACKNOWLEDGE', '', 'Concern acknowledgement', '1', 'Catalog concern acknowledgement', "Dear [% INCLUDE 'patron-title.inc' patron => ticket.reporter %],\r\n\r\nThankyou for your report concerning [% INCLUDE 'biblio-title.inc' biblio=ticket.biblio link = 0 %].\r\n\r\nYou reported: \r\n[% ticket.body %]\r\n\r\nThankyou", 'email' ); } ); - say $out "Added new notice 'TICKET_ACKNOWLEDGEMENT'"; + say $out "Added new notice 'TICKET_ACKNOWLEDGE'"; $dbh->do( q{ diff --git a/installer/data/mysql/en/mandatory/sample_notices.yml b/installer/data/mysql/en/mandatory/sample_notices.yml index 9989b18ed8..3b8683d106 100644 --- a/installer/data/mysql/en/mandatory/sample_notices.yml +++ b/installer/data/mysql/en/mandatory/sample_notices.yml @@ -44,7 +44,7 @@ tables: - "Your library." - module: catalog - code: TICKET_ACKNOWLEDGEMENT + code: TICKET_ACKNOWLEDGE branchcode: "" name: "Concern acknowledgement" is_html: 1 -- 2.20.1