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)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 5 Nov 2018 15:51:07 +0000 (15:51 +0000)
commit75d6195c0ef36c4da244c4e2e2341696c94642c1
treefb84b6acd54701d5d8cf451b76d86f5a7704e88e
parent02860425d9ed9229664dc1d977f1d45ce83bcb50
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>
C4/Items.pm