From 92d6c5f54acd03a458b3283fecd21601c4625a72 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Sun, 16 Nov 2014 18:59:16 -0500 Subject: [PATCH] CRM-15603 - Tame punctuation of 'This event is full!!!' --- CRM/Event/BAO/Participant.php | 4 ++-- tests/phpunit/CRM/Event/BAO/ParticipantTest.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CRM/Event/BAO/Participant.php b/CRM/Event/BAO/Participant.php index ae042dab04..cfb52f7f7d 100644 --- a/CRM/Event/BAO/Participant.php +++ b/CRM/Event/BAO/Participant.php @@ -406,7 +406,7 @@ class CRM_Event_BAO_Participant extends CRM_Event_DAO_Participant { INNER JOIN civicrm_event event ON ( event.id = participant.event_id ) {$whereClause}"; - $eventFullText = ts('This event is full!!!'); + $eventFullText = ts('This event is full.'); $participants = CRM_Core_DAO::executeQuery($query, $eventParams); while ($participants->fetch()) { //oops here event is full and we don't want waiting count. @@ -433,7 +433,7 @@ INNER JOIN civicrm_event event ON ( event.id = participant.event_id ) {$whereClause}"; $eventMaxSeats = NULL; - $eventFullText = ts('This event is full !!!'); + $eventFullText = ts('This event is full.'); $participants = CRM_Core_DAO::executeQuery($query, $eventParams); while ($participants->fetch()) { if ($participants->event_full_text) { diff --git a/tests/phpunit/CRM/Event/BAO/ParticipantTest.php b/tests/phpunit/CRM/Event/BAO/ParticipantTest.php index 4d37a6630c..0b142eeff5 100644 --- a/tests/phpunit/CRM/Event/BAO/ParticipantTest.php +++ b/tests/phpunit/CRM/Event/BAO/ParticipantTest.php @@ -170,7 +170,7 @@ class CRM_Event_BAO_ParticipantTest extends CiviUnitTestCase { $participantId = Participant::create($this->_contactId, $this->_eventId); $eventFull = CRM_Event_BAO_Participant::eventFull($this->_eventId); - $this->assertEquals($eventFull, 'This event is full !!!', 'Checking if Event is full.'); + $this->assertEquals($eventFull, 'This event is full.', 'Checking if Event is full.'); Participant::delete($participantId); Contact::delete($this->_contactId); -- 2.25.1