* Revert commit.

This commit is contained in:
tianshujie98
2020-10-28 10:41:55 +08:00
parent 03e866fe99
commit 7a84c2f826
3 changed files with 1 additions and 15 deletions
-2
View File
@@ -135,7 +135,6 @@ class group extends control
/* Get the group data by id and primary menus. */
$group = $this->group->getByID($groupID);
$menus = $this->group->getPrimaryMenus();
$this->view->title = $this->lang->company->common . $this->lang->colon . $group->name . $this->lang->colon . $this->lang->group->manageView;
$this->view->position[] = $group->name;
@@ -148,7 +147,6 @@ class group extends control
$menugroup = array();
foreach($this->lang->menugroup as $moduleName => $groupName) $menugroup[$groupName][$moduleName] = $moduleName;
$this->view->menugroup = $menugroup;
$this->view->menus = $menus;
$this->display();
}
-12
View File
@@ -463,16 +463,4 @@ class groupModel extends model
return true;
}
/**
* Get primary menus.
*
* @access public
* @return array
*/
public function getPrimaryMenus()
{
$menus = clone $this->lang->menu;
return $menus;
}
}
+1 -1
View File
@@ -23,7 +23,7 @@
<tr>
<th class='text-bottom thWidth'><?php echo $lang->group->viewList;?></th>
<td class='text-bottom'>
<?php foreach($menus as $menuKey => $menu):?>
<?php foreach($lang->menu as $menuKey => $menu):?>
<?php if(!is_string($menu)) continue;?>
<?php list($moduleName, $module) = explode('|', $menu);?>
<?php if($module == 'my') continue;?>