Ticket #192 (closed defect: fixed)

Opened 8 years ago

Last modified 8 years ago

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

comment:1 Changed 8 years ago by schst

  • Owner changed from argh to gerd
  • Milestone changed from none to v0.9.0 stable

comment:2 Changed 8 years ago by gerd

  • Status changed from new to closed
  • Resolution set to fixed

Reviewed behaviour of attribute "allowedtags". In combination with "deniedtags", the problem should be fixed.

Note: See TracTickets for help on using tickets.