* adjust for project batchedit menu.
This commit is contained in:
@@ -3104,7 +3104,7 @@ EOD;
|
||||
return;
|
||||
}
|
||||
|
||||
if($currentModule == $tab && $currentMethod== 'create')
|
||||
if($currentModule == $tab && $currentMethod == 'create')
|
||||
{
|
||||
$lang->menu = $lang->$tab->homeMenu;
|
||||
return;
|
||||
@@ -3128,6 +3128,12 @@ EOD;
|
||||
$lang->menu = $lang->$tab->homeMenu;
|
||||
return;
|
||||
}
|
||||
|
||||
if(isset($menu['subModule']) and strpos(",{$menu['subModule']},", ",$currentModule,") !== false)
|
||||
{
|
||||
$lang->menu = $lang->$tab->homeMenu;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
/* Default, display menu. */
|
||||
|
||||
@@ -142,7 +142,7 @@ class message extends control
|
||||
else
|
||||
{
|
||||
echo <<<EOT
|
||||
<div class='alert alert-info with-icon alert-dismissable' style='width:380px; position:fixed; bottom:25px; right:15px; z-index: 9999;'>
|
||||
<div class='alert alert-info with-icon alert-dismissable' style='width:380px; position:fixed; margin-bottom:0px; bottom:0px; right:15px; z-index: 9999;'>
|
||||
<i class='icon icon-envelope-o'> </i>
|
||||
<div class='content'>{$messages}</div>
|
||||
<button type="button" class="close" data-dismiss="alert">×</button>
|
||||
|
||||
@@ -710,8 +710,6 @@ class project extends control
|
||||
return print(js::locate($this->session->projectList, 'parent'));
|
||||
}
|
||||
|
||||
if($this->app->tab == 'program') $this->loadModel('program')->setMenu(0);
|
||||
|
||||
if(!$this->post->projectIdList) return print(js::locate($this->session->projectList, 'parent'));
|
||||
$projectIdList = $this->post->projectIdList;
|
||||
$projects = $this->dao->select('*')->from(TABLE_PROJECT)->where('id')->in($projectIdList)->fetchAll('id');
|
||||
|
||||
Reference in New Issue
Block a user