From d26197f3296bcfc3a376308dd24f15d0e59964b6 Mon Sep 17 00:00:00 2001 From: Thierry Bugier Date: Fri, 7 Feb 2020 18:33:27 +0100 Subject: [PATCH] fix(dropdownfield): check existence of itemtype in prerequisite Signed-off-by: Thierry Bugier --- inc/fields/dropdownfield.class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/inc/fields/dropdownfield.class.php b/inc/fields/dropdownfield.class.php index 709ed6bee..c29997060 100644 --- a/inc/fields/dropdownfield.class.php +++ b/inc/fields/dropdownfield.class.php @@ -32,7 +32,9 @@ class PluginFormcreatorDropdownField extends PluginFormcreatorField { public function isPrerequisites() { - return true; + $itemtype = $this->getSubItemtype(); + + return class_exists($itemtype); } public function getDesignSpecializationField() {