[Koha-patches] [PATCH] [SIGNED-OFF] Bug 5690
Chris Nighswonger
cnighswonger at foundations.edu
Fri Feb 4 00:01:19 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.
Signed-off-by: Chris Nighswonger <cnighswonger at foundations.edu>
---
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.0.4
More information about the Koha-patches
mailing list