Hi admin,
I think there is a bug in the ckxref.php field.
When forking and creating a labelField different from "text", the label is not shown.
The code in ckxref.php looks like:
public function getInput()
{
$this->input = JDom::_('html.form.input.select', array_merge(array(
'dataKey' => $this->getOption('name'),
'domClass' => $this->getOption('class'),
'domId' => $this->id,
'domName' => $this->name,
'dataValue' => $this->value,
'multiple' => true,
'responsive' => $this->getOption('responsive'),
'size' => $this->getOption('size', 4, 'int'),
'valueKey' => $this->getOption('valueKey')
), $this->jdomOptions));
return parent::getInput();
}
When adding 'labelKey' => $this->getOption('labelKey') it works as expected:
public function getInput()
{
$this->input = JDom::_('html.form.input.select', array_merge(array(
'dataKey' => $this->getOption('name'),
'domClass' => $this->getOption('class'),
'domId' => $this->id,
'domName' => $this->name,
'dataValue' => $this->value,
'multiple' => true,
'responsive' => $this->getOption('responsive'),
'size' => $this->getOption('size', 4, 'int'),
'valueKey' => $this->getOption('valueKey'),
'labelKey' => $this->getOption('labelKey')
), $this->jdomOptions));
return parent::getInput();
}