Merge branch 'master' of github.com:easysoft/zentaopms
This commit is contained in:
@@ -31,7 +31,7 @@ class bug extends control
|
||||
$this->loadModel('action');
|
||||
$this->loadModel('story');
|
||||
$this->loadModel('task');
|
||||
$this->view->products = $this->products = $this->product->getPairs('nocode', $this->session->PRJ);
|
||||
$this->view->products = $this->products = $this->product->getPairs('nocode');
|
||||
|
||||
if(empty($this->products)) die($this->locate($this->createLink('product', 'showErrorNone', "fromModule=bug")));
|
||||
}
|
||||
|
||||
@@ -31,7 +31,7 @@ class product extends control
|
||||
|
||||
/* Get all products, if no, goto the create page. */
|
||||
$this->products = $this->product->getPairs('nocode');
|
||||
if(empty($this->products) and strpos(',all,create,index,showerrornone,', $this->methodName) === false and $this->app->getViewType() != 'mhtml') $this->locate($this->createLink('product', 'create'));
|
||||
if(empty($this->products) and strpos(',create,index,showerrornone,', $this->methodName) === false and $this->app->getViewType() != 'mhtml') $this->locate($this->createLink('product', 'create'));
|
||||
$this->view->products = $this->products;
|
||||
}
|
||||
|
||||
|
||||
@@ -435,7 +435,7 @@ class program extends control
|
||||
|
||||
/* Load pager and get tasks. */
|
||||
$this->app->loadClass('pager', $static = true);
|
||||
$pager = new pager($recTotal, $recPerPage, $pageID);
|
||||
$pager = new pager(0, $recPerPage, $pageID);
|
||||
|
||||
$this->view->title = $this->lang->program->PGMStakeholder;
|
||||
$this->view->position[] = $this->lang->program->PGMStakeholder;
|
||||
|
||||
@@ -64,7 +64,6 @@
|
||||
<td><?php echo zget($users, $program->PM);?></td>
|
||||
<td class='text-right c-actions'>
|
||||
<?php if($program->type == 'program'):?>
|
||||
<?php common::printIcon('program', 'PGMManageMembers', "programID=$program->id", $program, 'list', 'persons');?>
|
||||
<?php common::printIcon('program', 'PRJStart', "programID=$program->id", $program, 'list', 'play', '', 'iframe', true);?>
|
||||
<?php common::printIcon('program', 'PGMActivate', "programID=$program->id", $program, 'list', 'magic', '', 'iframe', true);?>
|
||||
<?php common::printIcon('program', 'PRJSuspend', "programID=$program->id", $program, 'list', 'pause', '', 'iframe', true);?>
|
||||
|
||||
@@ -19,7 +19,7 @@ class qa extends control
|
||||
*/
|
||||
public function index($locate = 'auto', $productID = 0)
|
||||
{
|
||||
$this->products = $this->loadModel('product')->getPairs('nocode', $this->session->PRJ);
|
||||
$this->products = $this->loadModel('product')->getPairs('nocode');
|
||||
if(empty($this->products)) die($this->locate($this->createLink('product', 'showErrorNone', "fromModule=qa")));
|
||||
if($locate == 'yes') $this->locate($this->createLink('bug', 'browse'));
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ class testcase extends control
|
||||
$this->loadModel('product');
|
||||
$this->loadModel('tree');
|
||||
$this->loadModel('user');
|
||||
$this->view->products = $this->products = $this->product->getPairs('nocode', $this->session->PRJ);
|
||||
$this->view->products = $this->products = $this->product->getPairs('nocode');
|
||||
if(empty($this->products)) die($this->locate($this->createLink('product', 'showErrorNone', "fromModule=testcase")));
|
||||
}
|
||||
|
||||
|
||||
@@ -525,7 +525,7 @@ class testreport extends control
|
||||
{
|
||||
if($objectType == 'product')
|
||||
{
|
||||
$this->products = $this->product->getPairs('nocode', $this->session->PRJ);
|
||||
$this->products = $this->product->getPairs('nocode');
|
||||
$productID = $this->product->saveState($objectID, $this->products);
|
||||
$this->testreport->setMenu($this->products, $productID);
|
||||
return $productID;
|
||||
|
||||
@@ -41,7 +41,7 @@ class testsuite extends control
|
||||
$this->session->set('testsuiteList', $this->app->getURI(true));
|
||||
|
||||
/* Set menu. */
|
||||
$this->view->products = $this->products = $this->loadModel('product')->getPairs('nocode', $this->session->PRJ);
|
||||
$this->view->products = $this->products = $this->loadModel('product')->getPairs('nocode');
|
||||
$productID = $this->product->saveState($productID, $this->products);
|
||||
$this->testsuite->setMenu($this->products, $productID);
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ class testtask extends control
|
||||
{
|
||||
parent::__construct($moduleName, $methodName);
|
||||
$this->loadModel('product');
|
||||
$this->view->products = $this->products = $this->product->getPairs('nocode', $this->session->PRJ);
|
||||
$this->view->products = $this->products = $this->product->getPairs('nocode');
|
||||
if(empty($this->products)) die($this->locate($this->createLink('product', 'showErrorNone', "fromModule=testtask")));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user