Skip to content

Commit

Permalink
Event Registration - Treat omission-by-unset and omission-by-blank-st…
Browse files Browse the repository at this point in the history
…ring as the same problem
  • Loading branch information
totten committed Jan 26, 2023
1 parent e51e891 commit 06ef626
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CRM/Event/Form/ManageEvent/Registration.php
Original file line number Diff line number Diff line change
Expand Up @@ -441,13 +441,13 @@ public function addRules() {
public static function formRule($values, $files, $form) {
if (!empty($values['is_online_registration'])) {

if (!$values['registration_link_text']) {
if (($values['registration_link_text'] ?? '') === '') {
$errorMsg['registration_link_text'] = ts('Please enter Registration Link Text');
}
if (!$values['confirm_title']) {
if (($values['confirm_title'] ?? '') === '') {
$errorMsg['confirm_title'] = ts('Please enter a Title for the registration Confirmation Page');
}
if (!$values['thankyou_title']) {
if (($values['thankyou_title'] ?? '') === '') {
$errorMsg['thankyou_title'] = ts('Please enter a Title for the registration Thank-you Page');
}
if ($values['is_email_confirm']) {
Expand Down

0 comments on commit 06ef626

Please sign in to comment.