Welcome, Guest
Username: Password: Remember me

TOPIC: [FIXED] labelKey in ckxref?

Bug labelKey in ckxref? 04 Sep 2015 14:52 #13432

  • Romkabouter
  • Romkabouter's Avatar
  • Offline
  • Elite Member
  • Posts: 310
  • Thank you received: 131
  • Karma: 48
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();
	}
The administrator has disabled public write access.
The following user(s) said Thank You: admin

Bug labelKey in ckxref? 04 Sep 2015 16:45 #13433

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
Thank you for the catch.

I will fix that soon.
Coding is now a piece of cake
The administrator has disabled public write access.

Bug labelKey in ckxref? 09 Sep 2015 12:02 #13450

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
Fixed.
Coding is now a piece of cake
The administrator has disabled public write access.
The following user(s) said Thank You: Romkabouter
Time to create page: 0.056 seconds

Get Started