?
Referenced as Related to: # 4551 # 5149

User tests: Successful: Unsuccessful:

avatar kirapwn
kirapwn
16 Oct 2014

The file https://github.com/joomla/joomla-cms/blob/staging/administrator/includes/toolbar.php breaks the principle of having 1 class per file: JToolbarHelper and JSubMenuHelper

@chrisdavenport suggested that we could maybe fix it by removing JSubMenuHelper and including it from JToolbarHelper file. That way we will not break b/c. How does it sound?

see #4551

avatar kirapwn kirapwn - open - 16 Oct 2014
avatar jissues-bot jissues-bot - change - 16 Oct 2014
Labels Added: ?
avatar kirapwn kirapwn - test_item - 16 Oct 2014 - Tested successfully
avatar brianteeman
brianteeman - comment - 16 Oct 2014

Sorry you cant test your own stuff ;)

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

avatar brianteeman brianteeman - alter_testresult - 16 Oct 2014 - kirapwn: Not tested
avatar kirapwn
kirapwn - comment - 16 Oct 2014

Alright :) Can I do something more with pull requests and issue description to make everyones life easier?

avatar wilsonge
wilsonge - comment - 17 Oct 2014

If you look at the diff it would appear you've broken all the spacing at the start of each line :+1: for implementation tho. Will try and get this tested properly tomorrow!

avatar kirapwn
kirapwn - comment - 17 Oct 2014

Do I create another pull request or is there a way to fix this here?

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

avatar nicksavov
nicksavov - comment - 17 Oct 2014

Just commit your fix to your branch (i.e. fix-issue-#4551) and it will automatically be applied to the pull request (which is for the whole branch).

avatar nicksavov nicksavov - change - 17 Oct 2014
Labels Added: ?
avatar rajeshstarlite
rajeshstarlite - comment - 17 Oct 2014

@test, it works fine. As mentioned in file subtoolbar.php, the function JSubMenuHelper::addEntry() wil be deprecated in Joomla! 4.0 so we will use JHtmlSidebar::addEntry() instead.

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

avatar rajeshstarlite rajeshstarlite - test_item - 17 Oct 2014 - Tested successfully
avatar anibalsanchez
anibalsanchez - comment - 17 Oct 2014

@test, test OK - Navigation works fine.

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

avatar brianteeman brianteeman - alter_testresult - 17 Oct 2014 - anibalsanchez: Tested successfully
avatar haydenyoung
haydenyoung - comment - 17 Oct 2014

Getting:

Fatal error: Class 'JToolBarHelper' not found in /var/www/html/pbf33/administrator/components/com_patchtester/views/pulls/view.html.php on line 119

when applying the patch. Checking ./administrator/includes/toolbar.php contains "400: Invalid request" so could be a problem with the patch tester or github.

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

avatar anibalsanchez
anibalsanchez - comment - 17 Oct 2014

I have applied the patch with Eclipse from github diff. I have been working with the applied patch with no issues so far.

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

avatar compojoom
compojoom - comment - 17 Oct 2014

The patchtester has been fixed, you can now use it to apply the PR. For me the fix is working so far!

avatar haydenyoung haydenyoung - test_item - 17 Oct 2014 - Tested successfully
avatar haydenyoung
haydenyoung - comment - 17 Oct 2014

Working also, and patch successfully tested.

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

avatar brianteeman
brianteeman - comment - 28 Oct 2014

Multiple successful tests - thanks - setting to RTC

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

avatar brianteeman brianteeman - change - 28 Oct 2014
Status Pending Ready to Commit
avatar Bakual
Bakual - comment - 29 Oct 2014

@kirapwn Can you fix the codestyle issues?

FILE: /home/travis/build/joomla/joomla-cms/administrator/includes/toolbar.php
--------------------------------------------------------------------------------
FOUND 1 ERROR(S) AFFECTING 1 LINE(S)
--------------------------------------------------------------------------------
 19 | ERROR | Missing class doc comment
--------------------------------------------------------------------------------

FILE: ...me/travis/build/joomla/joomla-cms/administrator/includes/subtoolbar.php
--------------------------------------------------------------------------------
FOUND 1 ERROR(S) AFFECTING 1 LINE(S)
--------------------------------------------------------------------------------
 141 | ERROR | Please end your files with an empty line.
--------------------------------------------------------------------------------
avatar jissues-bot jissues-bot - change - 29 Oct 2014
Labels Added: ?
avatar kirapwn
kirapwn - comment - 29 Oct 2014

I think they should be fixed now

avatar wilsonge
wilsonge - comment - 29 Oct 2014

image

You can see it by clicking on the cross/tick next to each commit like in the image above

avatar kirapwn
kirapwn - comment - 29 Oct 2014

Thanks.. guess I am blind

avatar phproberto
phproberto - comment - 20 Nov 2014

I have rebased and solved conflicts + small code style fixes in: #5149

Closing this.

Thanks @kirapwn for your contribution! :dancer:

avatar phproberto phproberto - close - 20 Nov 2014
avatar zero-24 zero-24 - close - 20 Nov 2014
avatar phproberto phproberto - change - 20 Nov 2014
Status Ready to Commit Closed
Closed_Date 0000-00-00 00:00:00 2014-11-20 10:58:49
avatar zero-24 zero-24 - change - 1 Apr 2015
Labels Removed: ?

Add a Comment

Login with GitHub to post a comment