Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 763f77bf273a97862eade6cc5d6dd98e2b66cb76 1 parent 5073d47
@pfrischmuth pfrischmuth authored
View
4 application/classes/OntoWiki/Controller/Plugin/ListSetupHelper.php
@@ -104,7 +104,7 @@ 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"));
@@ -112,6 +112,8 @@ public function routeShutdown(Zend_Controller_Request_Abstract $request)
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 :)
Please sign in to comment.
Something went wrong with that request. Please try again.