Issue Bug Closed

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

Uwe Michelfelder 04/28/14, 21:03 updated 02/06/21, 20:59

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

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.