Bug 31154: Avoid unecessary loop
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 17 Oct 2022 14:00:25 +0000 (16:00 +0200)
committerLucas Gass <lucas@bywatersolutions.com>
Mon, 31 Oct 2022 21:39:56 +0000 (21:39 +0000)
commit23d0af2eab453deabf76b805a16ef1e97c795f7e
tree310bb07ab4882af32e66fa810720118a064be70f
parent8735f0732ccd5904d78c0beeef3b2692579e377f
Bug 31154: Avoid unecessary loop

We don't need to loop over the subfield and enter this block if there is
no record.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit b582f7d495fceda68a7972f7eab0d4e5d16bdcdf)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Koha/UI/Form/Builder/Item.pm