Fix bug where default propeties were not applied correctly to mailings generated by managers.
This commit is contained in:
parent
253450928b
commit
65c04acc7c
1 changed files with 8 additions and 8 deletions
|
|
@ -590,15 +590,15 @@ sub www_editSave {
|
|||
|
||||
my %fields = %{ $self->getAsset->getMailingProperties( $self ) };
|
||||
my $configuration = {};
|
||||
if ( $self->admin->canOverride ) {
|
||||
while ( my( $name, $properties ) = each %fields ) {
|
||||
my $value = $form->process( $name, $properties->{ fieldType }, $properties->{ defaultValue } );
|
||||
while ( my( $name, $properties ) = each %fields ) {
|
||||
if ( $self->admin->canOverride ) {
|
||||
my $value = $form->process( $name, $properties->{ fieldType }, $properties->{ defaultValue } );
|
||||
|
||||
$configuration->{ $name } = $value;
|
||||
}
|
||||
}
|
||||
else {
|
||||
$configuration = \%fields;
|
||||
$configuration->{ $name } = $value;
|
||||
}
|
||||
else {
|
||||
$configuration->{ $name } = $properties->{ defaultValue } || $properties->{ value };
|
||||
}
|
||||
}
|
||||
|
||||
#### TODO: Add error checking and required fields?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue