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

API Remove deprecation notice from method we're not removing #11540

Merged

Conversation

GuySartorelli
Copy link
Member

We can't remove this method, because it will still be inherited from SingleSelectField.

If the empty string has been set, it is used by getPlaceholder() - so I think just keeping the method with no deprecation is ultimately fine. We prefer people to use setPlaceholder() but if they use setEmptyString() instead it'll be handled appropriately.

Issue

We can't remove this method, because it will still be inherited from
SingleSelectField.
@GuySartorelli GuySartorelli marked this pull request as draft January 9, 2025 00:01
@GuySartorelli GuySartorelli marked this pull request as ready for review January 9, 2025 00:16
Copy link
Member

@emteknetnz emteknetnz left a comment

Choose a reason for hiding this comment

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

There's a probably a good reason to not call setEmptyString in SearchableDropdownField. I think it would make sense to keep the deprecation and upgrade it to throwing an exception in CMS 6 rather the removing the method.

@GuySartorelli
Copy link
Member Author

What is the good reason to not call that method? It's explicitly handled in getPlaceholder(). The only reason this deprecation warning is here is because I asked for it, though I think I was wrong to do so.

@emteknetnz emteknetnz merged commit bcdd1e2 into silverstripe:5 Jan 9, 2025
19 checks passed
@emteknetnz emteknetnz deleted the pulls/5/remove-deprecation branch January 9, 2025 22:42
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