? ? Pending

User tests: Successful: Unsuccessful:

avatar dgrammatiko
dgrammatiko
16 Mar 2022

Pull Request for Issue #37285 .

Summary of Changes

  • Use the right path for the css

Testing Instructions

Actual result BEFORE applying this Pull Request

Expected result AFTER applying this Pull Request

Documentation Changes Required

No, this is a bug

avatar dgrammatiko dgrammatiko - open - 16 Mar 2022
avatar dgrammatiko dgrammatiko - change - 16 Mar 2022
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 16 Mar 2022
Category Installation
avatar dgrammatiko dgrammatiko - change - 16 Mar 2022
Labels Added: ?
avatar richard67
richard67 - comment - 16 Mar 2022

By review I'd say this PR is correct because a few lines below, in line 23, we already use the right path for the JS file.

avatar brianteeman
brianteeman - comment - 16 Mar 2022

By review I'd say this PR is correct because a few lines below, in line 23, we already use the right path for the JS file.

thats why I suggested it ;)

avatar richard67
richard67 - comment - 16 Mar 2022

What I still don't understand is why I could not reproduce the issue here. But I have tested that with this PR the installation form still looks ok here with LTR and RTL.

avatar dgrammatiko
dgrammatiko - comment - 16 Mar 2022

@richard67 @brianteeman on my local server with either paths (just template.css or [installation/template/css/template.css I get the correct result but lets use the stricter one (the line is missing the options array for 'relative' => true and I'm guessing the logic is a bit flaky on windows[?])
Unless if adding ->registerAndUseStyle('template.installation', 'template' . ($this->direction === 'rtl' ? '-rtl' : '') . '.css', ['version' => 'auto', 'relative' => true],[]) is working, then this is a better solution

Screenshot 2022-03-16 at 13 41 08

avatar dgrammatiko
dgrammatiko - comment - 16 Mar 2022

@brianteeman can you please confirm that the latest commit works as expected on your env?

avatar brianteeman
brianteeman - comment - 16 Mar 2022

give me 5

avatar dgrammatiko
dgrammatiko - comment - 16 Mar 2022

BTW there's a PHP notice in the last page
Screenshot 2022-03-16 at 14 04 44

The solution is adding

						<?php if (empty($element)) : ?>
							<?php continue; ?>
						<?php endif; ?>

after

<?php preg_match('#^pkg_([a-z]{2,3}-[A-Z]{2})$#', $language->element, $element); ?>

avatar brianteeman
brianteeman - comment - 16 Mar 2022

I have tested this item ? unsuccessfully on 1e6b461


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

avatar brianteeman brianteeman - test_item - 16 Mar 2022 - Tested unsuccessfully
avatar brianteeman
brianteeman - comment - 16 Mar 2022

I have tested this item successfully on 1e6b461


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

avatar brianteeman brianteeman - test_item - 16 Mar 2022 - Tested successfully
avatar richard67
richard67 - comment - 16 Mar 2022

I have tested this item successfully on 245c81f

Issue can be reproduced by creating a file "template.css" in the Joomla root. This can be an empty file.

Without the PR, installation form is not styled.

With the PR it is.


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

avatar richard67 richard67 - test_item - 16 Mar 2022 - Tested successfully
avatar richard67 richard67 - alter_testresult - 16 Mar 2022 - brianteeman: Tested successfully
avatar richard67
richard67 - comment - 16 Mar 2022

@brianteeman For some reason your test result had an old commit reference. Not your fault, I think, but maybe a caching issue of the tracker. I've restored your test result in the tracker so it is properly counted.

avatar richard67 richard67 - change - 16 Mar 2022
Status Pending Ready to Commit
avatar richard67
richard67 - comment - 16 Mar 2022

RTC


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

avatar richard67 richard67 - change - 16 Mar 2022
Status Ready to Commit Pending
avatar richard67 richard67 - change - 16 Mar 2022
Status Pending Ready to Commit
avatar richard67
richard67 - comment - 16 Mar 2022

RTC


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

avatar wilsonge wilsonge - close - 17 Mar 2022
avatar wilsonge wilsonge - merge - 17 Mar 2022
avatar wilsonge wilsonge - change - 17 Mar 2022
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2022-03-17 11:57:35
Closed_By wilsonge
Labels Added: ?
avatar wilsonge
wilsonge - comment - 17 Mar 2022

Thanks!

Add a Comment

Login with GitHub to post a comment