Bug 19694: Force scalar context for output_pref called with billingdate
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 19 Dec 2017 18:04:13 +0000 (15:04 -0300)
committerFridolin Somers <fridolin.somers@biblibre.com>
Mon, 15 Jan 2018 15:45:53 +0000 (16:45 +0100)
commitce1aacf121f7481c5377480501e367be9364c7e9
tree2cc631dd15101efbf818d01645a064ed901f5674
parent6c4429f62f67c19dd0a667d06e7310cbdc86803f
Bug 19694: Force scalar context for output_pref called with billingdate

If no string is passed to output_pref, it needs to be called in scalar
context (to avoid a shift in the hash elements).
Here we have billingdate that is not defined yet (NULL)

Test plan:
- Search for an existing invoice
- Show details
- Changing shipping cost
- Save
- Verify the new amount is shown

Signed-off-by: Jon Knight <J.P.Knight@lboro.ac.uk>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit ad550017ff7618e5e4bdb8686a88710480648864)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
acqui/invoice.pl