bug PR-5.4-dev Pending

User tests: Successful: Unsuccessful:

avatar travisrisner
travisrisner
12 Sep 2025

Pull Request for Issue #43969 .

Summary of Changes

Ensures that a unique alias and title is generated whenever com_finder search filters are duplicated when using the Save as Copy feature. The alias is also added to the list view.

Testing Instructions

  1. Administrator → Components → Smart SearchFilters
  2. Create a filter named My Filter and click Save.
  3. Click Save as Copy and repeat multiple times.

Actual result BEFORE applying this Pull Request

  • Error: Save failed with the following error: Another Filter has the same alias.

Expected result AFTER applying this Pull Request

  • Copies save successfully with incremented aliases (e.g., my-filter-2, my-filter-3, …) and a unique title.
  • Alias is displayed in the list view to help identify conflicting aliases from previous copies.

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 travisrisner travisrisner - open - 12 Sep 2025
avatar travisrisner travisrisner - change - 12 Sep 2025
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 12 Sep 2025
Category Administration com_finder
avatar dautrich dautrich - test_item - 12 Sep 2025 - Tested successfully
avatar dautrich
dautrich - comment - 12 Sep 2025

I have tested this item ✅ successfully on 95a2471


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46081.

avatar travisrisner travisrisner - change - 16 Sep 2025
Labels Added: bug PR-5.3-dev
avatar brianteeman brianteeman - test_item - 16 Sep 2025 - Tested successfully
avatar brianteeman
brianteeman - comment - 16 Sep 2025

I have tested this item ✅ successfully on 8d08537


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46081.

avatar ceford ceford - test_item - 18 Sep 2025 - Tested successfully
avatar ceford
ceford - comment - 18 Sep 2025

I have tested this item ✅ successfully on 8d08537


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46081.

avatar richard67 richard67 - alter_testresult - 18 Sep 2025 - dautrich: Tested successfully
avatar richard67 richard67 - alter_testresult - 18 Sep 2025 - brianteeman: Tested successfully
avatar richard67 richard67 - alter_testresult - 18 Sep 2025 - ceford: Tested successfully
avatar richard67 richard67 - alter_testresult - 18 Sep 2025 - dautrich: Tested successfully
avatar richard67 richard67 - change - 18 Sep 2025
Status Pending Ready to Commit
avatar richard67
richard67 - comment - 18 Sep 2025

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46081.

avatar richard67 richard67 - change - 18 Sep 2025
Status Ready to Commit Pending
avatar richard67
richard67 - comment - 18 Sep 2025

Back to pending due to requested changes (use prepared statements).


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46081.

avatar travisrisner travisrisner - change - 18 Sep 2025
Labels Added: Updates Requested
avatar richard67
richard67 - comment - 18 Sep 2025

@ceford @brianteeman @dautrich Could one of you guys test this PR again with the latest changes? That would be great. One test if it still works is sufficient..

avatar ceford
ceford - comment - 18 Sep 2025

Actually, I think there is a problem! Saving with the patch applied does work. But the list of filters has duplicate titles and there is no way to tell which is which. I seem to remember that other duplicates add the instance number to the title.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46081.

avatar brianteeman
brianteeman - comment - 18 Sep 2025

No it adds the number to the alias

avatar brianteeman
brianteeman - comment - 18 Sep 2025

maybe we need to display the alias in the list view?

avatar dautrich dautrich - test_item - 27 Sep 2025 - Tested successfully
avatar dautrich
dautrich - comment - 27 Sep 2025

I have tested this item ✅ successfully on ed98e28


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46081.

avatar dautrich
dautrich - comment - 27 Sep 2025

@ceford @brianteeman @dautrich Could one of you guys test this PR again with the latest changes? That would be great. One test if it still works is sufficient..

Done

avatar richard67 richard67 - change - 27 Sep 2025
Labels Removed: Updates Requested
avatar richard67 richard67 - change - 27 Sep 2025
Status Pending Ready to Commit
avatar richard67
richard67 - comment - 27 Sep 2025

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46081.

avatar brianteeman
brianteeman - comment - 27 Sep 2025

See the comment from @ceford this needs more work before it can be useful


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46081.

avatar travisrisner travisrisner - change - 10 Oct 2025
Labels Added: RTC
avatar HLeithner
HLeithner - comment - 15 Oct 2025

This pull request has been automatically rebased to 5.4-dev.

avatar richard67 richard67 - change - 15 Oct 2025
Labels Added: RMDQ PR-5.4-dev
Removed: PR-5.3-dev
avatar richard67 richard67 - change - 15 Oct 2025
Title
[5.3] Generate unique alias on “Save as Copy” for Smart Search filters
[5.4] Generate unique alias on “Save as Copy” for Smart Search filters
avatar richard67 richard67 - edited - 15 Oct 2025
avatar richard67
richard67 - comment - 17 Oct 2025

So it seems we have 2 ways to fix what @ceford mentioned.

Either we change this PR so it makes sure we have a unique title (and so unique alias, too), then we won't have duplicates in the filter.

Or we change the filter to remove duplicates coming from (still allowed) duplicate titles, but then we should show the alias also in the list, like we e.g. do it for categories (if I remember right).

Not sure what's better.

avatar travisrisner
travisrisner - comment - 17 Oct 2025

My last commit should ensure that the title is unique as well. I can make changes so that we show the alias in the table as well if we want to go that route.

avatar richard67
richard67 - comment - 17 Oct 2025

My last commit should ensure that the title is unique as well.

@travisrisner Sorry, I missed that. I see now it is ok.

I can make changes so that we show the alias in the table as well if we want to go that route.

@travisrisner If that is easily possible, please go for it. It could help with old filters entered in the past which have a duplicate title.

avatar richard67 richard67 - change - 17 Oct 2025
Status Ready to Commit Pending
Build 5.3-dev 5.4-dev
avatar richard67
richard67 - comment - 17 Oct 2025

Back to pending after recent changes.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46081.

avatar richard67
richard67 - comment - 17 Oct 2025

@travisrisner Could you update the description or the testing instructions to reflect the latest changes (title also handled, alias added to list view)?

@brianteeman @ceford @dautrich Could you test again with the latest changes?

Thanks in advance.

avatar travisrisner travisrisner - change - 17 Oct 2025
The description was changed
avatar travisrisner travisrisner - edited - 17 Oct 2025
c6dcbe2 17 Oct 2025 avatar travisrisner cs
avatar travisrisner travisrisner - change - 17 Oct 2025
Labels Removed: RTC RMDQ
avatar ceford
ceford - comment - 19 Oct 2025

When I use Save as Copy (in any context) I sometimes forget to change the alias, or even the Title. So I prefer the status quo: Save failed with the following error: ...

Add a Comment

Login with GitHub to post a comment