Index: issue.inc =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/project_issue/issue.inc,v retrieving revision 1.172.2.15 diff --unified=3 -r1.172.2.15 issue.inc --- issue.inc 4 Aug 2006 23:08:32 -0000 1.172.2.15 +++ issue.inc 5 Aug 2006 12:44:03 -0000 @@ -1350,6 +1352,19 @@ } function project_issue_query_parse($query = NULL) { + /** + * nasty hack to make the sitewide search work. doing it this way to try to avoid + * side effects. there's probably a better way that involves not unsetting $_POST['edit'], + * but i don't want to know about the side effects that will cause. + * + * if there's a search, then $_POST['edit']['form_id'] is set, and its doesn't start + * with 'project_issue_query', so we should bail rather than unset $_POST['edit']. + */ + if (isset($_POST['edit']['form_id']) && + substr($_POST['edit']['form_id'], 0, strlen('project_issue_query')) != 'project_issue_query') { + return; + } + $fields = array('projects', 'text', 'attachment', 'summary', 'comment', 'categories', 'components', 'versions', 'states', 'priorities', 'users', 'assigned', 'submitted', 'participated'); if ($_SERVER['REQUEST_METHOD'] == 'POST' && is_array($_POST['edit'])) { foreach ($_POST['edit'] as $key => $value) {