? Pending

User tests: Successful: Unsuccessful:

avatar Bakual
Bakual
18 Jun 2017

Pull Request for Issue #12687 and #16612 .

Summary of Changes

This adjusts the ContentRouter so it only takes the "Create Article" menuitem for new articles, not when editing an existing article. I adjusted the Viewconfiguration for that and added &a_id=0 to the URL for the view in the controller.
Please note that most of the change are only within com_content, but there is one change in the menu rule which may affect other extensions. But only if they use those new JComponentRouterView stuff and I think the change should be fine. If you come into that part of the code and don't have a key set in the menuitem, it will not be stored into the needles array and never be used for the URL. So that looked wrong anyway.

Testing Instructions

  • Create at least two articles. Have a menuitem pointing to one of them and a menuitem pointing to the category.
  • Create a menuitem "Create Article". For better testing you can adjust the settings within that menuitem (eg the title or the standardcategory) so the view is distinguishable easy from a regular edit.
  • Now try the article edit links (in the category list and/or the single article view) and that "Create Article" link

Expected result

  • The "Create Article" menuitem should be used for any "New Article" links. Test for example the "New" button in the category list
  • The edit links should not use the "Create Article" menuitem. Instead it should be based on the article menuitem or the category one. Whatever fits best.

Actual result

Any edit links use the "Create Article" menuitem

Documentation Changes Required

Don't think there is any doc at all for this router stuff.

Votes

# of Users Experiencing Issue
2/2
Average Importance Score
4.50

avatar Bakual Bakual - open - 18 Jun 2017
avatar Bakual Bakual - change - 18 Jun 2017
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 18 Jun 2017
Category Front End com_content Libraries
avatar bayareajenn
bayareajenn - comment - 20 Jun 2017

I just tested this on a client dev site that had the exact problem described. The new files work perfectly and resolve the issue. How many more people do you need to test (or sites) before it can be included with the next release? Let me know and I'll try to find people.

avatar alikon
alikon - comment - 20 Jun 2017

hi jenn,
They need at least 2 successfull tests to be evaluated as ReadyToCommit and then is up to maintainers to commit / and decide milestone.
so please mark your successfull test on https://issues.joomla.org/tracker/joomla-cms/16756 so you'll need to find just another 1 to test

avatar bayareajenn
bayareajenn - comment - 20 Jun 2017

I just tested this on a client dev site that had the exact problem described. The new files work perfectly and resolve the issue.


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

avatar bayareajenn
bayareajenn - comment - 20 Jun 2017

I just tested this on a client dev site that had the exact problem described. The new files work perfectly and resolve the issue.


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

avatar franz-wohlkoenig franz-wohlkoenig - alter_testresult - 20 Jun 2017 - bayareajenn: Tested successfully
avatar bayareajenn bayareajenn - test_item - 20 Jun 2017 - Tested successfully
avatar bayareajenn
bayareajenn - comment - 20 Jun 2017

I have tested this item successfully on c25284a

I just tested this on a client dev site that had the exact problem described. The new files work perfectly and resolve the issue. I get a little confused in here but all good, right?!


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

avatar bayareajenn
bayareajenn - comment - 20 Jun 2017

Hi Nicola,
Thank you! You're so great walking me through these things. :) :) I can't wait to see you in November!
jenn

avatar jim-porter
jim-porter - comment - 22 Jun 2017

I was having this problem with a production site and tested this solution. It successfully resolved the problem. Jenn thanks for letting me know about this solution.


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

avatar bayareajenn
bayareajenn - comment - 22 Jun 2017

@jim-porter at the top of https://issues.joomla.org/tracker/joomla-cms/16756 login and mark that you've tested successfully. Can you see where it has Successful: 1 bayareajenn at the top of the page? We need you to say you tested successfully too! Thank you for testing this Jim!


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

avatar jim-porter jim-porter - test_item - 22 Jun 2017 - Tested successfully
avatar jim-porter
jim-porter - comment - 22 Jun 2017

I have tested this item successfully on c25284a

I had this problem with a production site and tested this solution. The test was successful and fully resolved the problem.


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

avatar bayareajenn
bayareajenn - comment - 22 Jun 2017

@Bakual is it to late to get this issue in with 3.7.3?


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

avatar franz-wohlkoenig franz-wohlkoenig - change - 22 Jun 2017
Status Pending Ready to Commit
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 22 Jun 2017

RTC after two successful tests.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 22 Jun 2017

@bayareajenn hopefully @rdeutz as Release Leader can make this Decision (but yesterday "Release Candidate 1" was going out).

avatar bayareajenn
bayareajenn - comment - 22 Jun 2017

@franz-wohlkoenig I know. I saw the announcement earlier. I tried to get more testers yesterday but it didn't work out. We'll see what @rdeutz says and if it's not meant to be, it's not meant to be. Thanks!

avatar infograf768
infograf768 - comment - 22 Jun 2017

This patch is real great!

avatar rdeutz
rdeutz - comment - 22 Jun 2017

Was not in time for the RC release, I will do my own test and then decide if I merge it into 3.7.3.

avatar rdeutz rdeutz - change - 23 Jun 2017
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2017-06-23 19:56:00
Closed_By rdeutz
Labels Added: ?
avatar rdeutz rdeutz - close - 23 Jun 2017
avatar rdeutz rdeutz - merge - 23 Jun 2017
avatar bayareajenn
bayareajenn - comment - 23 Jun 2017

Thank you, @rdeutz !

avatar jsfernando
jsfernando - comment - 26 Jun 2017

I was also having the same issue in Article Editing, switching category. I askedo here proposed and it worked!

avatar netamity
netamity - comment - 5 Jul 2017

Unfortunately this broke my 'Add article' menu link. The &a_id=0 caused a redirect to the non-SEF url of the current page. Very strange. Commenting out the
$form->setKey('a_id');
fixed the issue. I don't have any Edit menu links on my sites, so I think I should be ok.
Registered for the joomlacode bug reporting and awaiting approval in order to report.

avatar franz-wohlkoenig
franz-wohlkoenig - comment - 5 Jul 2017

@netamity can you please open a new Issue? Thanks.

avatar mbabker
mbabker - comment - 5 Jul 2017

Registered for the joomlacode bug reporting and awaiting approval in order to report.

JoomlaCode is not used for bug reports anymore (and hasn't been for years). Filing issues here on GitHub (or https://issues.joomla.org/ which is just a wrapper for GitHub mainly) is the way to do it.

Add a Comment

Login with GitHub to post a comment