Bug 32129: (QA follow-up) Avoid duplicate calculation
authorTomas Cohen Arazi <tomascohen@theke.io>
Fri, 12 May 2023 18:47:02 +0000 (15:47 -0300)
committerMatt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
Mon, 15 May 2023 13:05:07 +0000 (13:05 +0000)
commit9adac1f4d43fd1bc90f0adead3249693dce5d285
tree99ea2c882dbd1b869ee1f5eb8962da6d1743a610
parenta104de7094271e1d107754432a37fdc7a12cfca3
Bug 32129: (QA follow-up) Avoid duplicate calculation

This patch stores the output from ->check_recall() (a Koha::Recall
object or undef) and reuses afterwards, on a ternaty operator.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit 62f176d0799a3cf6422eb404646cbb17678f4c2a)
Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
Koha/Item.pm