* Code for task #8278 of inner backyard pms.
This commit is contained in:
@@ -1055,6 +1055,8 @@ class project extends control
|
||||
|
||||
$this->loadModel('action')->create('project', $projectID, 'opened', '', join(',', $_POST['products']));
|
||||
|
||||
if(isset($this->config->bizVersion)) $this->loadModel('workflowResult')->execute($this->moduleName, $this->methodName, $this->project->getById($projectID));
|
||||
|
||||
$planID = reset($_POST['plans']);
|
||||
if(!empty($planID))
|
||||
{
|
||||
@@ -1122,6 +1124,7 @@ class project extends control
|
||||
$actionID = $this->loadModel('action')->create('project', $projectID, 'edited');
|
||||
$this->action->logHistory($actionID, $changes);
|
||||
}
|
||||
if(isset($this->config->bizVersion)) $this->loadModel('workflowResult')->execute($this->moduleName, $this->methodName, $this->project->getById($projectID));
|
||||
$this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => inlink('view', "projectID=$projectID")));
|
||||
}
|
||||
|
||||
@@ -1249,6 +1252,7 @@ class project extends control
|
||||
$actionID = $this->action->create('project', $projectID, 'Started', $this->post->comment);
|
||||
$this->action->logHistory($actionID, $changes);
|
||||
}
|
||||
if(isset($this->config->bizVersion)) $this->loadModel('workflowResult')->execute($this->moduleName, $this->methodName, $project);
|
||||
die(js::reload('parent.parent'));
|
||||
}
|
||||
|
||||
@@ -1283,6 +1287,7 @@ class project extends control
|
||||
$actionID = $this->action->create('project', $projectID, 'Delayed', $this->post->comment);
|
||||
$this->action->logHistory($actionID, $changes);
|
||||
}
|
||||
if(isset($this->config->bizVersion)) $this->loadModel('workflowResult')->execute($this->moduleName, $this->methodName, $project);
|
||||
die(js::reload('parent.parent'));
|
||||
}
|
||||
|
||||
@@ -1317,6 +1322,7 @@ class project extends control
|
||||
$actionID = $this->action->create('project', $projectID, 'Suspended', $this->post->comment);
|
||||
$this->action->logHistory($actionID, $changes);
|
||||
}
|
||||
if(isset($this->config->bizVersion)) $this->loadModel('workflowResult')->execute($this->moduleName, $this->methodName, $project);
|
||||
die(js::reload('parent.parent'));
|
||||
}
|
||||
|
||||
@@ -1351,6 +1357,7 @@ class project extends control
|
||||
$actionID = $this->action->create('project', $projectID, 'Activated', $this->post->comment);
|
||||
$this->action->logHistory($actionID, $changes);
|
||||
}
|
||||
if(isset($this->config->bizVersion)) $this->loadModel('workflowResult')->execute($this->moduleName, $this->methodName, $project);
|
||||
die(js::reload('parent.parent'));
|
||||
}
|
||||
|
||||
@@ -1392,6 +1399,7 @@ class project extends control
|
||||
$actionID = $this->action->create('project', $projectID, 'Closed', $this->post->comment);
|
||||
$this->action->logHistory($actionID, $changes);
|
||||
}
|
||||
if(isset($this->config->bizVersion)) $this->loadModel('workflowResult')->execute($this->moduleName, $this->methodName, $project);
|
||||
die(js::reload('parent.parent'));
|
||||
}
|
||||
|
||||
@@ -1700,6 +1708,7 @@ class project extends control
|
||||
$this->project->delete(TABLE_PROJECT, $projectID);
|
||||
$this->dao->update(TABLE_DOCLIB)->set('deleted')->eq(1)->where('project')->eq($projectID)->exec();
|
||||
$this->session->set('project', '');
|
||||
if(isset($this->config->bizVersion)) $this->loadModel('workflowResult')->execute($this->moduleName, $this->methodName, $this->project->getById($projectID));
|
||||
die(js::locate(inlink('index'), 'parent'));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user