Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dev/core#2147 Switch the groups search field on Simple search back fr… #18898

Merged
merged 1 commit into from
Nov 2, 2020

Conversation

seamuslee001
Copy link
Contributor

…om select2 to normal select

Overview

This fixes a the following bug https://lab.civicrm.org/dev/core/-/issues/2147 by switching this field back from Select2 to select.

Before

Select 2 field from #13958 back to a select field

After

Select field used

Technical Details

In select 2 the value is like 1 or 1,2 as a string. With a select is it [1] or [1, 2] as arrays

ping @eileenmcnaughton @monishdeb

@civibot
Copy link

civibot bot commented Nov 2, 2020

(Standard links)

@civibot civibot bot added the 5.31 label Nov 2, 2020
@eileenmcnaughton
Copy link
Contributor

Ah - that makes sense - alternatively we could handle a bit more in BAO_Query_Group & instead of casting to an array we could explode to an array if not is_array

the line is

    foreach ((array) $value as $id) {

@eileenmcnaughton
Copy link
Contributor

Just chatted with @seamuslee001 - given how close we are to release drop this seems a sensible approach although keeping the select 2 would be nicer

@seamuslee001 seamuslee001 merged commit 40db238 into civicrm:5.31 Nov 2, 2020
@seamuslee001 seamuslee001 deleted the dev_core_2147 branch November 2, 2020 05:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants