Permalink
Browse files

Fix #120 - broken filter search

- store is not serialized in session, in model instances class
- it needs to be reset, when an instance is reused from session
  • Loading branch information...
1 parent 5073d47 commit 763f77bf273a97862eade6cc5d6dd98e2b66cb76 @pfrischmuth pfrischmuth committed Sep 14, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 application/classes/OntoWiki/Controller/Plugin/ListSetupHelper.php
@@ -104,14 +104,16 @@ public function routeShutdown(Zend_Controller_Request_Abstract $request)
$list = new OntoWiki_Model_Instances($store, $ontoWiki->selectedModel, array());
} else {
// use the object from the session
- if(isset($request->list) && $request->list != $listHelper->getLastListName()) {
+ if (isset($request->list) && $request->list != $listHelper->getLastListName()) {
if($listHelper->listExists($request->list)){
$list = $listHelper->getList($request->list);
$ontoWiki->appendMessage(new OntoWiki_Message("reuse list"));
} else {
throw new OntoWiki_Exception('your trying to configure a list, but there is no list name specified');
}
}
+
+ $list->setStore($store); // store is not serialized in session! reset it
}
//local function :)

0 comments on commit 763f77b

Please sign in to comment.