With the use of array arguments, db_query() now requires the second argument to be an array, and there was still one query used by search (in node.module) that was wrong.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Dries’s picture

Status: Reviewed & tested by the community » Needs work
Issue tags: +Needs tests

I committed this to CVS HEAD. Thanks Doug.

However, it illustrated that we don't have good enough test coverage yet for search module. So I'm marking this 'code needs works', and I've added a tag.

douggreen’s picture

Status: Needs work » Needs review
Issue tags: -Needs tests +Simpletest
FileSize
1.5 KB

Here's a simple first cut at a test. This test would of caught this problem, ... but not too much more. It makes sure that the config settings for renders, and that the re-index button works.

douggreen’s picture

Status: Needs review » Needs work

Needs additional work to test for #569084: Search reset module_invoke_all() issue... I'm working on it.

douggreen’s picture

Status: Needs work » Needs review
FileSize
2.5 KB

Note, that this also tests for #569536: Search links cause many nodes to be indexed twice and #569084: Search reset module_invoke_all(). Since the first patch isn't committed yet, I've included it here, otherwise, the automated testing system would reject this patch.

Status: Needs review » Needs work

The last submitted patch failed testing.

sun.core’s picture

Priority: Critical » Normal
Status: Needs work » Postponed (maintainer needs more info)

What's left here?

Berdir’s picture

Status: Postponed (maintainer needs more info) » Fixed

I've incorporated the tests into #569536: Search links cause many nodes to be indexed twice so I think this can be set to fixed.

Status: Fixed » Closed (fixed)
Issue tags: -Simpletest

Automatically closed -- issue fixed for 2 weeks with no activity.