User tests: Successful: Unsuccessful:
Same issue as #45501 but with Category Titles.
When you save a category with spaces, before or after the title, the spaces are saved in the database.
Ordering the Categories on Title, give confusing results with Titles that start with spaces.
This PR removes the spaces before and after the Category Title when saving the Category.
In the back-end under Content > Categories:
(Accidental) spaces before (and after) the Category Title are saved:
The "Some categories have spaces before and after the title" starts with spaces,
which are not visible in the list of categories,
which makes it confusing that this item is listed on top.
Instead you would expect it to be listed between "All categories have titles" and "Uncategorized"
Saving works well, the spaces before and after the title are trimmed (removed from the title) :
Ordering looks good:
Please select:
Documentation link for docs.joomla.org:
No documentation changes for docs.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed
Status | New | ⇒ | Pending |
Category | ⇒ | Administration com_categories |
Title |
|
I have tested this item ✅ successfully on d5d1663
Tested Successfully, works as expected!
Status | Pending | ⇒ | Ready to Commit |
Labels |
Added:
PR-5.3-dev
|
RTC
Status | Ready to Commit | ⇒ | Pending |
Same as #45501 (comment)
I have tested this item ✅ successfully on d5d1663
Tested Successfully, works as expected!
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2025-06-04 18:21:23 |
Closed_By | ⇒ | HLeithner | |
Labels |
Added:
RMDQ
|
I have tested this item ✅ successfully on d5d1663
I have tested this successfully - not sure if it was easy to fix but easy test ;) - Thanks pe7er.
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/45502.