Skip to content

Conversation

@joshuablum
Copy link
Member

This PR fixes two related bugs caused by improper falsy value handling.

  1. Terms with 0 as title not displaying in listings.
  2. Typing null clears slug field.

Having a taxonomy with terms like 0, 1, 2, 3,... is not uncommon though. But generally those fixes ensure proper handling of edge case string values that can be misinterpreted as falsy or null values.

Closes #13785.

@joshuablum joshuablum requested a review from jasonvarga February 2, 2026 12:37
@joshuablum joshuablum changed the title [6.x] Handle 0 values in term titles and and null string in slugs [5.x] Handle 0 values in term titles and and null string in slugs Feb 2, 2026
@joshuablum joshuablum changed the base branch from 6.x to 5.x February 2, 2026 12:43
@joshuablum joshuablum changed the base branch from 5.x to 6.x February 2, 2026 12:43
@joshuablum joshuablum changed the title [5.x] Handle 0 values in term titles and and null string in slugs [6.x] Handle 0 values in term titles and and null string in slugs Feb 2, 2026
@joshuablum joshuablum force-pushed the fix-null-and-0-cp-handling branch from 0f86439 to 0979b38 Compare February 2, 2026 15:15
@joshuablum joshuablum changed the title [6.x] Handle 0 values in term titles and and null string in slugs [5.x] Handle 0 values in term titles and and null string in slugs Feb 2, 2026
@joshuablum joshuablum changed the base branch from 6.x to 5.x February 2, 2026 15:15
@joshuablum
Copy link
Member Author

Switched into targeting 5.x and then merge into 6.x to keep it to one PR.

@jasonvarga jasonvarga changed the title [5.x] Handle 0 values in term titles and and null string in slugs [5.x] Handle 0 values in text fields and null string in slugs Feb 3, 2026
@jasonvarga jasonvarga merged commit 06786ad into 5.x Feb 3, 2026
28 checks passed
@jasonvarga jasonvarga deleted the fix-null-and-0-cp-handling branch February 3, 2026 20:10
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.

Using null or 0 for title or slug causes issues

3 participants