* productplan: bug #49513, fix error on create productplan.
This commit is contained in:
@@ -62,14 +62,15 @@ class formGroup extends wg
|
||||
$required = $this->prop('required');
|
||||
if($required === 'auto')
|
||||
{
|
||||
$childrens = $this->children();
|
||||
if($this->hasProp('name')) $required = isFieldRequired($this->prop('name'), $this->prop('requiredFields'));
|
||||
else if($childrens)
|
||||
$children = $this->children();
|
||||
$requiredFields = $this->prop('requiredFields');
|
||||
if($this->hasProp('name')) $required = isFieldRequired($this->prop('name'), $requiredFields);
|
||||
else if($children)
|
||||
{
|
||||
$required = false;
|
||||
foreach($childrens as $children)
|
||||
foreach($children as $child)
|
||||
{
|
||||
if(isFieldRequired($children->prop('name'), $this->prop('requiredFields'))) $required = true;
|
||||
if($child instanceof node && $child->hasProp('name') && isFieldRequired($child->prop('name'), $requiredFields)) $required = true;
|
||||
}
|
||||
}
|
||||
else $required = false;
|
||||
|
||||
@@ -41,7 +41,7 @@ formPanel
|
||||
(
|
||||
set::className('items-center'),
|
||||
set::label($lang->productplan->product),
|
||||
span($product->name)
|
||||
$product->name
|
||||
) : null,
|
||||
!$parent ? formGroup
|
||||
(
|
||||
|
||||
Reference in New Issue
Block a user