切换导航条
此项目
正在载入...
登录
何书鹏
/
recruit
·
提交
转到一个项目
GitLab
转到仪表盘
项目
活动
文件
提交
管道
0
构建
0
图表
里程碑
问题
0
合并请求
0
成员
标记
维基
派生
网络
创建新的问题
下载为
邮件补丁
差异文件
浏览文件
作者
Karson
8 years ago
提交
3320cec110e7a3d187b8e58317bd5afc62ac9b60
1 个父辈
0b13e1ef
修复删除父规则节点时未删除子节点的BUG
修复CRUD默认index视图的错误
隐藏空白字符变更
内嵌
并排对比
正在显示
2 个修改的文件
包含
8 行增加
和
2 行删除
application/admin/command/Crud/stubs/index.stub
application/admin/controller/auth/Rule.php
application/admin/command/Crud/stubs/index.stub
查看文件 @
3320cec
<div class="panel panel-default panel-intro">
{:build_heading(
$heading.name, $heading.intro
)}
{:build_heading()}
<div class="panel-body">
<div id="myTabContent" class="tab-content">
...
...
application/admin/controller/auth/Rule.php
查看文件 @
3320cec
...
...
@@ -107,7 +107,13 @@ class Rule extends Backend
$this
->
code
=
-
1
;
if
(
$ids
)
{
$count
=
$this
->
model
->
where
(
'id'
,
'in'
,
$ids
)
->
delete
();
$delIds
=
[];
foreach
(
explode
(
','
,
$ids
)
as
$k
=>
$v
)
{
$delIds
=
array_merge
(
$delIds
,
Tree
::
instance
()
->
getChildrenIds
(
$v
,
TRUE
));
}
$delIds
=
array_unique
(
$delIds
);
$count
=
$this
->
model
->
where
(
'id'
,
'in'
,
$delIds
)
->
delete
();
if
(
$count
)
{
AdminLog
::
record
(
__
(
'Del'
),
$ids
);
...
...
请
注册
或
登录
后发表评论