From e05fa8308276bdb9447d7b2bb272dfa5c8ffa3a1 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. Signed-off-by: David Nind Signed-off-by: Helen Oliver Signed-off-by: Kyle M Hall --- 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 f716304dec..f7693d794a 100644 --- a/Koha/Ticket.pm +++ b/Koha/Ticket.pm @@ -118,7 +118,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 47a2c40c62..e322ab18aa 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 b5337a572f..283dfeecc7 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.30.2