Ticket #495 (closed defect: fixed)

Opened 20 months ago

Last modified 17 months ago

AgaviNotOperatorValidator - Needs to remove any child errors

Reported by: ross Owned by: dominik
Priority: normal Milestone: 0.11
Component: validation Version: 0.11.0RC4
Severity: normal Keywords:
Cc: Patch attached:

Description

AgaviNotOperatorValidator, should be valid if the child errors.

However, doesn't do any cleaning, so in my action validate function:

$this->container->getValidationManager()->hasErrors();

is True! as the NotOperator Child threw an error.

Added clean up - unfortunately, that means allowing public access to setting the result in the Validation Manager.

Patches incoming...

Attachments

AgaviNotoperatorValidator.patch (0.9 KB) - added by ross 20 months ago.
Patch to clean up any child errors
AgaviValidationManager.patch (2.2 KB) - added by ross 20 months ago.
Added setResult, so the not validator can clean up any child errors

Change History

Changed 20 months ago by ross

Patch to clean up any child errors

Changed 20 months ago by ross

Added setResult, so the not validator can clean up any child errors

Changed 20 months ago by david

changeset:1879 is the first part of a larger fix

Changed 19 months ago by dominik

  • status changed from new to closed
  • resolution set to fixed

(In [1925]) Make the not operator hide all child errors and set the affected fields accordingly closes #495

Add/Change #495 (AgaviNotOperatorValidator - Needs to remove any child errors)

Author



Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.