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