[5.4] Don't generate unique title and alias for Smart Search filters on “Save as Copy” - Revert PR 46081 #46453
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull Request for Issue # .
Alternative to PR #46449 .
Summary of Changes
This pull request (PR) reverts PR #46081 , which has been merged before 5.4.1-rc1 and so is part of that pre-release, but not has been released yet with a stable release.
The PR was classified as bug fix as its associated issue #43969 was classified as bug, but that was possibly wrong.
Looking deeper into it, I meanwhile think it is a new feature and so should have been made for 6.1-dev.
When I had set RTC for the PR, I was not aware of it, so it is partly my mistake.
The PR has some issues which would be fixed with PR #46449 , but it still doesn't result in an ideal solution, e.g. it still needs to access the input in the model, see the review discussion in that PR.
So the clean way would be to revert PR #46081 before 5.4.1 stable, re-open issue #43969 and change that from bug to feature and implement a better solution for 6.1-dev.
For the revert part I have created this PR here.
Testing Instructions
Actual result BEFORE applying this Pull Request
A new filter is created with new title and alias.
The alias is shown in the Search Filter list.
Expected result AFTER applying this Pull Request
An error alert "Save failed with the following error: Another Filter has the same alias." is shown.
The alias is not shown in the Search Filter list.
This is the same behaviour as with 5.4.0 or previous versions.
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