Skip to content

Commit

Permalink
fix(dropdownfield): SQL error : ambiguous column id
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <[email protected]>
  • Loading branch information
btry committed Mar 5, 2020
1 parent 5cbab1e commit 2da1583
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/fields/dropdownfield.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ public function getRenderedHtml($canEdit = true) {
$itemtype::getTable(),
$decodedValues['show_ticket_categories_root']
);
$dparams_cond_crit['id'] = $sons;
$dparams_cond_crit[ItilCategory::getTable().'id'] = $sons;
$rootItem = new $itemtype();
if ($rootItem->getFromDB($decodedValues['show_ticket_categories_root'])) {
$baseLevel = $rootItem->fields['level'];
Expand Down

0 comments on commit 2da1583

Please sign in to comment.