Set the default state of the created object to "published".
This commit is contained in:
parent
94fff8d6fb
commit
3b6c4e8372
1 changed files with 1 additions and 0 deletions
|
|
@ -89,6 +89,7 @@ sub addChild {
|
|||
$session->db->commit;
|
||||
$properties->{assetId} = $id;
|
||||
$properties->{parentId} = $self->getId;
|
||||
$properties->{state} = 'published';
|
||||
my $temp = WebGUI::Asset->newByPropertyHashRef($session, $properties) || croak "Couldn't create a new $properties->{className} asset!";
|
||||
my $newAsset = $temp->addRevision($properties, $now, $options);
|
||||
$self->updateHistory("added child ".$id);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue