Bugzilla – Attachment 120351 Details for
Bug 27562
itiva notices break if record title contains quotes
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 27562: itiva notices break if record title contains quotes
Bug-27562-itiva-notices-break-if-record-title-cont.patch (text/plain), 1.79 KB, created by
Victor Grousset/tuxayo
on 2021-05-01 22:02:22 UTC
(
hide
)
Description:
Bug 27562: itiva notices break if record title contains quotes
Filename:
MIME Type:
Creator:
Victor Grousset/tuxayo
Created:
2021-05-01 22:02:22 UTC
Size:
1.79 KB
patch
obsolete
>From 527ffdcb985924e6813cf418fa0b26f4a1ce6afd Mon Sep 17 00:00:00 2001 >From: Koha user <koha@washoecounty.us> >Date: Mon, 14 Jan 2013 09:02:38 -0800 >Subject: [PATCH] Bug 27562: itiva notices break if record title contains > quotes > >itiva has reported to us that quotes in the title of a record cause the call to not be made to the patron. The fix is to remove quotes from the title, as quotes are not spoken anyway ( That is, "Queens" and "Queen's" are pronounced the same ). > >Test Plan: >1) Set up itiva to send phone notes >2) Find a record with quotes in the title >3) Trigger an itiva notice ( checkout, checkin, place hold, etc ) > using the itiva outbound cronjob >4) View the CSV, note the title has the quotes in it >5) Apply this patch >6) Repeat steps 2-3 >7) View the CSV, note the title contains no quotes! > >Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net> >--- > misc/cronjobs/thirdparty/TalkingTech_itiva_outbound.pl | 3 +++ > 1 file changed, 3 insertions(+) > >diff --git a/misc/cronjobs/thirdparty/TalkingTech_itiva_outbound.pl b/misc/cronjobs/thirdparty/TalkingTech_itiva_outbound.pl >index ae6a4f4e00..83b8a1a442 100755 >--- a/misc/cronjobs/thirdparty/TalkingTech_itiva_outbound.pl >+++ b/misc/cronjobs/thirdparty/TalkingTech_itiva_outbound.pl >@@ -160,6 +160,9 @@ foreach my $type (@types) { > ); > } > >+ $issues->{title} =~ s/'//g; >+ $issues->{title} =~ s/"//g; >+ > print $OUT "\"$format\",\"$language\",\"$type\",\"$issues->{level}\",\"$issues->{cardnumber}\",\"$issues->{patron_title}\",\"$issues->{firstname}\","; > print $OUT "\"$issues->{surname}\",\"$issues->{phone}\",\"$issues->{email}\",\"$library_code\","; > print $OUT "\"$issues->{site}\",\"$issues->{site_name}\",\"$issues->{barcode}\",\"$due_date\",\"$issues->{title}\",\"$message_id\"\n"; >-- >2.31.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 27562
:
115909
|
120351
|
120688
|
120802