? ? Pending

User tests: Successful: Unsuccessful:

avatar hans2103
hans2103
9 May 2021

Pull Request for Issue # .

Summary of Changes

This PR will make it possible to use the Admin template params on an admin error page.
@richard67 thank you for the suggestion how it is implemented in Cassiopeia.
Good or bad... it works.

Testing Instructions

Login Joomla 4 admin
Go to Atum template and change a color.
Logout of Joomla 4 admin
Go to a URL that generates a 403 Forbidden message - here is a quick example:

http://example.com/administrator/index.php?option=com_banners&task=tracks.display&format=raw

Actual result BEFORE applying this Pull Request

Schermafbeelding 2021-05-09 om 21 57 28

Expected result AFTER applying this Pull Request

Schermafbeelding 2021-05-09 om 21 59 04

Documentation Changes Required

avatar hans2103 hans2103 - open - 9 May 2021
avatar hans2103 hans2103 - change - 9 May 2021
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 9 May 2021
Category Administration Templates (admin)
avatar sandramay0905 sandramay0905 - test_item - 10 May 2021 - Tested successfully
avatar sandramay0905
sandramay0905 - comment - 10 May 2021

I have tested this item successfully on 3edec99


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

avatar drmenzelit drmenzelit - test_item - 10 May 2021 - Tested successfully
avatar drmenzelit
drmenzelit - comment - 10 May 2021

I have tested this item successfully on 3edec99


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

avatar drmenzelit drmenzelit - change - 10 May 2021
Status Pending Ready to Commit
avatar drmenzelit
drmenzelit - comment - 10 May 2021

RTC


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

avatar Hackwar
Hackwar - comment - 10 May 2021

I reviewed the code and this would be okay from my end.

avatar chmst chmst - close - 11 May 2021
avatar chmst chmst - merge - 11 May 2021
avatar chmst chmst - change - 11 May 2021
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2021-05-11 07:22:47
Closed_By chmst
Labels Added: ? ?
avatar chmst
chmst - comment - 11 May 2021

Thanks

avatar Fedik
Fedik - comment - 11 May 2021

This does not fix the same problem for 3d templates.

The params should be already available, for this they should be set by ExceptionHandler::render() where the Document relodaded,

public static function render(\Throwable $error)

Similar to how it is it done in CMSAplication::render()

$this->docOptions['params'] = $this->get('themeParams');

avatar Fedik
Fedik - comment - 16 May 2021

I have made a better fix #33916 please test.

avatar hans2103
hans2103 - comment - 17 May 2021

@Fedik thank you for your PR. It's the solution to the real issue.

Add a Comment

Login with GitHub to post a comment