* Fix bug.
This commit is contained in:
@@ -137,7 +137,7 @@ class execution extends control
|
||||
$this->loadModel('datatable');
|
||||
$this->loadModel('setting');
|
||||
|
||||
if(common::hasPriv('execution', 'create')) $this->lang->TRActions = html::a($this->createLink('execution', 'create', ''), "<i class='icon icon-sm icon-plus'></i> " . $this->lang->execution->create, '', "class='btn btn-primary'");
|
||||
if(common::hasPriv('execution', 'create')) $this->lang->TRActions = html::a($this->createLink('execution', 'create'), "<i class='icon icon-sm icon-plus'></i> " . $this->lang->execution->create, '', "class='btn btn-primary'");
|
||||
|
||||
/* Set browse type. */
|
||||
$browseType = strtolower($status);
|
||||
@@ -1201,7 +1201,7 @@ class execution extends control
|
||||
}
|
||||
else
|
||||
{
|
||||
die(js::confirm($this->lang->execution->importPlanStory, inlink('create', "productID=&executionID=$executionID©ExecutionID=&planID=$planID&confirm=yes"), inlink('create', "productID=&executionID=$executionID"), 'parent', 'parent'));
|
||||
die(js::confirm($this->lang->execution->importPlanStory, inlink('create', "projectID=$projectID&executionID=$executionID©ExecutionID=&planID=$planID&confirm=yes"), inlink('create', "projectID=$projectID&executionID=$executionID"), 'parent', 'parent'));
|
||||
}
|
||||
}
|
||||
$this->view->title = $this->lang->execution->tips;
|
||||
@@ -1270,11 +1270,11 @@ class execution extends control
|
||||
|
||||
if(!empty($planID))
|
||||
{
|
||||
$this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => inlink('create', "productID=&executionID=$executionID©ExecutionID=&planID=$planID&confirm=no")));
|
||||
$this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => inlink('create', "projectID=$projectID&executionID=$executionID©ExecutionID=&planID=$planID&confirm=no")));
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => inlink('create', "productID=&executionID=$executionID")));
|
||||
$this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'locate' => inlink('create', "projectID=$projectID&executionID=$executionID")));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
function setCopyProject(executionID)
|
||||
{
|
||||
location.href = createLink('execution', 'create', 'productID=&executionID=0©ExecutionID=' + executionID);
|
||||
location.href = createLink('execution', 'create', 'projectID=&executionID=0©ExecutionID=' + executionID);
|
||||
}
|
||||
|
||||
$(function()
|
||||
@@ -66,5 +66,5 @@ function showLifeTimeTips()
|
||||
*/
|
||||
function refreshPage(projectID)
|
||||
{
|
||||
location.href = createLink('execution', 'create', 'productID=&executionID=©ExecutionID=&planID=&confirm=no&projectID=' + projectID);
|
||||
location.href = createLink('execution', 'create', 'projectID=' + projectID);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user