* adjust for project flow.
This commit is contained in:
@@ -429,6 +429,7 @@ class project extends control
|
||||
}
|
||||
}
|
||||
|
||||
$this->executeHooks($projectID);
|
||||
if($this->viewType == 'json') return $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'id' => $projectID));
|
||||
|
||||
if($this->app->tab == 'program')
|
||||
@@ -587,6 +588,7 @@ class project extends control
|
||||
$this->loadModel('productplan')->linkProject($projectID, $newPlans);
|
||||
}
|
||||
|
||||
$this->executeHooks($projectID);
|
||||
if(isonlybody()) return $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => 'parent'));
|
||||
|
||||
$locateLink = ($this->session->projectList and $from != 'view') ? $this->session->projectList : inLink('view', "projectID=$projectID");
|
||||
@@ -762,6 +764,8 @@ class project extends control
|
||||
if(!empty($extend) and $extend->extensionType == 'extend') $isExtended = true;
|
||||
}
|
||||
|
||||
$this->executeHooks($projectID);
|
||||
|
||||
$this->view->title = $this->lang->project->view;
|
||||
$this->view->position = $this->lang->project->view;
|
||||
$this->view->projectID = $projectID;
|
||||
@@ -1722,6 +1726,7 @@ class project extends control
|
||||
$url = $this->createLink('project', 'browse');
|
||||
if($this->app->tab == 'program') $url = $this->createLink('program', 'browse');
|
||||
|
||||
$this->executeHooks($projectID);
|
||||
if(empty($executionIdList))
|
||||
{
|
||||
if($this->viewType == 'json') return $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess));
|
||||
|
||||
Reference in New Issue
Block a user