Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
While the documentation for SearchApiQueryInterface::execute() explicitly states that the returned results always have to have both the 'result count'
and 'results'
keys set, there is actually a code path in our search()
method which results in an empty results array. Even though unlikely to cause any errors (I'd say), we should still fix it.
Comment | File | Size | Author |
---|---|---|---|
#2 | 2632426-2--skipped_result_count_results_array--tests_only.patch | 857 bytes | drunken monkey |
#2 | 2632426-2--skipped_result_count_results_array.patch | 1.99 KB | drunken monkey |
Comments
Comment #2
drunken monkeyThe attached patch should fix this, and even contains a test.
Comment #4
drunken monkeyCommitted.