Skip to content

Commit

Permalink
Merge branch 'bugfix/24060_group_from_object_broken' into support/2.12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
btry committed Jun 15, 2022
2 parents eccf3d1 + 42aaadd commit 8a437fb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion inc/abstracttarget.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 8a437fb

Please sign in to comment.