Skip to content

Commit

Permalink
fix(dropdownfield): prevent ambiguous column name
Browse files Browse the repository at this point in the history
  • Loading branch information
btry committed Feb 6, 2023
1 parent 651444a commit b545232
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 @@ -331,7 +331,7 @@ public function buildParams($rand = null) {
if (isset($decodedValues['show_tree_depth'])
&& $decodedValues['show_tree_depth'] > 0
) {
$dparams_cond_crit['level'] = ['<=', $decodedValues['show_tree_depth'] + $baseLevel];
$dparams_cond_crit[$itemtype::getTableField('level')] = ['<=', $decodedValues['show_tree_depth'] + $baseLevel];
}

$dparams['condition'] = $dparams_cond_crit;
Expand Down

0 comments on commit b545232

Please sign in to comment.