Skip to content

Commit

Permalink
Make sure that lastUpdated in updated in the database as well as in t…
Browse files Browse the repository at this point in the history
…he object.
  • Loading branch information
perlDreamer committed Mar 6, 2012
1 parent 92f4a5f commit 4a8c63e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/WebGUI/Crud.pm
Expand Up @@ -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;
Expand Down

0 comments on commit 4a8c63e

Please sign in to comment.