From 9bd3e0751256f3360134905b5a458dc2d58c74a5 Mon Sep 17 00:00:00 2001 From: larssandergreen Date: Wed, 17 May 2023 10:17:51 -0600 Subject: [PATCH] Remove form rule for titles preventing / --- CRM/Contribute/Form/ContributionPage/Settings.php | 4 ---- CRM/Event/Form/ManageEvent/EventInfo.php | 5 ----- 2 files changed, 9 deletions(-) diff --git a/CRM/Contribute/Form/ContributionPage/Settings.php b/CRM/Contribute/Form/ContributionPage/Settings.php index b6991b9fdf03..bad15a145c1e 100644 --- a/CRM/Contribute/Form/ContributionPage/Settings.php +++ b/CRM/Contribute/Form/ContributionPage/Settings.php @@ -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'])) { diff --git a/CRM/Event/Form/ManageEvent/EventInfo.php b/CRM/Event/Form/ManageEvent/EventInfo.php index b25808953022..ae762f2a8297 100644 --- a/CRM/Event/Form/ManageEvent/EventInfo.php +++ b/CRM/Event/Form/ManageEvent/EventInfo.php @@ -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; }