Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions administrator/components/com_content/models/fields/voteradio.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,21 @@ class JFormFieldVoteradio extends JFormFieldRadio
*/
protected $type = 'Voteradio';

/**
* Method to get the field Label.
*
* @return array The field label objects.
*
* @throws \Exception
*
* @since __DEPLOY_VERSION__
*/
public function getLabel()
{
// Requires vote plugin enabled
return JPluginHelper::isEnabled('content', 'vote') ? parent::getLabel() : null;
}

/**
* Method to get the field options.
*
Expand Down