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.
If you happen to have Multiversion enabled on a site, and you make a view that is powered by Search API, you will frequently encounter this annoying warning:
Notice: Undefined offset: 0 in multiversion_views_post_execute() (line 248 of path/to/multiversion/multiversion.module).
This is due to an assumption made in multiversion_views_post_execute():
if (is_array($view->result) && $content_type = $content_type_info[0])
Since Search API views aren't really pinned to an entity type, $content_type_info is empty. Thus the warning.
Comment | File | Size | Author |
---|---|---|---|
#2 | 2844998-2.patch | 747 bytes | phenaproxima |
|
Comments
Comment #2
phenaproximaComment #3
GrimreaperComment #5
jeqqThanks @phenaproxima!