Skip to content

Commit

Permalink
Revert #19977: Plugins field behavior (#20293)
Browse files Browse the repository at this point in the history
  • Loading branch information
SharkyKZ authored and HLeithner committed May 14, 2019
1 parent 4d7afdc commit 3faf9a7
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions libraries/joomla/form/fields/plugins.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,21 +163,4 @@ protected function getOptions()

return array_merge($parentOptions, $options);
}

/**
* Method to get input and also set field readonly.
*
* @return string The field input markup.
*
* @since 3.8.7
*/
protected function getInput()
{
if (count($this->options) === 1 && $this->options[0]->text === JText::_('JOPTION_DO_NOT_USE'))
{
$this->readonly = true;
}

return parent::getInput();
}
}

0 comments on commit 3faf9a7

Please sign in to comment.