DirectorObjectForm: do not set imports from...

...choices when there are no such.

fixes #1111
This commit is contained in:
Thomas Gelf 2017-09-03 10:41:57 +02:00
parent f74cb93533
commit 71057ef47a
1 changed files with 4 additions and 2 deletions

View File

@ -190,8 +190,10 @@ abstract class DirectorObjectForm extends DirectorForm
return $this->resolvedImports = false; return $this->resolvedImports = false;
} }
} else { } else {
if (! $this->eventuallySetImports($this->extractChoicesFromPost($post))) { if (! empty($this->choiceElements)) {
return $this->resolvedImports = false; if (! $this->eventuallySetImports($this->extractChoicesFromPost($post))) {
return $this->resolvedImports = false;
}
} }
} }