From 9366773326770940d125fb17bdd4f49c5144f0ea Mon Sep 17 00:00:00 2001 From: Thierry Bugier Date: Thu, 5 Mar 2020 11:41:59 +0100 Subject: [PATCH] fix(dropdownfield): SQL error : ambiguous column id Signed-off-by: Thierry Bugier --- inc/fields/dropdownfield.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/fields/dropdownfield.class.php b/inc/fields/dropdownfield.class.php index c29997060..4732537ea 100644 --- a/inc/fields/dropdownfield.class.php +++ b/inc/fields/dropdownfield.class.php @@ -237,7 +237,7 @@ public function displayField($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'];