Welcome, Guest
Username: Password: Remember me

TOPIC: [FIXED] JDOM: wrong ID input file current

JDOM: wrong ID input file current 18 Sep 2013 08:54 #11105

  • Tomaselli
  • Tomaselli's Avatar
  • Online
  • Elite Member
  • Posts: 293
  • Thank you received: 87
  • Karma: 46
on file com_component\admin\dom\html\form\input\file\default.php at line 97 and around 233:
		//Current value is important for the removing features features ()
		$htmlHiddenCurrent = JDom::_('html.form.input.hidden', array(
			'dataValue' => $this->dataValue,
			'dataKey' => $this->getInputName('current'),
			'formControl' => $this->formControl,
		));
it generates an id like: jform_jform[myfield-current]

to generate a more standard ID like jform_myfield-current
the code should be:
		//Current value is important for the removing features features ()
		$htmlHiddenCurrent = JDom::_('html.form.input.hidden', array(
			'dataValue' => $this->dataValue,
			'domId' => $this->getInputId('current'), /* hack */
			'domName' => $this->getInputName('current'), /* hack */
			'formControl' => $this->formControl,
		));
Last Edit: 18 Sep 2013 13:53 by Tomaselli.
The administrator has disabled public write access.
The following user(s) said Thank You: admin

JDOM: wrong ID input file current 23 Sep 2013 17:44 #11151

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 987
  • Karma: 140
Thank you very much.... Again.
Always Karma++ when code is fixed by user.

I hope you will like the new version 2.6

EDIT : I mean... FIXED !
Coding is now a piece of cake
Last Edit: 23 Sep 2013 17:45 by admin.
The administrator has disabled public write access.
Time to create page: 0.069 seconds

Get Started