nyeholt / silverstripe-solr

SilverStripe and Solr integration ssaumodule
BSD 3-Clause "New" or "Revised" License
19 stars 18 forks source link

Update SolrSearch.php to fix Showing Facets on template #26

Closed blpraveen closed 9 years ago

blpraveen commented 10 years ago

This is an fix to the issue https://github.com/nyeholt/silverstripe-solr/issues/25. i was getting this error when showing facets on the template. After making the above changes it worked to me.

nyeholt commented 10 years ago

This can probably be fixed by simply changing $me = $this; to $me = $this->owner and leaving the closure in place. I don't have the code handy to test this myself at the moment, but does that seem to do the trick?

nyeholt commented 9 years ago

Have made the $me = $this->owner re-assignment and that solves this same issue.