-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changed none selected to none, to be used when there are none availab… #19977
Changes from 3 commits
2cb815c
b281284
0dbff98
24d734c
e0b28b6
bd03d3e
a86a205
3b51282
2e87f79
04ef9f7
b82fdbb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -157,4 +157,21 @@ protected function getOptions() | |
|
||
return array_merge($parentOptions, $options); | ||
} | ||
|
||
/** | ||
* Method to get the field input markup for a generic list. | ||
* Use the multiple attribute to enable multiselect. | ||
* | ||
* @return string The field input markup. | ||
* | ||
* @since __DEPLOY_VERSION__ | ||
*/ | ||
protected function getInput() | ||
{ | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove blank line. |
||
if (count($this->options) === 1 && $this->options[0]->text === JText::_('JOPTION_DO_NOT_USE')) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Move |
||
$this->readonly = true; | ||
} | ||
return parent::getInput(); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add blank line above. |
||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove or update?