Active
Project:
Domain Access Advanced
Version:
6.x-1.0-rc1
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
10 Jan 2010 at 12:38 UTC
Updated:
13 Dec 2011 at 19:54 UTC
When module domain advance is enabled, some SQL errors can happen in views pages with exposed filters.
If vaildation of exposed filter fails, view pass empty query through hook_db_rewrite_sql mechanism. Domain adv ignores fact, that this query
is empty and adds additional where and join fragments to empty query. As result, hook_db_rewrite_sql generates bad SQL code. Execution of this code causes SQL errors. As simple solution, I tried to add addtional check (query is empty or not) to domain_adv_db_rewrite_sql() function. After modification this function doesn't modify empty queries and it solves problems with exposed filters in views pages.
| Comment | File | Size | Author |
|---|---|---|---|
| domain_adv.module.patch | 650 bytes | jsobiecki |
Comments
Comment #1
theoracleprodigy commentedWithout this patch the front page views do not work.
With this patch there are still search results coming back from all the other domains but the front page views work.
This module is desperately needed too bad its in development.
Comment #2
jsobiecki commented@sandy.girl,
Thank you for confirmation.
To be honest, we have dropped domain advanced module at our project and now we are using multiple node access patch (http://drupal.org/node/196922).
Comment #3
pedrospHas this patch been committed to the current release or dev ?
Thanks !
Comment #4
Encarte commented