Bug #58301
closed
Object values from checkboxes and radio buttons not present for checked attribute after failing model validation
Added by Uwe Michelfelder over 10 years ago.
Updated almost 4 years ago.
Description
After an object gets used in a form, which was not properly validated through domain model validators, e.g. NotEmpty, all the values for radio and checkbox fields are not present anymore for using the checked attribute.
As workaround I use following lines of code in den the newAction / editAction inside the controller:
if($this->request->getOriginalRequest()) {
$domainObject = $this->request->getOriginalRequest()->getArguments()['domainObjet'];
$this->view->assign('domainObject', $domainObject);
}
- Project changed from 534 to TYPO3 Core
- Target version deleted (
Extbase 6.1)
- Category set to Extbase
- Is Regression set to No
- TYPO3 Version set to 6.1
- Status changed from New to Needs Feedback
Hi,
as this issue is very old. Does the problem still exists within newer versions of TYPO3 CMS (6.2.15 or 7.6.0)?
Hello,
I have this problem in the following scenario under TYPO3 6.2:
Radiobox with isObjectAccessorMode => false
There is no handling for "checked" in the radioViewHelper in case of validation-Error
I think that's the same in checkBoxViewHelper.
- Status changed from Needs Feedback to New
- Status changed from New to Needs Feedback
From the code there is a part that takes care of mapping errors and setting checked value from last known data - can someone confirm that this issue is fixed?
- Status changed from Needs Feedback to Closed
No feedback since the last 90 days => closing this issue.
If you think that this is the wrong decision or experience the issue again and have more information about how to reproduce your problem, please reopen it or open a new issue with a reference to this one.
Thank you and best regards.
Also available in: Atom
PDF