Skip to content

Commit

Permalink
Merge pull request #26249 from larssandergreen/Remove-old-form-rule-o…
Browse files Browse the repository at this point in the history
…n-/-in-page-titles-for-paypal

Remove form rule for Contribution Page and Event titles preventing /
  • Loading branch information
demeritcowboy committed May 17, 2023
2 parents 9726960 + 9bd3e07 commit 9c47fc3
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
4 changes: 0 additions & 4 deletions CRM/Contribute/Form/ContributionPage/Settings.php
Expand Up @@ -234,10 +234,6 @@ public function buildQuickForm() {
public static function formRule($values, $files, $self) {
$errors = [];
$contributionPageId = $self->_id;
//CRM-4286
if (strstr($values['title'], '/')) {
$errors['title'] = ts("Please do not use '/' in Title");
}

// ensure on-behalf-of profile meets minimum requirements
if (!empty($values['is_organization'])) {
Expand Down
5 changes: 0 additions & 5 deletions CRM/Event/Form/ManageEvent/EventInfo.php
Expand Up @@ -208,11 +208,6 @@ public static function formRule($values) {
$errors[$validateDates['key']] = $validateDates['message'];
}

//CRM-4286
if (strstr($values['title'], '/')) {
$errors['title'] = ts("Please do not use '/' in Event Title.");
}

return $errors;
}

Expand Down

0 comments on commit 9c47fc3

Please sign in to comment.