[Koha-bugs] [Bug 19293] Internal server error when receiving shipment with order with deleted biblio

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Oct 9 14:04:51 CEST 2017


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=19293

Lari Taskula <lari.taskula at jns.fi> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #67625|0                           |1
        is obsolete|                            |

--- Comment #8 from Lari Taskula <lari.taskula at jns.fi> ---
Created attachment 67839
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=67839&action=edit
Bug 19293: Prevent error when receiving shipment with order with deleted biblio

This patch checks if the biblio exists when receiving a shipment, and
will skip the order if the biblio does not exist.

To test:
1) Find or create a basket
2) Add TWO items to it
3) Find the record for one item in a separate tab, delete the record
4) Notice the order in the basket for that item now says 'deleted
bibliographic
record'
5) close the basket and receive the shipment
6) After entering an invoice number and clicking next, you'll see the
error:
Can't call method "subscriptions" on an undefined value at
/home/vagrant/kohaclone/acqui/parcel.pl line 245.
7) Apply the patch and go back to the basket to receive the shipment
8) Put in an invoice number and click next
9) This should now work as expected, skipping the deleted biblio, and
the other item should show as ready to receive

Sponsored-by: Catalyst IT

Patch applies and works as described when test plan is followed.

Signed-off-by: Dilan Johnpullé <dilan at calyx.net.au>

Signed-off-by: Lari Taskula <lari.taskula at jns.fi>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list