Merge branch 'master' of github.com:easysoft/zentaopms
This commit is contained in:
@@ -284,7 +284,7 @@ class backupModel extends model
|
||||
public function getBackupPath()
|
||||
{
|
||||
$backupPath = empty($this->config->backup->settingDir) ? $this->app->getTmpRoot() . 'backup' . DS : $this->config->backup->settingDir;
|
||||
return trim(str_replace('\\', '/', $backupPath), '/') . '/';
|
||||
return rtrim(str_replace('\\', '/', $backupPath), '/') . '/';
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -508,7 +508,8 @@ class treeModel extends model
|
||||
$fullTrees = array();
|
||||
foreach($products as $id => $product)
|
||||
{
|
||||
$productInfo = $this->product->getById($id);
|
||||
$linkedStory = $this->dao->select('*')->from(TABLE_PROJECTSTORY)->where('project')->eq($rootID)->andWhere('product')->eq($id)->fetch();
|
||||
$productInfo = $this->product->getById($id);
|
||||
/* tree menu. */
|
||||
$productTree = array();
|
||||
$branchTrees = array();
|
||||
@@ -520,7 +521,7 @@ class treeModel extends model
|
||||
->orderBy('grade desc, type, `order`')
|
||||
->get();
|
||||
$stmt = $this->dbh->query($query);
|
||||
if($branch == 0) $productTree = $this->getDataStructure($stmt, 'task', $projectModules);
|
||||
if($branch == 0 and $linkedStory) $productTree = $this->getDataStructure($stmt, 'task', $projectModules);
|
||||
if($branch != 0)
|
||||
{
|
||||
$children = $this->getDataStructure($stmt, 'task', $projectModules);
|
||||
|
||||
Reference in New Issue
Block a user