Asset properties that have default values are now enforced by the API as they always have been by the user interface.
This commit is contained in:
parent
804721d0b8
commit
6524a3c815
3 changed files with 39 additions and 12 deletions
|
|
@ -68,11 +68,6 @@ sub addChild {
|
|||
my $id = shift || $self->session->id->generate();
|
||||
my $now = shift || $self->session->datetime->time();
|
||||
my $options = shift;
|
||||
# add a few things just in case the creator forgets
|
||||
$properties->{ownerUserId} ||= '3';
|
||||
$properties->{groupIdEdit} ||= '12';
|
||||
$properties->{groupIdView} ||= '7';
|
||||
$properties->{styleTemplateId} ||= 'PBtmpl0000000000000060';
|
||||
|
||||
# Check if it is possible to add a child to this asset. If not add it as a sibling of this asset.
|
||||
if (length($self->get("lineage")) >= 252) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue