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.230 seconds
Great UX great performance and definitely a time saver. It only took me 10 minutes of playing around before purchasing a subscription and right now I just want to throw more money at you! I just started a new project and after just 4h I can already tell it probably saved me several days of work. I'm building a wholesale ordering system with sales rep management. I have not looked at the code yet but so far: impressive.
flip (Forum)

Get Started