diff --git a/libraries/joomla/form/fields/plugins.php b/libraries/joomla/form/fields/plugins.php index 422c289747a64..328137321aaa0 100644 --- a/libraries/joomla/form/fields/plugins.php +++ b/libraries/joomla/form/fields/plugins.php @@ -157,4 +157,21 @@ protected function getOptions() return array_merge($parentOptions, $options); } + + /** + * Method to get input and also set field readonly. + * + * @return string The field input markup. + * + * @since __DEPLOY_VERSION__ + */ + protected function getInput() + { + if (count($this->options) === 1 && $this->options[0]->text === JText::_('JOPTION_DO_NOT_USE')) + { + $this->readonly = true; + } + + return parent::getInput(); + } }