diff --git a/inc/abstracttarget.class.php b/inc/abstracttarget.class.php index d0a889fef..19ae52297 100644 --- a/inc/abstracttarget.class.php +++ b/inc/abstracttarget.class.php @@ -696,7 +696,11 @@ protected function prepareActors(PluginFormcreatorForm $form, PluginFormcreatorF if ($question->isNewItem()) { continue 2; } - $itemtype = DropdownField::getSubItemtypeForValues($question->fields['values']); + $field = $question->getSubField(); + if (!method_exists($field, 'getSubItemtype')) { + continue 2; + } + $itemtype = $field->getSubItemtype(); if (!is_subclass_of($itemtype, CommonDBTM::class)) { continue 2; }