Type Error in views_plugin_query_default::options_submit()

Created on 24 January 2024, 10 months ago
Updated 2 May 2024, 7 months ago

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

πŸ› Bug report
Status

Needs work

Version

3.0

Component

Miscellaneous

Created by

πŸ‡¬πŸ‡§United Kingdom jonnyToomey

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @jonnyToomey
  • Status changed to Needs work 7 months ago
  • πŸ‡ΊπŸ‡ΈUnited States DamienMcKenna NH, USA

    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.

Production build 0.71.5 2024