Skip to content

FIX Allow non-multi TagField to be cleared#338

Merged
GuySartorelli merged 1 commit intosilverstripe:3.4from
creative-commoners:pulls/3.4/clearble
Nov 26, 2025
Merged

FIX Allow non-multi TagField to be cleared#338
GuySartorelli merged 1 commit intosilverstripe:3.4from
creative-commoners:pulls/3.4/clearble

Conversation

@emteknetnz
Copy link
Copy Markdown
Member

@emteknetnz emteknetnz commented Nov 26, 2025

Issue #335

I've done this as a bugfix, though it could be argued that it should be done as a minor release since there's a behavioural change

I've added props with a default value for TagField in case we want to add PHP API later on to to control this i.e. ->setIsClearable(false)

@emteknetnz emteknetnz marked this pull request as ready for review November 26, 2025 07:06
Copy link
Copy Markdown
Member

@GuySartorelli GuySartorelli left a comment

Choose a reason for hiding this comment

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

LGTM, works as expected for TagField and StringTagField.

@GuySartorelli GuySartorelli merged commit d19b300 into silverstripe:3.4 Nov 26, 2025
12 checks passed
@GuySartorelli GuySartorelli deleted the pulls/3.4/clearble branch November 26, 2025 21:22
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.

2 participants