Skip to content

Commit

Permalink
test itemtype in getDropdownValue for group
Browse files Browse the repository at this point in the history
  • Loading branch information
Aeto-J committed Nov 21, 2023
1 parent b7d7d73 commit 4ed6c8e
Showing 1 changed file with 18 additions and 8 deletions.
26 changes: 18 additions & 8 deletions src/Dropdown.php
Original file line number Diff line number Diff line change
Expand Up @@ -3115,14 +3115,24 @@ public static function getDropdownValue($post, $json = true)
}
$title = sprintf(__('%1$s - %2$s'), $title, $addcomment);
}
$datastoadd[] = [
'id' => $ID,
'text' => $outputval,
'level' => (int)$level,
'title' => $title,
'selection_text' => $selection_text,
'is_notify' => $data['is_notify']
];
if ($item->getType() == 'Group') {
$datastoadd[] = [
'id' => $ID,
'text' => $outputval,
'level' => (int)$level,
'title' => $title,
'selection_text' => $selection_text,
'is_notify' => $data['is_notify']
];
} else {
$datastoadd[] = [
'id' => $ID,
'text' => $outputval,
'level' => (int)$level,
'title' => $title,
'selection_text' => $selection_text
];
}
$count++;
}
$firstitem = false;
Expand Down

0 comments on commit 4ed6c8e

Please sign in to comment.