From 8c03ce64e811a08c73d335c2b91b6745d3a7bc8b Mon Sep 17 00:00:00 2001 From: Fridolyn SOMERS Date: Thu, 28 Feb 2013 16:24:19 +0100 Subject: [PATCH] Bug 9732: timestamp not updated when modifying biblio When modifying a biblio, biblio.timestamp and biblioitems.timestamp are not updated. This patch adds timestamp=NOW() in _koha_modify_biblio and _koha_modify_biblioitem_nonmarc. Test plan : - Look at an old biblio in database : biblio.timestamp and biblioitems.timestamp. - Edit and save this biblio - Look again in database => biblio.timestamp and biblioitems.timestamp must be actual date and time --- C4/Biblio.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/C4/Biblio.pm b/C4/Biblio.pm index 2c7170c..de93fcc 100644 --- a/C4/Biblio.pm +++ b/C4/Biblio.pm @@ -3342,7 +3342,8 @@ sub _koha_modify_biblio { serial = ?, seriestitle = ?, copyrightdate = ?, - abstract = ? + abstract = ?, + timestamp = NOW() WHERE biblionumber = ? " ; @@ -3406,7 +3407,8 @@ sub _koha_modify_biblioitem_nonmarc { cn_sort = ?, totalissues = ?, ean = ?, - agerestriction = ? + agerestriction = ?, + timestamp = NOW() where biblioitemnumber = ? "; my $sth = $dbh->prepare($query); -- 1.7.10.4