Prevent ProfileField fieldNames from containing spaces. They cause problems with JS in some kinds of form fields. Fixes bug #11371.

This commit is contained in:
Colin Kuskie 2010-01-25 11:44:30 -08:00
parent 138eb3140c
commit 077f29fff0
4 changed files with 16 additions and 15 deletions

View file

@ -150,6 +150,7 @@ sub create {
$properties->{fieldType} ||= "ReadOnly";
return undef if $class->exists($session,$fieldName);
return undef if $class->isReservedFieldName($fieldName);
return undef if $fieldName =~ m{\s};
### Data okay, create the field
# Add the record