PR-5.3-dev Pending

User tests: Successful: Unsuccessful:

avatar pe7er
pe7er
20 May 2025

When you save an article with spaces, before or after the title, the spaces are saved in the database.
Ordering the articles by Title give confusing results.

Summary of Changes

This PR removes the spaces before and after the Article Title when saving the Article.

Testing Instructions

  • create some Articles with Titles
  • add spaces before one of the Titles
  • click on the Order Title
  • notice that the ordering seems wrong (the Titles with spaces in front of them are listed first)

Actual result BEFORE applying this Pull Request

If you add spaces before or after the Article Title, those are saved in the database

article-title-before-pr

The "Some titels start with a space or more spaces" is listed first because it starts with spaces.
However the back-end list does not show those spaces:

before-pr

Expected result AFTER applying this Pull Request

After save the spaces are removed before and after the Article Title

article-title-after-pr

Now the order is correct

after-pr

Link to documentations

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

avatar pe7er pe7er - open - 20 May 2025
avatar pe7er pe7er - change - 20 May 2025
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 20 May 2025
Category Administration com_content
avatar pe7er pe7er - change - 20 May 2025
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2025-05-20 20:01:59
Closed_By pe7er
Labels Added: PR-5.3-dev
avatar pe7er pe7er - close - 20 May 2025
avatar pe7er
pe7er - comment - 20 May 2025

Closing this PR. I'm gonna fix this issue in a better way...

avatar pe7er
pe7er - comment - 20 May 2025

New PR: #45501

Add a Comment

Login with GitHub to post a comment