Ticket #192 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

patForm element Text validates always "allowedtags" also when it is not set!

Reported by: m.hauck@onlinehome.de Assigned to: 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

08/22/05 11:39:58 changed by schst

  • owner changed from argh to gerd.
  • milestone changed from none to v0.9.0 stable.

09/07/05 09:05:31 changed 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.