Bug 23336: Fix inconsistent return of AddIssue
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 3 Oct 2022 16:07:20 +0000 (17:07 +0100)
committerTomas Cohen Arazi <tomascohen@theke.io>
Mon, 3 Jul 2023 13:35:00 +0000 (10:35 -0300)
commit38139718f534f308e5eb846f5e26ef54c01c3376
tree761328062bbd830ad9816444b88fd4801536ce1d
parent6db025bd9dfeecb1f59490578befafbe57a1548e
Bug 23336: Fix inconsistent return of AddIssue

AddIssue can on occasion create a renewal instead of a fresh issue and
in such a case we currently return undefined. We should be consistent
and return the existing issue object for the renewal.

Signed-off-by: Silvia Meakins <smeakins@eso.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
C4/Circulation.pm