Skip to content
This repository
Browse code

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
Philipp Frischmuth authored September 14, 2012
4  application/classes/OntoWiki/Controller/Plugin/ListSetupHelper.php
@@ -104,7 +104,7 @@ public function routeShutdown(Zend_Controller_Request_Abstract $request)
104 104
                 $list = new OntoWiki_Model_Instances($store, $ontoWiki->selectedModel, array());
105 105
             } else {
106 106
                 // use the object from the session
107  
-                if(isset($request->list) && $request->list != $listHelper->getLastListName()) {
  107
+                if (isset($request->list) && $request->list != $listHelper->getLastListName()) {
108 108
                     if($listHelper->listExists($request->list)){
109 109
                         $list = $listHelper->getList($request->list);
110 110
                         $ontoWiki->appendMessage(new OntoWiki_Message("reuse list"));
@@ -112,6 +112,8 @@ public function routeShutdown(Zend_Controller_Request_Abstract $request)
112 112
                         throw new OntoWiki_Exception('your trying to configure a list, but there is no list name specified');
113 113
                     }
114 114
                 }
  115
+
  116
+                $list->setStore($store); // store is not serialized in session! reset it
115 117
             }
116 118
 
117 119
             //local function :)

Git Notes

jenkins

{
  "built_on": "master",
  "duration": 56.033,
  "full_display_name": "OntoWiki #41",
  "id": "2012-09-14_13-47-25",
  "number": 41,
  "result": "SUCCESS",
  "status_message": "?",
  "time": "2012-09-14 13:47:25 +0200",
  "url": "job/OntoWiki/41/"
}

0 notes on commit 763f77b

Please sign in to comment.
Something went wrong with that request. Please try again.