From fbc5f1404ec483b221a69d07ef6284da26349f74 Mon Sep 17 00:00:00 2001 From: holan20180123 <56391770@qq.com> Date: Tue, 1 Jun 2021 15:33:31 +0800 Subject: [PATCH] * Fix bug 12781. --- module/my/control.php | 6 +----- module/story/control.php | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/module/my/control.php b/module/my/control.php index 93b7db6e7b..3b8db82b08 100644 --- a/module/my/control.php +++ b/module/my/control.php @@ -181,11 +181,7 @@ class my extends control public function story($type = 'assignedTo', $orderBy = 'id_desc', $recTotal = 0, $recPerPage = 20, $pageID = 1) { /* Save session. */ - if($this->app->viewType != 'json') - { - $this->session->set('storyList', $this->app->getURI(true), 'product'); - $this->session->set('storyList', $this->app->getURI(true), 'my'); - } + if($this->app->viewType != 'json') $this->session->set('storyList', $this->app->getURI(true), 'product'); /* Load pager. */ $this->app->loadClass('pager', $static = true); diff --git a/module/story/control.php b/module/story/control.php index dbb8017677..447c18f1ed 100644 --- a/module/story/control.php +++ b/module/story/control.php @@ -1097,7 +1097,7 @@ class story extends control if(dao::isError()) die(js::error(dao::getError())); if(!dao::isError()) $this->loadModel('score')->create('ajax', 'batchOther'); - die(js::locate($this->session->storyList, 'parent')); + die(js::reload('parent')); } /**