* Fix bug.
This commit is contained in:
@@ -1547,7 +1547,7 @@ class docModel extends model
|
||||
{
|
||||
$libID = key($libs);
|
||||
$html .= "<div class='dropdown' id='createDropdown'>";
|
||||
$html .= "<button class='btn btn-primary color-darkblue' type='button' data-toggle='dropdown'><i class='icon icon-plus'></i>" . $this->lang->doc->create . " <span class='caret'></span></button>";
|
||||
$html .= "<button class='btn btn-primary' type='button' data-toggle='dropdown'><i class='icon icon-plus'></i>" . $this->lang->doc->create . " <span class='caret'></span></button>";
|
||||
$html .= "<ul class='dropdown-menu' style='left:0px'>";
|
||||
foreach($this->lang->doc->typeList as $typeKey => $typeName)
|
||||
{
|
||||
|
||||
@@ -851,9 +851,6 @@ class program extends control
|
||||
$changes = $this->program->PRJUpdate($projectID);
|
||||
if(dao::isError()) $this->send(array('result' => 'fail', 'message' => $this->processErrors(dao::getError())));
|
||||
|
||||
$this->project->updateProducts($projectID);
|
||||
if(dao::isError()) $this->send(array('result' => 'fail', 'message' => $this->processErrors(dao::getError())));
|
||||
|
||||
if($changes)
|
||||
{
|
||||
$actionID = $this->loadModel('action')->create('project', $projectID, 'edited');
|
||||
@@ -864,16 +861,13 @@ class program extends control
|
||||
$this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => $url));
|
||||
}
|
||||
|
||||
$project = $this->program->getPRJByID($projectID);
|
||||
$parents = $this->program->getParentPairs();
|
||||
$programID = $this->program->getPRJProgramID($projectID);
|
||||
$project = $this->program->getPRJByID($projectID);
|
||||
$parents = $this->program->getParentPairs();
|
||||
|
||||
|
||||
$linkedProducts = array();
|
||||
$linkedBranches = array();
|
||||
$productPlans = array(0 => '');
|
||||
$allProducts = $parentID ? $this->program->getPGMProduct($parentID) : $this->program->getPGMProduct($projectID);
|
||||
$linkedProducts = $this->project->getProducts($projectID);
|
||||
$linkedProducts = $parentID ? array() : $this->project->getProducts($projectID);
|
||||
|
||||
foreach($linkedProducts as $product)
|
||||
{
|
||||
|
||||
@@ -892,6 +892,10 @@ class story extends control
|
||||
*/
|
||||
public function review($storyID)
|
||||
{
|
||||
$this->loadModel('product');
|
||||
$this->lang->product->menu = $this->lang->product->viewMenu;
|
||||
$this->lang->product->switcherMenu = $this->product->getSwitcher($this->session->product);
|
||||
|
||||
if(!empty($_POST))
|
||||
{
|
||||
$changes = $this->story->review($storyID);
|
||||
|
||||
Reference in New Issue
Block a user