]> git.koha-community.org Git - koha.git/commit
Bug 8700 - RESERVESLIP fields not being replaced correctly
authorKyle M Hall <kyle@bywatersolutions.com>
Wed, 29 Aug 2012 12:44:26 +0000 (08:44 -0400)
committerChris Cormack <chrisc@catalyst.net.nz>
Wed, 10 Oct 2012 21:32:37 +0000 (10:32 +1300)
commit13a2d21811bd0405e4687e0efade9d9fc23b4c59
tree16eab5c9d9b1e83326716147e4f1cb96e6da4bb6
parentdd66ac719ea3a10a1875748390a8c878836b8093
Bug 8700 - RESERVESLIP fields not being replaced correctly

The slip RESERVESLIP is not replacing fields correctly.
C4::Reserves::ReserveSlip calls C4::Letters::GetPreparedLetter,
and passes the $reserve hashref to it for each table except branches
( which is passed the branchcode ). The problem is, if you pass a
hashref for a table, it uses that hashref for the replacing, rather
than looking up the data from the database.

Fixed by passing the correct keys for each of the tables requested.

Signed-off-by: Marc Veron <veron@veron.ch>
Tested following the test plan.
Could reproduce the bug.
After applying the patch slip printed as expected.

Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
C4/Reserves.pm