* [bug#50469, 0.2h] The branch for batch editing normal product stories still remains 0.

This commit is contained in:
hufangzhou
2024-05-31 13:54:10 +08:00
parent 0e4beb8e4e
commit 54d1c532dd
+1 -1
View File
@@ -1505,7 +1505,7 @@ class storyZen extends story
$story->lastEditedBy = $this->app->user->account;
$story->lastEditedDate = $now;
$story->stage = empty($story->stage) ? $oldStory->stage : $story->stage;
$story->branch = !isset($story->branch) ? $oldStory->branch : str_replace('branch', '', $story->branch);
$story->branch = $story->branch === '' ? $oldStory->branch : str_replace('branch', '', $story->branch);
if($oldStory->assignedTo != $story->assignedTo) $story->assignedDate = $now;
if($oldStory->parent < 0) $story->plan = '';