?
avatar Denitz
Denitz
22 Jun 2017

Steps to reproduce the issue

Create custom field extended from JFormFieldCheckboxes and add multiple options with disabled option in the middle of options.

Or test with XML:

<field name="test" type="checkboxes">
	<option value="1">1</option>
	<option value="2" disabled="true">2</option>
	<option value="3">3</option>
</field>

Expected result

Only 2nd checkbox is disabled.

Actual result

2nd and 3rd checkboxes are disabled.

System information (as much as possible)

As usual.

Additional comments

/layout/joomla/form/field/checkboxes.php:

The idea is to not use previous/field-specific 'disabled' attribute if there are more than 1 option.

avatar Denitz Denitz - open - 22 Jun 2017
avatar joomla-cms-bot joomla-cms-bot - change - 22 Jun 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 22 Jun 2017
avatar brianteeman
brianteeman - comment - 22 Jun 2017

@Denitz you dont need to create an issue if you are going to immediately create a pull request

Please update #16811 with the description from your post here

avatar brianteeman brianteeman - change - 22 Jun 2017
Status New Closed
Closed_Date 0000-00-00 00:00:00 2017-06-22 10:51:56
Closed_By brianteeman
avatar brianteeman brianteeman - close - 22 Jun 2017

Add a Comment

Login with GitHub to post a comment