Skip to content

Commit

Permalink
fix(dropdownfield): check existence of itemtype in prerequisite
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <tbugier@teclib.com>
  • Loading branch information
btry committed Feb 7, 2020
1 parent f6411d8 commit d26197f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion inc/fields/dropdownfield.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@
class PluginFormcreatorDropdownField extends PluginFormcreatorField
{
public function isPrerequisites() {
return true;
$itemtype = $this->getSubItemtype();

return class_exists($itemtype);
}

public function getDesignSpecializationField() {
Expand Down

0 comments on commit d26197f

Please sign in to comment.