User tests: Successful: Unsuccessful:
Pull Request for Issue #29901 .
This PR replaces the form-in-table by a form with decent control-groups
npm run build:js
is requiredhttps://update.joomla.org/core/nightlies/next_major_list.xml
System > Joomla Update
Live Update
tabStatus | New | ⇒ | Pending |
Category | ⇒ | Administration com_joomlaupdate |
Title |
|
Labels |
Added:
?
|
I see it happening too... now I have to find out what script is causing this. Help is welcome on this one.
found something:
joomla-cms/build/media_source/com_joomlaupdate/js/default.es5.js
Lines 11 to 19 in 0a611c4
Category | Administration com_joomlaupdate | ⇒ | Administration com_joomlaupdate JavaScript Repository NPM Change |
Addition for test instructions:
npm run build:js
is requiredI have tested this item
Sorry but I still dont think this is correct.
On page load we have
<div class="control-group" id="row_ftp_hostname" style="display: none">
When I change to hybrid or ftp we get the js error so cant tell what is supposed to happen to the markup there as nothing changes
But when you change back to Write files directly you get
<div class="control-group hidden" id="row_ftp_hostname" style="display: none">
It cannot be correct to have a class of hidden AND an inline style of display: none
The JS error is related to all of this. You cant fix them individually
Labels |
Added:
NPM Resource Changed
|
the inline styling style="display:none;"
is set through the following PHP echo :
<?php echo $this->ftpFieldsDisplay; ?>
That part is coming from
Since I don't have ftp activated I can see the JS error:
default.min.js?b1a4c7f1a3537b0e17f61299c4151088:1 Uncaught DOMException: Failed to execute 'add' on 'DOMTokenList': The token provided must not be empty.
at Object.t.extractionMethodHandler (http://joomla4.test/media/com_joomlaupdate/js/default.min.js?b1a4c7f1a3537b0e17f61299c4151088:1:172)
at HTMLSelectElement.<anonymous> (http://joomla4.test/media/com_joomlaupdate/js/default.min.js?b1a4c7f1a3537b0e17f61299c4151088:1:1410)
t.extractionMethodHandler @ default.min.js?b1a4c7f1a3537b0e17f61299c4151088:1
(anonymous) @ default.min.js?b1a4c7f1a3537b0e17f61299c4151088:1
In the JS change I've changed 'table-row'
into ''
.|
It seems that I cannot add an empty something.
I've updated my PR by adding an extra check if the class hidden can be set or not. It will only execute when it is not false.
So Hybrid
and Write files using FTP
should not be listed when FTP is disabled.
I am closing this issue in favor of #30168 (comment)
Status | Pending | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2020-07-25 13:41:44 |
Closed_By | ⇒ | hans2103 |
I have tested this item? unsuccessfully on 44f0d9e
After applying the PR the source does look like the result in the original post. but as soon as you select ftp or hybrid from the Installation method select you will see that a bunch of table classes are applied and the inline style of display:none is not removed so you cant actually use the fields
default
hybrid
And then if you go back to the default method you will see an additional class of hidden is added
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/30171.