Skip to content

Commit

Permalink
fix(targetticket): assign group actor from object
Browse files Browse the repository at this point in the history
  • Loading branch information
btry committed Jun 15, 2022
1 parent eccf3d1 commit 42aaadd
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 42aaadd

Please sign in to comment.