Closed (fixed)
Project:
Apache Solr Views
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
12 Nov 2009 at 19:45 UTC
Updated:
8 Feb 2010 at 01:10 UTC
Jump to comment: Most recent file
This is a simple patch that came out of the need to use a solr view in a Panel. After some digging, I realized the base_path isn't being set right because it only looks for paths set by "Page display" views.
This patch changes the following line:
$this->_base_path = isset($view->display[$view->current_display]->display_options['path']) ? $view->display[$view->current_display]->display_options['path'] : '';
to this:
$this->_base_path = isset($view->display[$view->current_display]->display_options['path']) ? $view->display[$view->current_display]->display_options['path'] : $_GET['q'];
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | apachesolr_views_base_url.patch | 656 bytes | smoothify |
| #1 | apachesolr_views-n631238.patch | 1021 bytes | damienmckenna |
Comments
Comment #1
damienmckennaHere's an actual patch file.
Comment #2
Scott Reynolds commentedthis is a problem the View is a block. Causes strange problems no?
Comment #3
Scott Reynolds commentedlets check the display and see if it uses hook menu
'uses hook menu' is the key. @see views_menu_alter().
Comment #4
smoothify commentedI ran into this problem too trying to use this module in a panel.
I fixed it by changing the same line from
to
This works with the panel as long as you set the path override in the pane settings. It also still works with the regular page view.
Is there reason i'm missing why this can't be used?
Comment #5
smoothify commentedhere is a patch for #4
Comment #6
Scott Reynolds commentedhttp://drupal.org/cvs?commit=319094