[Koha-patches] [PATCH] Bug 5690

Chris Cormack chrisc at catalyst.net.nz
Thu Feb 3 22:03:49 CET 2011


From: Henri-Damien LAURENT <henridamien.laurent at biblibre.com>

MT3947: items.timestamp were not updated on edition

If items.timestamp is used in the framework and hidden
the fact that it is NOT deleted before update is done would input the previous timestamp,
which is not the desired behaviour.
---
 C4/Items.pm |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/C4/Items.pm b/C4/Items.pm
index 4ab385c..c0d8701 100644
--- a/C4/Items.pm
+++ b/C4/Items.pm
@@ -1779,6 +1779,9 @@ sub _do_column_fixes_for_mod {
     if (exists $item->{'location'} && !exists $item->{'permanent_location'}) {
         $item->{'permanent_location'} = $item->{'location'};
     }
+    if (exists $item->{'timestamp'}) {
+        delete $item->{'timestamp'};
+    }
 }
 
 =head2 _get_single_item_column
-- 
1.7.1



More information about the Koha-patches mailing list