Skip to content

Commit 4a8c63e

Browse files
committedMar 6, 2012
Make sure that lastUpdated in updated in the database as well as in the object.
1 parent 92f4a5f commit 4a8c63e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎lib/WebGUI/Crud.pm

+1-1
Original file line numberDiff line numberDiff line change
@@ -976,7 +976,7 @@ sub update {
976976
}
977977

978978
# set last updated
979-
$data->{lastUpdated} ||= WebGUI::DateTime->new($session, time())->toDatabase;
979+
$dbData->{lastUpdated} = $data->{lastUpdated} ||= WebGUI::DateTime->new($session, time())->toDatabase;
980980

981981
# update memory
982982
my $refId = id $self;

0 commit comments

Comments
 (0)