Skip to content

Commit 42aaadd

Browse files
committed
fix(targetticket): assign group actor from object
1 parent eccf3d1 commit 42aaadd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

inc/abstracttarget.class.php

+5-1
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)