Skip to content

Commit

Permalink
Remove added validation rule to prevent user from entering comma in o…
Browse files Browse the repository at this point in the history
…ption value
  • Loading branch information
monishdeb committed Jun 11, 2020
1 parent 71dfa06 commit f9928db
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions CRM/Custom/Form/Field.php
Original file line number Diff line number Diff line change
Expand Up @@ -748,10 +748,6 @@ public static function formRule($fields, $files, $self) {
$errors['option_value[' . $nextIndex . ']'] = ts('Duplicate Option values');
$_flagOption = 1;
}
if (strpos($fields['option_value'][$start], ',') != FALSE) {
$errors['option_value[' . $start . ']'] = ts('You cannot use comma in Option value');
$_flagOption = 1;
}
$nextIndex++;
}
$start++;
Expand Down

0 comments on commit f9928db

Please sign in to comment.