Skip to content

Commit

Permalink
fix(dropdownfield): bad subtree handling for ITIL category
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <[email protected]>
  • Loading branch information
btry committed Feb 28, 2019
1 parent 7447365 commit a62e764
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions inc/fields/dropdownfield.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,9 @@ public function displayField($canEdit = true) {
ItilCategory::getTable(),
$decodedValues['show_ticket_categories_root']
);
$sons = "'" . implode("', '", $sons) . "'";
$dparams['condition'] .= " AND `id` IN ('" . $decodedValues['show_ticket_categories_root'] . "')";
$dparams_cond_crit['id'] = $decodedValues['show_ticket_categories_root'];
//$sons = "'" . implode("', '", $sons) . "'";
$dparams['condition'] .= " AND `id` IN ('" . implode("', '", $sons) . "')";
$dparams_cond_crit['id'] = $sons;
}
break;

Expand Down

0 comments on commit a62e764

Please sign in to comment.