? Pending

User tests: Successful: Unsuccessful:

avatar eshiol
eshiol
14 Apr 2018

Joomla saves and loads multiple field values as JSON, but it doesn't load default field values as JSON.

Summary of Changes

Add the possibility to load multiple default field values as JSON

Testing Instructions

Adding the default attribute to the field access with the json value "[1,2]" to the file administrator/components/com_content/models/forms/filter_articles.xml

		<field
			name="access"
			type="accesslevel"
			multiple="true"
			class="multipleAccessLevels"
			onchange="this.form.submit();"
			default="[1,2]"
		/>

Expected result

The filter is enabled and the access levels "Public" and "Registered" are selected.

Actual result

The filter is disabled

Documentation Changes Required

avatar eshiol eshiol - open - 14 Apr 2018
avatar eshiol eshiol - change - 14 Apr 2018
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 14 Apr 2018
Category Libraries
avatar Quy
Quy - comment - 14 Apr 2018

Duplicate #19782. Can you test it?

avatar eshiol
eshiol - comment - 16 Apr 2018

#19782 is not the same as #20168. #20168 is about default values.
There is no way to load two or more values by default for fields with attribute "multiple" set to true.

avatar Quy
Quy - comment - 16 Apr 2018

I have tested this item successfully on 421fa33


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

avatar Quy Quy - test_item - 16 Apr 2018 - Tested successfully
avatar coolcat-creations coolcat-creations - test_item - 17 Jul 2018 - Tested successfully
avatar coolcat-creations
coolcat-creations - comment - 17 Jul 2018

I have tested this item successfully on 421fa33


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

avatar franz-wohlkoenig franz-wohlkoenig - change - 17 Jul 2018
Status Pending Ready to Commit
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 17 Jul 2018

Ready to Commit after two successful tests.

avatar mbabker mbabker - change - 21 Jul 2018
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2018-07-21 01:06:16
Closed_By mbabker
Labels Added: ?
avatar mbabker mbabker - close - 21 Jul 2018
avatar mbabker mbabker - merge - 21 Jul 2018

Add a Comment

Login with GitHub to post a comment