Bug 17995 - HOLDPLACED notice should have access to the reserves table
authorNick Clemens <nick@bywatersolutions.com>
Wed, 25 Jan 2017 17:00:34 +0000 (17:00 +0000)
committerBrendan A Gallagher <brendan@bywatersolutions.com>
Thu, 23 Mar 2017 00:37:17 +0000 (00:37 +0000)
To test:
1 - Add reserves.reservenotes to HOLDPLACED message
2 - Enable emailLibrarianWhenHoldIsPlaced OpacHoldNotes sysprefs
3 - Place a hold via OPAC with a note
4 - view the messagequeue and note the reservenotes is blank
5 - Apply patch
6 - Place a hold with a note
7 - view the messagequeue and note the reservenotes is populated

Followed test plan, works as expected.
Signed-off-by: Marc VĂ©ron <veron@veron.ch>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Brendan A Gallagher <brendan@bywatersolutions.com>
C4/Reserves.pm

index 8c4175d..6a1756f 100644 (file)
@@ -165,6 +165,7 @@ The following tables are available witin the HOLDPLACED message:
     biblio
     biblioitems
     items
     biblio
     biblioitems
     items
+    reserves
 
 =cut
 
 
 =cut
 
@@ -238,6 +239,7 @@ sub AddReserve {
                 'biblio'      => $biblionumber,
                 'biblioitems' => $biblionumber,
                 'items'       => $checkitem,
                 'biblio'      => $biblionumber,
                 'biblioitems' => $biblionumber,
                 'items'       => $checkitem,
+                'reserves'    => $hold->unblessed,
             },
         ) ) {
 
             },
         ) ) {