Skip to content

Commit b545232

Browse files
committed
fix(dropdownfield): prevent ambiguous column name
1 parent 651444a commit b545232

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

inc/field/dropdownfield.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ public function buildParams($rand = null) {
331331
if (isset($decodedValues['show_tree_depth'])
332332
&& $decodedValues['show_tree_depth'] > 0
333333
) {
334-
$dparams_cond_crit['level'] = ['<=', $decodedValues['show_tree_depth'] + $baseLevel];
334+
$dparams_cond_crit[$itemtype::getTableField('level')] = ['<=', $decodedValues['show_tree_depth'] + $baseLevel];
335335
}
336336

337337
$dparams['condition'] = $dparams_cond_crit;

0 commit comments

Comments
 (0)