Update AbstractController.php

设置filter的select默认值不生效问题
This commit is contained in:
jyiL
2021-08-07 10:51:13 +08:00
committed by GitHub
parent c8a049faeb
commit 572c8a1065

View File

@@ -915,7 +915,6 @@ abstract class AbstractController extends Controller
])
&& isset($_form['options'])) {
$_form['type'] = 'select';
unset($_form['value']);
$options_labels = array_column($_form['options'], 'label');
if (!isset($_form['props']['selectApi']) && !in_array('全部', $options_labels)) {
array_unshift($_form['options'], [