Ticket #192 (closed defect: fixed)
patForm element Text validates always "allowedtags" also when it is not set!
| Reported by: | m.hauck@… | Owned by: | gerd |
|---|---|---|---|
| Priority: | normal | Milestone: | v0.9.0 stable |
| Component: | patForms | Version: | 0.9.0a2 |
| Severity: | major | Keywords: | |
| Cc: |
Description
patForm element Text validates always "allowedtags" also when it is not set! To avoid the unwanted validation, I removed the default value in the attributeDefinition array in Text.php for the allowedTags attribute. Then I added an additional if-clause before the tag validation:
if( isset($this->attributes['allowedtags']) ){
Now, when allowedTags is not set, it won't validate for them. And when set to (empty string) it allows no tags,....
I hope I could help you.
Greets Marti
Change History
Note: See
TracTickets for help on using
tickets.
