Bug 18999: (QA followup) ModReceiveOrder expects a hashref
authorTomas Cohen Arazi <tomascohen@theke.io>
Fri, 29 Sep 2017 14:29:24 +0000 (11:29 -0300)
committerKatrin Fischer <katrin.fischer.83@web.de>
Sun, 29 Oct 2017 18:17:14 +0000 (19:17 +0100)
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 2b343df13e6d154296cf968cb709aa910c58f336)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit 388ced2e7472ccde5e8f3764d37d0d6c18480e34)
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

t/db_dependent/Budgets.t

index 6c0560a..ca23488 100755 (executable)
@@ -463,7 +463,7 @@ my $order = Koha::Acquisition::Order->new(
 
 ModReceiveOrder({
    bibionumber       => $biblio,
-   order             => $order,
+   order             => $order->unblessed,
    budget_id         => $fund,
    quantityreceived  => 2,
    invoice           => $test_invoice,