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);
|
$iterator = new \FilesystemIterator($parentDir);
|
||||||
$isDirEmpty = !$iterator->valid();
|
$isDirEmpty = !$iterator->valid();
|
||||||
if ($isDirEmpty) {
|
if ($isDirEmpty) {
|
||||||
|
unset($iterator);
|
||||||
rmdir($parentDir);
|
rmdir($parentDir);
|
||||||
$parentDir = dirname($parentDir);
|
$parentDir = dirname($parentDir);
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -1607,7 +1608,7 @@ EOD;
|
||||||
$inputType = 'datetime';
|
$inputType = 'datetime';
|
||||||
}
|
}
|
||||||
// 指定后缀结尾且类型为enum,说明是个单选框
|
// 指定后缀结尾且类型为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";
|
$inputType = "radio";
|
||||||
}
|
}
|
||||||
// 指定后缀结尾且类型为set,说明是个复选框
|
// 指定后缀结尾且类型为set,说明是个复选框
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue