]> git.koha-community.org Git - koha.git/commit
Bug 29321: Remove a last without loop context
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Fri, 5 Nov 2021 15:00:04 +0000 (15:00 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Sat, 20 Nov 2021 00:13:58 +0000 (14:13 -1000)
commit263a9496329fe614e88cd525c4b664ce0464297f
tree6c3b0539f09ca21d170701dd13877bfef3c1f59f
parent5d9b4aa7f312ad5b9e79695e2693b01abe61c824
Bug 29321: Remove a last without loop context

This reads better when converted to regular if.
Note that last within such a block is allowed in Perl, but it feels
better to use it only in a loop context.

Test plan:
Read the patch ;)
Bonus: Test if you enter the block by using pref OPACSuggestionMandatoryFields
when adding a suggestion from opac.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Edit: Added a space between 'if' and '(' :-D

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 0144bb310ee207a7fde2091c8ada9c1ec11ecb50)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
opac/opac-suggestions.pl