View Issue Details

IDProjectCategoryView StatusLast Update
0000307Adventure PHP FrameworkCode-Verbesserung // Code improvementpublic2016-08-13 14:18
ReporterChristianAchatzAssigned ToChristianAchatz 
PrioritynormalSeverityfeatureReproducibilityN/A
Status resolvedResolutionfixed 
Product Version3.2 
Target Version3.3Fixed in Version3.3 
Summary0000307: Allow manipulation of field visibility to be reflected in form validation
DescriptionScenario:
- Form including a field within a template checked by a mandatory validator.
- Within controller field is hidden via form control API

Expected:
Form is valid even though field is not sent along

Actual:
Form is invalid since validator is executed onParseTime() already and thus does not recognize visibility manipulated later on.

Within this issue the validation should be adapted to support above use case.
TagsNo tags attached.
Codereferenz: ([Datei]:[Zeile])
Namespacetools

Activities

ChristianAchatz

2016-08-03 21:47

administrator   ~0000738

- Added Unit Tests (see changes under https://github.com/AdventurePHP/code/commit/6cfef393553b6b89adea0a0a913d731e13b6f4d5)
- Changed implementation (see changes under https://github.com/AdventurePHP/code/commit/3427071e8cfdd28be383a7bcb3078ed400ff03a6)

==> Documentation for hidden=true and optional=true features outstanding.

ChristianAchatz

2016-08-13 14:17

administrator   ~0000739

Documentation updated. See changes under https://github.com/AdventurePHP/docs/commit/4857edc0311ad4088035c6a0b091eeddb1e50a80.

Updated Unit Tests for optional validation for SelectBoxTag and corrected implementation to overwrite isValid() instead of addValidator().

Issue History

Date Modified Username Field Change
2016-08-03 21:34 ChristianAchatz New Issue
2016-08-03 21:34 ChristianAchatz Status new => assigned
2016-08-03 21:34 ChristianAchatz Assigned To => ChristianAchatz
2016-08-03 21:47 ChristianAchatz Note Added: 0000738
2016-08-13 14:17 ChristianAchatz Note Added: 0000739
2016-08-13 14:18 ChristianAchatz Status assigned => resolved
2016-08-13 14:18 ChristianAchatz Fixed in Version => 3.3
2016-08-13 14:18 ChristianAchatz Resolution open => fixed