]> 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)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 15 Apr 2019 11:24:50 +0000 (12:24 +0100)
commit290d2376a213249d8c52c38302dfffe68079ff55
tree185722552eee16f2ac6043ecb5b61e9ef0e0930d
parentdc4e072039c127d28554d46a3f1cbe6dac921d91
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>
(cherry picked from commit ec78d0cddbb5cf5455a2c67130062917a0a23484)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Koha/Acquisition/Order.pm
t/db_dependent/Koha/Acquisition/Order.t