? ? Pending

User tests: Successful: Unsuccessful:

avatar nikosdion
nikosdion
28 Sep 2022

Pull Request for Issue #38849 .

Summary of Changes

Updated \Joomla\Component\Cpanel\Administrator\View\Cpanel\HtmlView::display to make the control panel position on third party components' dashboards independent of the Unicode Slugs setting in Global Configuration.

Testing Instructions

TEST 1

  • Go to System, Global Configuration, Site.
  • Set Unicode Aliases to No (that's the default).
  • Click on Save & Close.
  • TEST 1.A: Go to extension's dashboard (e.g. Components, and click the dashboard icon next to Akeeba Release System)
  • TEST 1.B: Go to the Joomla administrator control panel.

TEST 2

  • Go to System, Global Configuration, Site.
  • Set Unicode Aliases to Yes.
  • Click on Save & Close.
  • TEST 2.A: Go to extension's dashboard (e.g. Components, and click the dashboard icon next to Akeeba Release System)
  • TEST 2.B: Go to the Joomla administrator control panel.

Actual result BEFORE applying this Pull Request

Test 1.A: The component dashboard is NOT shown
Test 1.B: The system dashboard is shown
Test 2.A: The component dashboard is shown
Test 2.B: The system dashboard is shown

Expected result AFTER applying this Pull Request

Test 1.A: The component dashboard is shown
Test 1.B: The system dashboard is shown
Test 2.A: The component dashboard is shown
Test 2.B: The system dashboard is shown

Documentation Changes Required

Technically, none.

Please note that there's currently zero documentation on custom dashboards. I am writing it which is how I bumped into this issue to begin with.

avatar nikosdion nikosdion - open - 28 Sep 2022
avatar nikosdion nikosdion - change - 28 Sep 2022
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 28 Sep 2022
Category Administration com_cpanel
avatar nikosdion nikosdion - change - 28 Sep 2022
Labels Added: ?
avatar Fedik
Fedik - comment - 28 Sep 2022

Looks valid,
Btw, your extension not available for download, people will not be able to test ;)

avatar nikosdion
nikosdion - comment - 28 Sep 2022

@Fedik Thank you for the heads up! I fixed the download of the component.

avatar Fedik
Fedik - comment - 28 Sep 2022

For testing without extra component:
Add var_dump($dashboard, $position); around here (after $position = ..)

$position = ApplicationHelper::stringURLSafe($dashboard);
// Generate a title for the view cpanel
if (!empty($dashboard)) {

In backend open administrator/index.php?option=com_cpanel&view=cpanel&dashboard=com_potato-test,
You should get var_dump output:

com_potato-test
com-potato-test

Then in Global configuration change Unicode Aliases to oposite of what you have.
Check previous link again, the var_dump output should be the same.

Before the patch it diferent (when Unicode Aliases is Yes ):

com_potato-test
com_potato-test
avatar Fedik
Fedik - comment - 28 Sep 2022

I have tested this item successfully on 91fa4a9


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

avatar Fedik Fedik - test_item - 28 Sep 2022 - Tested successfully
avatar viocassel
viocassel - comment - 28 Sep 2022

I have tested this item successfully on 91fa4a9


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

avatar viocassel viocassel - test_item - 28 Sep 2022 - Tested successfully
avatar Fedik Fedik - change - 28 Sep 2022
Status Pending Ready to Commit
avatar Fedik
Fedik - comment - 28 Sep 2022

r2c


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

avatar Abernyte-Git
Abernyte-Git - comment - 28 Sep 2022

I have tested this item ? unsuccessfully on 91fa4a9

What I am doing wrong? Testing in J4.2.3 with php8.1.7
Without the patch the test completes as expected.
Test 1A Not shown
Test 1B Shown
Test 2A Shown
Test 2B Shown
After applying the patch
Test 1A Not Shown
Test 1B Shown
Test 2A Not Shown
Test 2B Shown


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/38853.
avatar Abernyte-Git Abernyte-Git - test_item - 28 Sep 2022 - Tested unsuccessfully
avatar nikosdion
nikosdion - comment - 28 Sep 2022

@Abernyte-Git It's because I have a bug in the component I asked you to test with. I have mistyped the position as cpanel-com_ars-ars instead of cpanel-com-ars-ars. Well, you got the correct results for my typo…

avatar Abernyte-Git
Abernyte-Git - comment - 28 Sep 2022

Phew! I thought I was losing it! I will retest whenever your component is fixed.


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

avatar laoneo laoneo - change - 29 Sep 2022
Labels Added: ?
avatar laoneo
laoneo - comment - 29 Sep 2022

@nikosdion just to be sure. I tested it with your version of ARS and after the update it adds the modules at the position "cpanel-com_ars-ars" but it should be "cpanel-com-ars-ars". Because this is what is rendered after the change in this as $position in the view. Is this correct?

avatar nikosdion
nikosdion - comment - 29 Sep 2022

As I said yesterday, it's a typo in my component. I mean to fix that but life got in the way. When I have some time later today or tomorrow I'll update the component.

avatar laoneo laoneo - change - 29 Sep 2022
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2022-09-29 14:09:09
Closed_By laoneo
avatar laoneo laoneo - close - 29 Sep 2022
avatar laoneo laoneo - merge - 29 Sep 2022
avatar laoneo
laoneo - comment - 29 Sep 2022

Thanks for clarification and the pr!

avatar nikosdion
nikosdion - comment - 29 Sep 2022

Thank you for merging it, @laoneo :)

Add a Comment

Login with GitHub to post a comment