Make the object optional, so that dynamicForm can be called from class methods.
This commit is contained in:
parent
0759b3f1fe
commit
91460a93d1
1 changed files with 1 additions and 1 deletions
|
|
@ -151,7 +151,7 @@ sub dynamicForm {
|
|||
$params{$key} = $formDefinition->[0]{name};
|
||||
}
|
||||
}
|
||||
$params{value} = $parent->get($fieldname);
|
||||
$params{value} = $parent->get($fieldname) if $parent;
|
||||
$params{name} = $fieldname;
|
||||
$self->dynamicField(%params);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue