Bug 20592: Return early in ModItem if nothing to update
authorMark Tompsett <mtompset@hotmail.com>
Tue, 17 Apr 2018 23:59:58 +0000 (23:59 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 28 Nov 2018 09:10:15 +0000 (10:10 +0100)
commit1671f009e61d6e0fffaa5a627e5e85fcadf8f7fc
tree3a500684c8cbd7aa029181054eb8dd311930686d
parent4adc6ca70ef4a8605d71ff8f8fd6a1b6df1a7ef0
Bug 20592: Return early in ModItem if nothing to update

Two lines of code and move them earlier.
Add a check to make sure there are changes.

Followed the test plan, both the _BEFORE_ and after do as described.

Signed-off-by: Cori Lynn Arnold <carnold@dgiinc.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 1f0064bbddb9d00529d5eac1c096e669732eb551)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 75d6195c0ef36c4da244c4e2e2341696c94642c1)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
C4/Items.pm