? ? Pending

User tests: Successful: Unsuccessful:

avatar PhilETaylor
PhilETaylor
28 Apr 2021

#33380 (comment)

Summary of Changes

Allow banner creation if there are no banner categories.

Testing Instructions

Delete all your banner categories.
Note you cannot create any banners as the NEW toolbar button doesn't show

Actual result BEFORE applying this Pull Request

Note you cannot create any banners as the NEW toolbar button doesn't show

Expected result AFTER applying this Pull Request

You can click NEW to create a new Banner, and a new Uncategorised category is created on the fly when you save it.

Documentation Changes Required

None.

avatar PhilETaylor PhilETaylor - open - 28 Apr 2021
avatar PhilETaylor PhilETaylor - change - 28 Apr 2021
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 28 Apr 2021
Category Administration com_banners
avatar PhilETaylor PhilETaylor - change - 28 Apr 2021
The description was changed
avatar PhilETaylor PhilETaylor - edited - 28 Apr 2021
avatar PhilETaylor PhilETaylor - change - 28 Apr 2021
Labels Added: ?
avatar joomdonation
joomdonation - comment - 28 Apr 2021

Still not valid. Please use the suggested code #33380 (comment)

avatar PhilETaylor
PhilETaylor - comment - 28 Apr 2021

you were too quick for me ... I was multi tasking - now done.

avatar joomdonation joomdonation - test_item - 28 Apr 2021 - Tested successfully
avatar joomdonation
joomdonation - comment - 28 Apr 2021

I have tested this item successfully on c452f87


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

avatar Quy
Quy - comment - 28 Apr 2021

The New button is fixed, but no Add your first banner button.

avatar joomla-cms-bot joomla-cms-bot - change - 28 Apr 2021
Category Administration com_banners Administration com_banners com_installer
avatar joomla-cms-bot joomla-cms-bot - change - 28 Apr 2021
Category Administration com_banners com_installer Administration com_banners
avatar PhilETaylor
PhilETaylor - comment - 28 Apr 2021

added that to this as well now

avatar Quy Quy - test_item - 28 Apr 2021 - Tested successfully
avatar Quy
Quy - comment - 28 Apr 2021

I have tested this item successfully on c2260e9

Perfect! Thank you!!!


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

avatar joomdonation joomdonation - test_item - 28 Apr 2021 - Tested successfully
avatar joomdonation
joomdonation - comment - 28 Apr 2021

I have tested this item successfully on c2260e9


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

avatar Quy Quy - change - 28 Apr 2021
The description was changed
Status Pending Ready to Commit
avatar Quy Quy - edited - 28 Apr 2021
avatar Quy
Quy - comment - 28 Apr 2021

RTC


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

avatar joomdonation
joomdonation - comment - 28 Apr 2021

A perfect fix would be store $canDo as a property of the class and use $this->canDo->get('core.create') instead of $user->authorise() but guess I'm asking too much :D

avatar richard67
richard67 - comment - 30 Apr 2021

@PhilETaylor The next one with conflicts due to one of your other PR's, this time file administrator/components/com_banners/src/View/Banners/HtmlView.php. No need to hurry, just a remainder so it is addressed.

avatar PhilETaylor
PhilETaylor - comment - 30 Apr 2021

Sorry - sidetracked with #33422 and trying to hide show form fields :(

avatar PhilETaylor PhilETaylor - change - 30 Apr 2021
Labels Added: ?
avatar PhilETaylor
PhilETaylor - comment - 30 Apr 2021

Done

avatar richard67 richard67 - alter_testresult - 30 Apr 2021 - Quy: Tested successfully
avatar richard67 richard67 - alter_testresult - 30 Apr 2021 - joomdonation: Tested successfully
avatar richard67
richard67 - comment - 30 Apr 2021

I've restored previous test results in the tracker since the last commit after that was just a clean branch update and merge conflict resolution.

avatar richard67 richard67 - close - 30 Apr 2021
avatar richard67 richard67 - merge - 30 Apr 2021
avatar richard67 richard67 - change - 30 Apr 2021
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2021-04-30 10:47:19
Closed_By richard67
Labels Added: ?
Removed: ?
avatar richard67
richard67 - comment - 30 Apr 2021

Thanks!

Add a Comment

Login with GitHub to post a comment