mirror of https://gitee.com/karson/fastadmin.git
Pre Merge pull request !420 from 战场原礼亚/hotfix/curd_rmdir_error
commit
915140b1c7
|
|
@ -1312,6 +1312,7 @@ EOD;
|
|||
$iterator = new \FilesystemIterator($parentDir);
|
||||
$isDirEmpty = !$iterator->valid();
|
||||
if ($isDirEmpty) {
|
||||
unset($iterator);
|
||||
rmdir($parentDir);
|
||||
$parentDir = dirname($parentDir);
|
||||
} else {
|
||||
|
|
@ -1607,7 +1608,7 @@ EOD;
|
|||
$inputType = 'datetime';
|
||||
}
|
||||
// 指定后缀结尾且类型为enum,说明是个单选框
|
||||
if ($this->isMatchSuffix($fieldsName, $this->enumRadioSuffix) && $v['DATA_TYPE'] == 'enum') {
|
||||
if ($this->isMatchSuffix($fieldsName, $this->enumRadioSuffix) && $v['DATA_TYPE'] == 'enum' || $v['DATA_TYPE'] == 'smallint') {
|
||||
$inputType = "radio";
|
||||
}
|
||||
// 指定后缀结尾且类型为set,说明是个复选框
|
||||
|
|
|
|||
Loading…
Reference in New Issue