浏览代码

Merge branch 'develop'

master
Guillaume 2 年前
父节点
当前提交
a3cff1aea3
共有 1 个文件被更改,包括 1 次插入6 次删除
  1. +1
    -6
      Controller/Ticket/TicketAdminController.php

+ 1
- 6
Controller/Ticket/TicketAdminController.php 查看文件

@@ -32,12 +32,7 @@ abstract class TicketAdminController extends SovTicketAdminController
public function configureActions(Actions $actions): Actions
{
$actions = parent::configureActions($actions);

if(!$this->getSectionCurrent()) {
$actions->disable(ActionDefinition::NEW, ActionDefinition::EDIT, ActionDefinition::DUPLICATE,ActionDefinition::DUPLICATE_TO_OTHER_SECTION, ActionDefinition::DELETE);
}else{
$actions->disable( ActionDefinition::EDIT, ActionDefinition::DUPLICATE,ActionDefinition::DUPLICATE_TO_OTHER_SECTION, ActionDefinition::DELETE);
}
$actions->disable( ActionDefinition::EDIT, ActionDefinition::DUPLICATE,ActionDefinition::DUPLICATE_TO_OTHER_SECTION, ActionDefinition::DELETE);

return $actions;
}

正在加载...
取消
保存