diff options
author | Christopher Burger <burgerc@freeside.biz> | 2019-01-09 20:19:26 -0500 |
---|---|---|
committer | Christopher Burger <burgerc@freeside.biz> | 2019-01-09 20:19:26 -0500 |
commit | d03d9432be02de2abb9ff3d978ad1bdd67ea89d9 (patch) | |
tree | 054d18941aa70d4e35e382694b36184fae8655db /httemplate/edit/elements/edit.html | |
parent | 057fc61586d26199005660b908ece68a7a1da681 (diff) |
RT# 81249 - Fixed error where empty field becomes 0.
Diffstat (limited to 'httemplate/edit/elements/edit.html')
-rw-r--r-- | httemplate/edit/elements/edit.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/httemplate/edit/elements/edit.html b/httemplate/edit/elements/edit.html index 5e7b30674..53f68cac5 100644 --- a/httemplate/edit/elements/edit.html +++ b/httemplate/edit/elements/edit.html @@ -823,13 +823,13 @@ Example: % ## set extra field values for validation. ie price plan fields % my $extra_fields_to_validate = $opt{'extra_fields_validate'}; % my %validate_error_messages = ( -% 'digits' => 'Please only enter numbers here.', -% 'email' => 'Please enter a valid email here.', +% 'digits: true' => 'Please only enter numbers here.', +% 'email: true' => 'Please enter a valid email here.', % ); % foreach my $extra_fields (keys %$extra_fields_to_validate) { % my $validate_type = $extra_fields_to_validate->{$extra_fields}; -% $js_form_validate->{edit_topform}->{validate_fields}{$extra_fields} = $validate_type.': true'; -% $js_form_validate->{edit_topform}->{error_message}{$extra_fields} = $validate_error_messages{$validate_type}; +% $js_form_validate->{edit_topform}->{validate_fields}{$extra_fields} = $validate_type; +% $js_form_validate->{edit_topform}->{error_message}{$extra_fields} = $validate_error_messages{$validate_type}; % } % unless ($opt{'embed'}) { |