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

TOPIC:

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

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

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

Last edit: by Tomaselli.

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

  • admin
  • admin's Avatar
  • Offline
  • Administrator
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 986
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

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

Last edit: by admin.
  • Page:
  • 1
Time to create page: 0.090 seconds

Freakin' Awesome!!! J-Cook is simply awesome - whether you're a highly experienced developer or complete novice whether you're building a small inventory component or a complete community solution! The beauty comes from a fast slick and reliable platform that readily provides developers with everything they'll need to build the backbone of a solid and secure component with wizards for authoring access publishing aliasing created/modified by dates... you name it COOK provides it! J-Cook really surpasses all of the 'competition' as far as MVC tools are concerned! Try love it and get cooking!
learnthrusong (JED)
          

Get Started