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

issue: CDATA NULL Values #6583

Open
wants to merge 1 commit into
base: 1.17.x
Choose a base branch
from

Conversation

JediKev
Copy link
Contributor

@JediKev JediKev commented Jul 19, 2023

This addresses an issue reported on the Forum where Has A Value Queue criteria for a Short Answer field (and potentially other field types) is showing results without values. A recent patch causes empty values in the CDATA table to be '' (empty string) instead of actual NULL. In SQL, IS NOT NULL checks against NULL explicitly. This means an empty string will appear with IS NOT NULL criteria as it's not NULL. This updates the code to only quote values that are not empty. Empty values should remain as NULL.

This addresses an issue reported on the Forum where `Has A Value` Queue
criteria for a Short Answer field (and potentially other field types) is
showing results without values. A recent patch causes empty values in
the CDATA table to be `''` (empty string) instead of actual `NULL`.  In
SQL, `IS NOT NULL` checks against `NULL` explicitly. This means an empty
string will appear with `IS NOT NULL` criteria as it's not NULL.  This
updates the code to only quote values that are not empty. Empty values
should remain as `NULL`.
@JediKev
Copy link
Contributor Author

JediKev commented Oct 5, 2023

Need to update this as causing other errors. Waiting on confirmation of updated patch from Forum User.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant