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')); } /**