User tests: Successful: Unsuccessful:
This PR fix the issue #4912 reported by @brianteeman. Basically, when you open an article, change it's title (and maybe alias), then press "Save as Copy" button, the system should create a new article with the new title (and alias) which you entered.
However, at the moment, Joomla simply ignore the change you made before pressing "Save as Copy", it simply append (2) to the title (and alias) of the original article and use it as Title (and alias) of the new article. This is unexpected behavior and this PR fix it.
Labels |
Added:
?
|
Category | ⇒ | Components UI/UX |
Tested and worked perfectly
Repeating the instructions I gave in the original report and I know get the expected results
This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/4916.
Thanks @brianteeman. One more tester and we can get it merged.
Easy | No | ⇒ | Yes |
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2014-10-26 10:00:56 |
Thanks JM. As mentioned, I see this issue happens on Contacts and Weblinks as well, so I will create a PR to fix in these components as well. Thanks again :).
Same issue for Categories and Banners
For Newsfeeds it is slightly different in the sense that the new title is OK but the alias gets -2 appended.
Therefore the 3 are concerned.
For weblinks I guess the PR should be proposed int the specific weblinks project
@joomdonation
If you wish, I already prepared a patch based on your code, except for weblinks.
Thanks JM. Could you please open PRs with your code ? We will just need to test it and get it merged :)
Forgot to mention this PR also fix some code styles as well.