Problem/Motivation

If the parameters group and group.ngroups are set, the result page doesn't return any results and produces PHP Notices.

Notice: Undefined property: stdClass::$response in apachesolr_search_process_response() (line 1285 of /var/www/kroton/code/modules/contrib/apachesolr/apachesolr_search.module).
Notice: Trying to get property of non-object in apachesolr_search_process_response() (line 1285 of /var/www/kroton/code/modules/contrib/apachesolr/apachesolr_search.module).

Proposed resolution

Treat these parameters properly to make them return the results based on selected group field(s).

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

chgasparoto created an issue. See original summary.

chgasparoto’s picture

Status: Active » Needs review
FileSize
2.9 KB

I made a patch to handle this situation.

Please review!

Thanks.

Status: Needs review » Needs work

The last submitted patch, 2: parameters_group_and-2885444-2.patch, failed testing. View results

chgasparoto’s picture

Title: Parameters group and group.ngroups doesn't return results » Parameters group and group.ngroups don't return results
chgasparoto’s picture

The patch was generated with the full path.

The new file fixes this path of the diff.

Please review.

Thanks!

Status: Needs review » Needs work

The last submitted patch, 5: parameters_group_and-2885444-5.patch, failed testing. View results

chgasparoto’s picture

Status: Needs work » Needs review
FileSize
2.81 KB
788 bytes

Fixing the code to pass the test on PHP 5.3, because array dereferencing was added on PHP 5.4.

Interdiff is attached.

Thanks.

chgasparoto’s picture

Issue summary: View changes