* Fix ajax get program menu.
This commit is contained in:
@@ -697,7 +697,6 @@ class program extends control
|
||||
public function ajaxGetDropMenu($programID, $module, $method, $extra)
|
||||
{
|
||||
$this->loadModel('project');
|
||||
$this->view->link = $this->createLink('program', 'index', "programID=$programID", '', '', $programID);
|
||||
$this->view->programID = $programID;
|
||||
$this->view->module = $module;
|
||||
$this->view->method = $method;
|
||||
|
||||
@@ -21,6 +21,7 @@ $programsPinYin = common::convert2Pinyin($programNames);
|
||||
|
||||
foreach($programs as $program)
|
||||
{
|
||||
$link = $this->createLink('program', 'index', "programID=$program->id", '', '', $program->id);
|
||||
if($program->status != 'done' and $program->status != 'closed' and $program->PM == $this->app->user->account)
|
||||
{
|
||||
$myProgramsHtml .= html::a($link, "<i class='icon icon-folder-outline'></i> " . $program->name, '', "class='text-important' title='{$program->name}' data-id={$program->id} data-key='" . zget($programsPinYin, $program->name, '') . "'");
|
||||
|
||||
Reference in New Issue
Block a user