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

--- Comment #83 from Pedro Amorim <[email protected]> ---
Created attachment 188923
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=188923&action=edit
Bug 40517: (QA follow-up): Fix tests

Enforce no hold group when creating hold object

When a hold is created by build_object, it's auto-assigned a hold_group_id (as
expected).
When a hold is ->fill, it's hold_group_id is cleared by cleanup_hold_group (as
expected).

The problem is then this causes the  object before ->fill to be out of sync
with the up to date object returned by the API (i.e. the latter has an empty
hold_group_id, as expected, but the former has the auto-assigned
hold_group_id).

Using ->discard_changes or ->get_from_storage doesnt work because the  became a
 after ->fill.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to