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

SegmentEditor might fail to display suggestions when using PDO\MYSQL #20556

Merged
merged 1 commit into from Apr 11, 2023

Conversation

diosmosis
Copy link
Member

Description:

The jquery autocomplete widget doesn't seem to handle non-string values, like numbers. This issue is visible currently in segments like 'Site time - hour'. Fixed by converting the values to strings after fetching them.

Review

@diosmosis diosmosis added the Needs Review PRs that need a code review label Apr 4, 2023
@diosmosis diosmosis added this to the 5.0.0 milestone Apr 4, 2023
@github-actions
Copy link
Contributor

This issue is in "needs review" but there has been no activity for 7 days. ping @matomo-org/core-reviewers

@github-actions github-actions bot added the Stale The label used by the Close Stale Issues action label Apr 11, 2023
…ery autocomplete widget does not seem to recognize numeric values
@sgiehl sgiehl force-pushed the segment-editor-autocomplete-non-string-values branch from 06947e4 to c3f0ebd Compare April 11, 2023 12:19
Copy link
Member

@sgiehl sgiehl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note: This only happens when using PDO\MYSQL database driver.
I've been able to reproduce it and this PR fixed the issue 🎉

@sgiehl sgiehl merged commit 91be2a3 into 5.x-dev Apr 11, 2023
17 of 19 checks passed
@sgiehl sgiehl deleted the segment-editor-autocomplete-non-string-values branch April 11, 2023 12:24
@sgiehl sgiehl changed the title in SegmentGenerator convert autocomplete values to strings SegmentEditor might fail to display suggestions when using PDO\MYSQL May 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs Review PRs that need a code review Stale The label used by the Close Stale Issues action
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants