From f2431dbc289591ce926bb4bf97b36b84e187d157 Mon Sep 17 00:00:00 2001 From: Henri-Damien LAURENT Date: Wed, 23 Jun 2010 18:48:12 +0200 Subject: [PATCH] Bug 5690 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