From 4a8c63ec0a449b02e6933066668f990d0fa37dfd Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Mon, 5 Mar 2012 17:56:46 -0800 Subject: [PATCH] Make sure that lastUpdated in updated in the database as well as in the object. --- lib/WebGUI/Crud.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/WebGUI/Crud.pm b/lib/WebGUI/Crud.pm index 305980f7a..9c502b7f2 100644 --- a/lib/WebGUI/Crud.pm +++ b/lib/WebGUI/Crud.pm @@ -976,7 +976,7 @@ sub update { } # set last updated - $data->{lastUpdated} ||= WebGUI::DateTime->new($session, time())->toDatabase; + $dbData->{lastUpdated} = $data->{lastUpdated} ||= WebGUI::DateTime->new($session, time())->toDatabase; # update memory my $refId = id $self;