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.069 seconds

  Merci d'avoir présenté ce service web générateur de composant joomla. L'interface est très conviviale on a le plaisir du drag&drop et c'est assez rare pour être signalé. Je souhaite que ce projet connaisse un fort succès votre réalisation est méritante.
Yann Gomiero (AFUJ - France)

Get Started