Problem/Motivation

views_plugin_query_default::options_submit() throwing type error when value returned by drupal_array_get_nested_value() is passed to explode() and isn't a string

Steps to reproduce

Edit a View > Advanced > Other > Query settings > For this block > Check Distinct and Apply (this display)

Proposed resolution

Deconstruct value returned by drupal_array_get_nested_value() and pass that value to explode(). See attached patch

CommentFileSizeAuthor
views-query-plugin.patch1008 bytesjonnytoomey

Comments

jonnyToomey created an issue. See original summary.

damienmckenna’s picture

Title: Type Error » Type Error in views_plugin_query_default::options_submit()
Version: 7.x-3.29 » 7.x-3.x-dev
Status: Needs review » Needs work

Thank you for reporting the bug, and for providing a patch.

This needs work as the short array syntax won't work with PHP 5.