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.
Hello,
I upgrade my DS from 2.7 to 2.10 and now my search is broken. After playing around with things for a bit I traced it back to
http://cgit.drupalcode.org/ds/commit/?id=17b8fb23a8bccbf3aced8937245c746...
The change from
foreach ($find as $item) {
to
foreach ((array) $find as $item) {
Cause $item to be an invalid array every loop (it's a DBConnection object rather then a result object) and broke the search.
I am using PHP 5.6 if that helps
Is there any reason to type cast the results from $query->execute() to an array?
Comments
Comment #1
aspilicious CreditAttribution: aspilicious commentedalready fixed in de will create a new release tomorow
Comment #2
aspilicious CreditAttribution: aspilicious commentedNew release available should fix your issue.