Skip to content

Commit

Permalink
fix(dropdownfield): fix SQL error when translations are enabled
Browse files Browse the repository at this point in the history
Signed-off-by: Thierry Bugier <[email protected]>
  • Loading branch information
btry committed Feb 3, 2021
1 parent 6c5525d commit c55dc49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/field/dropdownfield.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ public function buildParams($rand = null) {
$itemtype::getTable(),
$decodedValues['show_ticket_categories_root']
);
$dparams_cond_crit['id'] = $sons;
$dparams_cond_crit[$itemtype::getTable() . '.id'] = $sons;
$rootItem = new $itemtype();
if ($rootItem->getFromDB($decodedValues['show_ticket_categories_root'])) {
$baseLevel = $rootItem->fields['level'];
Expand Down

0 comments on commit c55dc49

Please sign in to comment.