Skip to content

Commit d26197f

Browse files
committed
fix(dropdownfield): check existence of itemtype in prerequisite
Signed-off-by: Thierry Bugier <[email protected]>
1 parent f6411d8 commit d26197f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

inc/fields/dropdownfield.class.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@
3232
class PluginFormcreatorDropdownField extends PluginFormcreatorField
3333
{
3434
public function isPrerequisites() {
35-
return true;
35+
$itemtype = $this->getSubItemtype();
36+
37+
return class_exists($itemtype);
3638
}
3739

3840
public function getDesignSpecializationField() {

0 commit comments

Comments
 (0)