Welcome, Guest
Username: Password: Remember me

TOPIC: [FIXED] Backend EDIT forms not showing saved data

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

  • cefnllys
  • cefnllys's Avatar
  • Offline
  • Premium Member
  • Posts: 102
  • Thank you received: 5
  • Karma: 1
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
The administrator has disabled public write access.

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

  • recalls74
  • recalls74's Avatar
  • Offline
  • New Member
  • Posts: 2
  • Thank you received: 1
  • Karma: 0
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:
The administrator has disabled public write access.

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

  • recalls74
  • recalls74's Avatar
  • Offline
  • New Member
  • Posts: 2
  • Thank you received: 1
  • Karma: 0
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
Last Edit: 16 Dec 2012 05:04 by recalls74.
The administrator has disabled public write access.
The following user(s) said Thank You: admin

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

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

Sorry.
Coding is now a piece of cake
The administrator has disabled public write access.
The following user(s) said Thank You: JoomGuy
Time to create page: 0.073 seconds

Get Started