* Fix bug#44284.

This commit is contained in:
xieqiyu
2024-01-18 10:18:52 +08:00
parent a231eb227b
commit e09dedb0e0
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1332,7 +1332,7 @@ class story extends control
/* Build search form. */
$actionURL = $this->createLink('story', 'linkStory', "storyID=$storyID&type=$type&linkedStoryID=$linkedStoryID&browseType=bySearch&queryID=myQueryID&storyType=$storyType");
$this->product->buildSearchForm($story->product, $products, $queryID, $actionURL, $story->type == 'story' ? 'requirement' : 'story');
$this->product->buildSearchForm($story->product, $products, $queryID, $actionURL, $story->type == 'story' ? 'requirement' : 'story', (string)$story->branch);
/* Get stories to link. */
$stories2Link = $this->story->getStories2Link($storyID, $type, $browseType, $queryID, $story->type);
+1 -1
View File
@@ -2326,7 +2326,7 @@ class storyModel extends model
}
elseif($branch !== 'all' and $branch !== '' and strpos($storyQuery, '`branch` =') === false and $queryProductID != 'all')
{
if($branch and strpos($storyQuery, '`branch` =') === false) $storyQuery .= " AND `branch` " . helper::dbIN($branch);
if($branch and strpos($storyQuery, '`branch` =') === false) $storyQuery .= " AND `branch` " . helper::dbIN((string)$branch);
}
$storyQuery = preg_replace("/`plan` +LIKE +'%([0-9]+)%'/i", "CONCAT(',', `plan`, ',') LIKE '%,$1,%'", $storyQuery);