* Optimize code for task #61176.

This commit is contained in:
liumengyi
2022-07-18 13:25:13 +08:00
parent 3435930e0b
commit 39b588cbce
+1 -1
View File
@@ -1484,7 +1484,7 @@ class story extends control
$this->story->recall($storyID);
$this->loadModel('action')->create('story', $storyID, 'Recalled');
if($from == 'view') return print(js::reload('parent'));
if($from == 'view') return print(js::locate($this->createLink('story', 'view', "storyID={$storyID}&from=view")));
$locateLink = $this->session->storyList ? $this->session->storyList : $this->createLink('product', 'browse', "productID={$story->product}");
echo js::locate($locateLink, 'parent');