Skip to content

Commit 921ad36

Browse files
committed
fix(dropdownfield): prevent ambiguous column name
1 parent 19fd7d0 commit 921ad36

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

inc/field/dropdownfield.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ public function buildParams($rand = null) {
371371
if (isset($decodedValues['show_tree_depth'])
372372
&& $decodedValues['show_tree_depth'] > 0
373373
) {
374-
$dparams_cond_crit['level'] = ['<=', $decodedValues['show_tree_depth'] + $baseLevel];
374+
$dparams_cond_crit[$itemtype::getTableField('level')] = ['<=', $decodedValues['show_tree_depth'] + $baseLevel];
375375
}
376376

377377
// search filter

0 commit comments

Comments
 (0)