Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

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

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 following user(s) said Thank You: admin

Please Log in or Create an account to join the conversation.

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

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

I will fix that soon.
Coding is now a piece of cake

Please Log in or Create an account to join the conversation.

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

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
Fixed.
Coding is now a piece of cake
The following user(s) said Thank You: Romkabouter

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.191 seconds
  I still don't believe he can really be human to do all this ! From all of the forums that I've ever participated in this is certainly the one that most encapsulates the feeling of being truly open source where everyone's opinions and contributions can and will shape the development of the service! It's truly awesome! Hope you enjoy cooking and look forward to reading and contributing to any of the editorial work that you proposed too!! Thanks
Gez (audibleid - JED)

Get Started