* [task#130430,done,0.2h] fix bug.

This commit is contained in:
sunguangming
2024-10-14 16:00:12 +08:00
committed by 王怡栋
parent 87e0801580
commit ff778d5c67
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -38,8 +38,8 @@ window.loadProduct = function(e)
const productID = $this.val();
const $modal = $this.closest('.modal');
const inModal = $modal.length > 0;
if(inModal) loadModal($.createLink('story', 'create', 'productID=' + productID + '&' + createParams), $modal.attr('id'));
if(!inModal) loadPage($.createLink('story', 'create', 'productID=' + productID + '&' + createParams));
if(inModal) loadModal($.createLink(storyType, 'create', 'productID=' + productID + '&' + createParams), $modal.attr('id'));
if(!inModal) loadPage($.createLink(storyType, 'create', 'productID=' + productID + '&' + createParams));
};
window.setLane = function(e)
+1
View File
@@ -467,6 +467,7 @@ class storyZen extends story
if($product->type != 'normal') $branches = $this->loadModel('branch')->getPairs($productID, 'active');
}
$this->product->checkAccess($productID, $products);
return array($products, $branches);
}