* [bug] fix sonar.

This commit is contained in:
qixinzhi
2024-11-26 15:19:53 +08:00
committed by 宋辰轩
parent 7326ab2644
commit c610ba0304
-2
View File
@@ -28,10 +28,8 @@ $fnGenerateFilters = function() use($pivot, $showOrigin, $lang)
$field = $filter['field'];
$value = zget($filter, 'default', '');
$from = zget($filter, 'from');
$values = is_array($value) ? implode(',', $value) : $value;
$items = $this->getFilterOptionUrl($filter, $pivot->sql, (array)$pivot->fieldSettings);
if($from == 'query')
{
$filters[] = filter(set(array('title' => $name, 'type' => $type, 'name' => $field, 'value' => $value, 'items' => $items, 'multiple' => $type == 'multipleselect' ? true : false)));