* fix add comment for story/task/bug/case.
This commit is contained in:
@@ -430,7 +430,7 @@ class bugModel extends model
|
||||
public function update($bugID)
|
||||
{
|
||||
$oldBug = $this->getById($bugID);
|
||||
if($oldBug->lastEditedDate != $this->post->lastEditedDate)
|
||||
if(isset($_POST['lastEditedDate']) and $oldBug->lastEditedDate != $this->post->lastEditedDate)
|
||||
{
|
||||
dao::$errors[] = $this->lang->error->editedByOther;
|
||||
return false;
|
||||
|
||||
@@ -342,7 +342,7 @@ class storyModel extends model
|
||||
{
|
||||
$specChanged = false;
|
||||
$oldStory = $this->getById($storyID);
|
||||
if($oldStory->lastEditedDate != $this->post->lastEditedDate)
|
||||
if(isset($_POST['lastEditedDate']) and $oldStory->lastEditedDate != $this->post->lastEditedDate)
|
||||
{
|
||||
dao::$errors[] = $this->lang->error->editedByOther;
|
||||
return false;
|
||||
@@ -405,7 +405,7 @@ class storyModel extends model
|
||||
{
|
||||
$now = helper::now();
|
||||
$oldStory = $this->getById($storyID);
|
||||
if($oldStory->lastEditedDate != $this->post->lastEditedDate)
|
||||
if(isset($_POST['lastEditedDate']) and $oldStory->lastEditedDate != $this->post->lastEditedDate)
|
||||
{
|
||||
dao::$errors[] = $this->lang->error->editedByOther;
|
||||
return false;
|
||||
|
||||
@@ -187,7 +187,7 @@ class taskModel extends model
|
||||
public function update($taskID)
|
||||
{
|
||||
$oldTask = $this->getById($taskID);
|
||||
if($oldTask->lastEditedDate != $this->post->lastEditedDate)
|
||||
if(isset($_POST['lastEditedDate']) and $oldTask->lastEditedDate != $this->post->lastEditedDate)
|
||||
{
|
||||
dao::$errors[] = $this->lang->error->editedByOther;
|
||||
return false;
|
||||
|
||||
@@ -358,7 +358,7 @@ class testcaseModel extends model
|
||||
public function update($caseID)
|
||||
{
|
||||
$oldCase = $this->getById($caseID);
|
||||
if($oldCase->lastEditedDate != $this->post->lastEditedDate)
|
||||
if(isset($_POST['lastEditedDate']) and $oldCase->lastEditedDate != $this->post->lastEditedDate)
|
||||
{
|
||||
dao::$errors[] = $this->lang->error->editedByOther;
|
||||
return false;
|
||||
|
||||
@@ -110,6 +110,7 @@ class upgrade extends control
|
||||
$this->view->errors = $this->upgrade->getError();
|
||||
}
|
||||
$this->display();
|
||||
if($this->view->result == 'fail') die();
|
||||
|
||||
@unlink($this->app->getAppRoot() . 'www/install.php');
|
||||
@unlink($this->app->getAppRoot() . 'www/upgrade.php');
|
||||
|
||||
@@ -203,6 +203,7 @@ class upgradeModel extends model
|
||||
case '7_1': $confirmContent .= file_get_contents($this->getUpgradeFile('7.1'));
|
||||
case '7_2':
|
||||
case '7_2_4': $confirmContent .= file_get_contents($this->getUpgradeFile('7.2.4'));
|
||||
case '7_2_5':
|
||||
case '7_3': $confirmContent .= file_get_contents($this->getUpgradeFile('7.3'));
|
||||
case '7_4_beta': $confirmContent .= file_get_contents($this->getUpgradeFile('7.4.beta'));
|
||||
case '8_0':
|
||||
|
||||
Reference in New Issue
Block a user