* remove set stage when edit story.
This commit is contained in:
+1
-11
@@ -413,11 +413,7 @@ class storyModel extends model
|
||||
->checkIF(isset($story->closedReason) and $story->closedReason == 'subdivided', 'childStories', 'notempty')
|
||||
->where('id')->eq((int)$storyID)->exec();
|
||||
|
||||
if(!dao::isError())
|
||||
{
|
||||
if($story->stage != 'verified') $this->setStage($storyID);
|
||||
return common::createChanges($oldStory, $story);
|
||||
}
|
||||
if(!dao::isError()) return common::createChanges($oldStory, $story);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -469,14 +465,8 @@ class storyModel extends model
|
||||
if($story->closedReason != false and $oldStory->closedDate == '') $story->closedDate = $now;
|
||||
if($story->closedBy != false or $story->closedReason != false) $story->status = 'closed';
|
||||
if($story->closedReason != false and $story->closedBy == false) $story->closedBy = $this->app->user->account;
|
||||
if($story->stage != $oldStory->story and $story->stage != 'verified')
|
||||
{
|
||||
$this->setStage($storyID);
|
||||
unset($story->stage);
|
||||
}
|
||||
|
||||
$stories[$storyID] = $story;
|
||||
unset($story);
|
||||
}
|
||||
|
||||
foreach($stories as $storyID => $story)
|
||||
|
||||
Reference in New Issue
Block a user