From 54d1c532dd01dbe220502edd3d74e28ed90f1b7a Mon Sep 17 00:00:00 2001 From: hufangzhou Date: Fri, 31 May 2024 13:54:10 +0800 Subject: [PATCH] * [bug#50469, 0.2h] The branch for batch editing normal product stories still remains 0. --- module/story/zen.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/story/zen.php b/module/story/zen.php index e9a2df245f..c6502a4174 100644 --- a/module/story/zen.php +++ b/module/story/zen.php @@ -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 = '';