DirectorObjectForm: do not set imports from...
...choices when there are no such. fixes #1111
This commit is contained in:
parent
f74cb93533
commit
71057ef47a
|
@ -190,10 +190,12 @@ abstract class DirectorObjectForm extends DirectorForm
|
||||||
return $this->resolvedImports = false;
|
return $this->resolvedImports = false;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
if (! empty($this->choiceElements)) {
|
||||||
if (! $this->eventuallySetImports($this->extractChoicesFromPost($post))) {
|
if (! $this->eventuallySetImports($this->extractChoicesFromPost($post))) {
|
||||||
return $this->resolvedImports = false;
|
return $this->resolvedImports = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
foreach ($this->earlyProperties as $key) {
|
foreach ($this->earlyProperties as $key) {
|
||||||
if ($el = $this->getElement($key)) {
|
if ($el = $this->getElement($key)) {
|
||||||
|
|
Loading…
Reference in New Issue