Take the object's default as a defaultValue for the form if there are no config file overrides. However, always provide one.
This commit is contained in:
parent
693bccde4b
commit
b3f5e89690
1 changed files with 2 additions and 1 deletions
|
|
@ -2326,7 +2326,8 @@ sub processEditForm {
|
|||
|
||||
|
||||
# process the form element
|
||||
$data{$property} = $form->process( $property, $fieldType, $fieldHash->{defaultValue}, $fieldHash );
|
||||
my $defaultValue = $overrides->{defaultValue} // $self->$property;
|
||||
$data{$property} = $form->process( $property, $fieldType, $defaultValue, $fieldHash );
|
||||
} ## end foreach my $property ( $self...)
|
||||
|
||||
$data{keywords} = $form->process("keywords");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue