* [bug#50026] Set session of current product type.

This commit is contained in:
xieqiyu
2024-05-28 11:13:35 +08:00
parent c59b20b94b
commit f497a33c0d
+1 -2
View File
@@ -1081,8 +1081,7 @@ class productZen extends product
$this->session->set('storyList', $uri, 'product');
}
/* For getStoriesAndPager. */
if($isProjectStory && $storyType == 'story' && !empty($product)) $this->session->set('currentProductType', $product->type);
if(!empty($product)) $this->session->set('currentProductType', $product->type);
/* Save browse type into session for buildSearchForm. */
if($browseType != 'bymodule' && $browseType != 'bybranch') $this->session->set('storyBrowseType', $browseType);