Bug #41525

Fields Validated in Controller not highlightet, just Error shown

Added by Martin Ebeling almost 3 years ago. Updated over 2 years ago.

Status:Closed Start date:2012-10-02
Priority:Should have Due date:
Assigned To:Christian Müller % Done:

100%

Category:-
Target version:-
Affected Flow version:FLOW3 1.1.0

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.

History

#1 Updated by Martin Ebeling almost 3 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 over 2 years ago

  • Status changed from New to Closed

Also available in: Atom PDF