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 almost 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 #1

Updated by Markus Klein almost 10 years ago

  • Project changed from 534 to TYPO3 Core
  • Target version deleted (Extbase 6.1)
Actions #2

Updated by Markus Klein almost 10 years ago

  • Category set to Extbase
  • Is Regression set to No
  • TYPO3 Version set to 6.1
Actions #3

Updated by Alexander Opitz over 8 years ago

  • 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)?

Actions #4

Updated by Jan Roth over 8 years ago

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.

Actions #5

Updated by Alexander Opitz almost 8 years ago

  • Status changed from Needs Feedback to New
Actions #6

Updated by Susanne Moog about 4 years ago

  • 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?

Actions #7

Updated by Riccardo De Contardi about 3 years ago

  • 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.

Actions

Also available in: Atom PDF