Skip to content

Commit 8a437fb

Browse files
committed
Merge branch 'bugfix/24060_group_from_object_broken' into support/2.12.0
2 parents eccf3d1 + 42aaadd commit 8a437fb

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

inc/abstracttarget.class.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,11 @@ protected function prepareActors(PluginFormcreatorForm $form, PluginFormcreatorF
696696
if ($question->isNewItem()) {
697697
continue 2;
698698
}
699-
$itemtype = DropdownField::getSubItemtypeForValues($question->fields['values']);
699+
$field = $question->getSubField();
700+
if (!method_exists($field, 'getSubItemtype')) {
701+
continue 2;
702+
}
703+
$itemtype = $field->getSubItemtype();
700704
if (!is_subclass_of($itemtype, CommonDBTM::class)) {
701705
continue 2;
702706
}

0 commit comments

Comments
 (0)