merging forward 6.8.8 bugfix of [ 1423434 ] 6.8.5 - Versioning - users can see uncommitted data
This commit is contained in:
parent
0197f6f1bd
commit
9ff3308126
3 changed files with 5 additions and 3 deletions
|
|
@ -196,7 +196,7 @@ sub definition {
|
|||
status=>{
|
||||
noFormPost=>1,
|
||||
fieldType=>'hidden',
|
||||
defaultValue=>'approved'
|
||||
defaultValue=>'pending'
|
||||
},
|
||||
assetSize=>{
|
||||
noFormPost=>1,
|
||||
|
|
|
|||
|
|
@ -69,8 +69,9 @@ sub addRevision {
|
|||
my $newVersion = WebGUI::Asset->new($self->session,$self->getId, $self->get("className"), $now);
|
||||
$newVersion->updateHistory("created revision");
|
||||
$newVersion->update($self->get);
|
||||
$newVersion->setVersionLock;
|
||||
$newVersion->update($properties) if (defined $properties);
|
||||
$newVersion->{isLockedBy} = $self->session->user->userId;
|
||||
$properties->{status} = 'pending';
|
||||
$newVersion->update($properties);
|
||||
return $newVersion;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue