* Fix bug#3531.

This commit is contained in:
qiyu-xie
2020-09-28 11:03:42 +08:00
parent 31258a1ef2
commit f18eb01eab
+2 -2
View File
@@ -567,8 +567,8 @@ class storyModel extends model
->remove('files,labels,comment,contactListMenu,stages')
->get();
if(isset($story->plan) and is_array($story->plan)) $story->plan = trim(join(',', $story->plan), ',');
if(empty($_POST['product'])) $story->branch = $oldStory->branch;
if($_POST['branch'] == 0) $story->branch = 0;
if(empty($_POST['product']) or !isset($_POST['branch'])) $story->branch = $oldStory->branch;
if(isset($_POST['branch']) and $_POST['branch'] == 0) $story->branch = 0;
if(!empty($_POST['stages']))
{
$oldStages = $this->dao->select('*')->from(TABLE_STORYSTAGE)->where('story')->eq($storyID)->fetchAll('branch');