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

TOPIC:

[FIXED] Backend EDIT forms not showing saved data 15 Dec 2012 19:06 #6147

in the backend of my component in the sandbox i have a form view. but when i select to edit an entry using this view the text boxs are not displaying the entries data ready for editing, they are just empty. this is a new problem as this has worked in the past. if i use fly view all the data is displayed its just when i try to use an input text box.

Any help appreciated

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

Re: Backend EDIT forms not showing saved data 16 Dec 2012 04:25 #6149

I confirm texts string data type are not displayed when editing the form, this bug is recent because it worked two days ago back in, the problem is present on the 2.5 beta in Joomla! compatibility in version 1.6,1.7,2.5 it works, thank you to correct bug
ps: translated with google, I hope you understand :sick:

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

Re: Backend EDIT forms not showing saved data 16 Dec 2012 05:01 #6150

Well I find the error by comparing with a former component cook
happens in the /administrator/components/com_your_component/models/fields /cktext.php

Note! This solution is posted on a provisional basis pending a response from the admin

open the file cktext.php

and search the fonction "getInput"
public function getInput()
	{

		$this->input = JDom::_('html.form.input.text', array_merge(array(
				'dataKey' => $this->getOption('name'),
				'domClass' => $this->getOption('class'),
				'formControl' => $this->formControl,
				'size' => $this->getOption('size')
			), $this->jdomOptions));

		return parent::getInput();
	}

replace with
public function getInput()
	{

		$this->input = JDom::_('html.form.input.text', array_merge(array(
				'dataKey' => $this->element['name'],
				'dataValue' => $this->value,
				'domClass' => (isset($this->element['class'])?$this->element['class']:null),
				'formControl' => $this->formControl
			), $this->jdomOptions));

		return parent::getInput();
	}

Well, I hope that the bug will be fixed soon

Good day
The following user(s) said Thank You: admin

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

Last edit: by recalls74.

Re: Backend EDIT forms not showing saved data 16 Dec 2012 09:54 #6151

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

Sorry.
Coding is now a piece of cake
The following user(s) said Thank You: JoomGuy

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

  • Page:
  • 1
Time to create page: 0.124 seconds

Awards for the best Joomla app. This product is gonna win an award for this amazing job. Cook Self Service is the the best application from all over the Joomla universe ! It brings Joomla to a professional level really advanced for developers. It is a real fun to develop with it. The ACL part and security checks implementation are just... so much hours saved. I can now concentrate myself more on the design part and the creative works. Thank you so much. Guys I offer you all my congratulation ! Keep up the works because Joomla is needing it to increase the quality of extensions availables on the JED. I also learned a lot because I can see how to code at the proper place and I found all my answers reading the forum.
lack_hanson (JED)
          

Get Started