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:
parent
138eb3140c
commit
077f29fff0
4 changed files with 16 additions and 15 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue