MarkE Posted January 21, 2023 Share Posted January 21, 2023 The description for 'add new tag' in (say) the field setup in the back-end UI reads 'You may use letters, digits or underscore.' It does not mention capital letters. However, if capital letters are included, they seem to get converted to lower case. On the other hand, via the API you can set $field->tags to have values which include capitals and these are then shown correctly in the UI and is maintained correctly in the API. But if you amend other data for the field (say) then the tag is amended to the lower case version. Is this a bug? What should the proper behaviour be? It has certainly caught me out - assigning tags with capitals in the API which work fine for a while until some unrelated part of the field is changed and then the tag no longer matches the original. Link to comment Share on other sites More sharing options...
Arcturus Posted March 17, 2023 Share Posted March 17, 2023 It would be nice to know if this was done intentionally, as the UI directly supported capital letters until only recently (3.0.200-210). These tags are used mostly as subheadings in the Admin UI, so I don't know why you wouldn't want them to support capitals. Link to comment Share on other sites More sharing options...
bernhard Posted March 18, 2023 Share Posted March 18, 2023 I've also had issues with that on RockMigrations when testing some yaml features so I'd be happy for a good solution ? Link to comment Share on other sites More sharing options...
matjazp Posted March 18, 2023 Share Posted March 18, 2023 Most likely this commit in ProcessField.module (now) at line 2562 - $value = $sanitizer->words($value); + $value = $sanitizer->getTextTools()->strtolower($sanitizer->words($value)); 3 Link to comment Share on other sites More sharing options...
MarkE Posted March 18, 2023 Author Share Posted March 18, 2023 Not sure why @ryanintroduced that. Should we request reversion? Link to comment Share on other sites More sharing options...
matjazp Posted March 19, 2023 Share Posted March 19, 2023 Yes, I think we should. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now