? ? Pending

User tests: Successful: Unsuccessful:

avatar regularlabs
regularlabs
11 May 2021

Fixes issue with field not being seen as hidden when using type="Hidden" instead of type="hidden"

You can test this by for instance - changing:

		<field
			name="update_site_id"
			type="hidden"
		/>

to:

		<field
			name="update_site_id"
			type="Hidden"
		/>

in administrator/components/com_installer/forms/updatesite.xml

Then go to administrator/index.php?option=com_installer&view=updatesites and click on one of the update sites.
Result is now:
image

After fix, that line is not visible (which is good).

avatar regularlabs regularlabs - open - 11 May 2021
avatar regularlabs regularlabs - change - 11 May 2021
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 11 May 2021
Category Libraries
avatar brianteeman
brianteeman - comment - 11 May 2021

Surely if you are making this case-insensitive then you need to make them all case insensitive?

avatar regularlabs
regularlabs - comment - 11 May 2021

Well, all field types are already case-insensitive... kind of.
If the Field classname is FoobarField, then the casing doesn't matter.
So you can use type="list", or type="List" or even type="LiSt"... but not type="Hidden"

Depending on your server (whether it can deal with case-insensitive files/folders) you DO need to use the exact casing when using other uppercase characters in the classname, like FooBarField.
Then you must use field="FooBar" or field="fooBar", but field="foobar" will fail.

Joomla uses a mix of the lowercase and title case class name (yes, bit of a mess):
image
image

Anyway, this PR is just to fix the issue with the type="Hidden"

avatar regularlabs
regularlabs - comment - 11 May 2021

PS: Here you can already see that there are other internal checks on the type that are case-insensitive.

switch (strtolower((string) $this->element['type']))

avatar brianteeman brianteeman - test_item - 11 May 2021 - Tested successfully
avatar brianteeman
brianteeman - comment - 11 May 2021

I have tested this item successfully on ad9eba8

Marking as successful that it does what it says. reserving judgement due to lack of knowledge if this is the correct approach


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

avatar ceford ceford - test_item - 12 May 2021 - Tested successfully
avatar ceford
ceford - comment - 12 May 2021

I have tested this item successfully on ad9eba8

Works as described.


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

avatar richard67 richard67 - change - 12 May 2021
Status Pending Ready to Commit
Labels Added: ?
avatar richard67
richard67 - comment - 12 May 2021

RTC


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

avatar richard67 richard67 - change - 12 May 2021
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2021-05-12 09:49:11
Closed_By richard67
Labels Added: ?
avatar richard67 richard67 - close - 12 May 2021
avatar richard67 richard67 - merge - 12 May 2021
avatar richard67
richard67 - comment - 12 May 2021

Thanks!

avatar regularlabs
regularlabs - comment - 12 May 2021

Thanks!

Add a Comment

Login with GitHub to post a comment