]> git.koha-community.org Git - koha.git/commit
Bug 22390: (bug 15184 follow-up) Use aqorders.subscriptionid instead of biblio.serial
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 21 Feb 2019 17:48:24 +0000 (14:48 -0300)
committerNick Clemens <nick@bywatersolutions.com>
Wed, 10 Apr 2019 20:05:15 +0000 (20:05 +0000)
commitec78d0cddbb5cf5455a2c67130062917a0a23484
treee07b69a7ef5d365868570e5bcfce964e2ca63191
parentea3cbef473a8b542b58341ef38beb9f7be20f4a1
Bug 22390: (bug 15184 follow-up) Use aqorders.subscriptionid instead of biblio.serial

It seems that we made a wrong assumption on bug 15184, see
  commit d658cb6f7ecb18845a78d4708ee63ad1126f220f
  Bug 15184: Do copy items for not a serial OR if items are created on ordering

To know if an order has been created from a subscription we should check
$order->subscriptionid instead of the $biblio->serial flag

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Koha/Acquisition/Order.pm
t/db_dependent/Koha/Acquisition/Order.t