Project

General

Profile

Actions

Bug #58301

closed

Object values from checkboxes and radio buttons not present for checked attribute after failing model validation

Added by Uwe Michelfelder about 10 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Extbase
Target version:
-
Start date:
2014-04-28
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.1
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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);
}
Actions

Also available in: Atom PDF