Fixing some failing tests
This commit is contained in:
parent
93ce217ad9
commit
c86ee12651
4 changed files with 26 additions and 9 deletions
|
|
@ -2627,15 +2627,14 @@ sub setState {
|
|||
stateChanged = ?
|
||||
WHERE assetId = ?
|
||||
};
|
||||
my @props = ($state, $self->session->user->userId, time);
|
||||
$self->session->db->write(
|
||||
$sql, [
|
||||
$state,
|
||||
$self->session->user->userId,
|
||||
time,
|
||||
@props,
|
||||
$self->getId,
|
||||
]
|
||||
);
|
||||
$self->{_properties}->{state} = $state;
|
||||
@{$self->{_properties}}{qw(state stateChangedBy stateChanged)} = @props;
|
||||
$self->purgeCache;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue