Bug #41525

Fields Validated in Controller not highlightet, just Error shown

Added by Martin Ebeling about 9 years ago. Updated almost 9 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2012-10-02
Due date:
% Done:

100%

Estimated time:

Description

Fields are not highlighted if Validation is at ControllerAction like

/**
  • @param string $name
  • @FLOW3\Validate(argumentName="name", type="NotEmpty")
  • @param string $email
  • @FLOW3\Validate(argumentName="email", type="NotEmpty")
  • @FLOW3\Validate(argumentName="email", type="EmailAddress")
  • @return void
    */
    public function createAction($name, $email) {

Just these errors are shown

[ERROR]
name: 1221560718 : This property is required.
email: 1221560718 : This property is required.
Errors occurred

Please check the highlighted fields below!
[END]

For getting these errors shown in View, I mainly copied the partials from the ConferencePackage

Mainly I tried to have a form where I create an Person, extended to a student class.
The Errors validated in the StudentModel are shown in the form.

Additional to that I need to have PersonName also Validatet, without putting all these fields in the extended personClass.

#1

Updated by Martin Ebeling about 9 years ago

  • % Done changed from 0 to 100

Ok, my fault.

After calling the validation with the variable ("$email", ...) the errors are shown...

I think this can be closed.

#2

Updated by Christian Müller almost 9 years ago

  • Status changed from New to Closed

Also available in: Atom PDF