Bugzilla – Attachment 90435 Details for
Bug 22566
Stock rotation cronjob reporting has issues
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22566: Fix malformed notice for stockrotation
Bug-22566-Fix-malformed-notice-for-stockrotation.patch (text/plain), 3.60 KB, created by
Nadine Pierre
on 2019-06-07 19:56:00 UTC
(
hide
)
Description:
Bug 22566: Fix malformed notice for stockrotation
Filename:
MIME Type:
Creator:
Nadine Pierre
Created:
2019-06-07 19:56:00 UTC
Size:
3.60 KB
patch
obsolete
>From cc70dcfe5cb58e5b6c3370862466e8d2e1b07676 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Fri, 7 Jun 2019 14:54:42 +0100 >Subject: [PATCH] Bug 22566: Fix malformed notice for stockrotation > >The default notice for stockrotation was malformed. This patch replaces >it with a working one. > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Signed-off-by: Nadine Pierre <nadine.pierre@inLibro.com> >--- > .../data/mysql/atomicupdate/bug_22566.perl | 7 ++++++ > .../mysql/en/mandatory/sample_notices.sql | 22 ++++++++++++++++++- > 2 files changed, 28 insertions(+), 1 deletion(-) > create mode 100644 installer/data/mysql/atomicupdate/bug_22566.perl > >diff --git a/installer/data/mysql/atomicupdate/bug_22566.perl b/installer/data/mysql/atomicupdate/bug_22566.perl >new file mode 100644 >index 0000000000..5bf4f4a0de >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/bug_22566.perl >@@ -0,0 +1,7 @@ >+$DBversion = 'XXX'; >+if ( CheckVersion($DBversion) ) { >+ $dbh->do(q{UPDATE letter SET content = 'Stockrotation report for [% name %]:\r\n\r\n[%- IF items.size -%]\r\n[% items.size %] items to be processed for this branch.\r\n[%- ELSE -%]\r\nNo items to be processed for this branch\r\n[%- END -%]\r\n\r\n\r\n[%- FOREACH item IN items -%]\r\n[% IF item.reason != ''in-demand'' %]\r\nTitle: [% item.title %]\r\nAuthor: [% item.author %]\r\nCallnumber: [% item.callnumber %]\r\nLocation: [% item.location %]\r\nBarcode: [% item.barcode %]\r\nOn loan?: [% item.onloan %]\r\nStatus: [% item.reason %]\r\nCurrent Library: [% item.branch.branchname %] [% item.branch.branchcode %]\r\n[% END %]\r\n[%- END -%]' WHERE code = 'SR_SLIP'}); >+ >+ SetVersion($DBversion); >+ print "Upgrade to $DBversion done (Bug XXXXX - description)\n"; >+} >diff --git a/installer/data/mysql/en/mandatory/sample_notices.sql b/installer/data/mysql/en/mandatory/sample_notices.sql >index 6d676e73e6..e1311e41c3 100644 >--- a/installer/data/mysql/en/mandatory/sample_notices.sql >+++ b/installer/data/mysql/en/mandatory/sample_notices.sql >@@ -315,4 +315,24 @@ INSERT IGNORE INTO `letter` (`module`, `code`, `branchcode`, `name`, `is_html`, > </table>', 'print', 'default'); > > INSERT INTO `letter` (`module`, `code`, `branchcode`, `name`, `is_html`, `title`, `content`, `message_transport_type`) VALUES >-('circulation', 'SR_SLIP', '', 'Stock rotation slip', 0, 'Stock rotation report', 'Stock rotation report for [% branch.name %]:\r\n\r\n[% IF branch.items.size %][% branch.items.size %] items to be processed for this branch.\r\n[% ELSE %]No items to be processed for this branch\r\n[% END %][% FOREACH item IN branch.items %][% IF item.reason != \'in-demand\' %]Title: [% item.title %]\r\nAuthor: [% item.author %]\r\nCallnumber: [% item.callnumber %]\r\nLocation: [% item.location %]\r\nBarcode: [% item.barcode %]\r\nOn loan?: [% item.onloan %]\r\nStatus: [% item.reason %]\r\nCurrent library: [% item.branch.branchname %] [% item.branch.branchcode %]\r\n\r\n[% END %][% END %]', 'email'); >+('circulation', 'SR_SLIP', '', 'Stock rotation slip', 0, 'Stock rotation report', 'Stockrotation report for [% name %]: >+ >+[%- IF items.size -%] >+[% items.size %] items to be processed for this branch. >+[%- ELSE -%] >+No items to be processed for this branch >+[%- END -%] >+ >+ >+[%- FOREACH item IN items -%] >+[% IF item.reason != ''in-demand'' %] >+Title: [% item.title %] >+Author: [% item.author %] >+Callnumber: [% item.callnumber %] >+Location: [% item.location %] >+Barcode: [% item.barcode %] >+On loan?: [% item.onloan %] >+Status: [% item.reason %] >+Current Library: [% item.branch.branchname %] [% item.branch.branchcode %] >+[% END %] >+[%- END -%]', 'email'); >-- >2.17.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 22566
:
86923
|
90421
|
90422
|
90423
|
90433
|
90434
|
90435
|
90742
|
90743
|
90744
|
90745
|
90746
|
90747
|
90748
|
90749
|
90750
|
90751
|
90752
|
90753
|
90989
|
90990
|
90991
|
90992
|
90993
|
90994
|
90995