From e67799160b91d648fdfb33d27e35eb3afe641ba4 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Sun, 19 Apr 2015 21:45:10 -0400 Subject: [PATCH] Get rid of unnecessary popup message when saving profile fields --- CRM/UF/Form/Field.php | 1 - tests/phpunit/WebTest/Profile/ProfileGroupSubscriptionTest.php | 1 - tests/phpunit/WebTest/Profile/SearchTest.php | 2 -- 3 files changed, 4 deletions(-) diff --git a/CRM/UF/Form/Field.php b/CRM/UF/Form/Field.php index da2eb17801..b4ab34c0ee 100644 --- a/CRM/UF/Form/Field.php +++ b/CRM/UF/Form/Field.php @@ -599,7 +599,6 @@ class CRM_UF_Form_Field extends CRM_Core_Form { $session = CRM_Core_Session::singleton(); if ($buttonName == $this->getButtonName('next', 'new')) { - CRM_Core_Session::setStatus(ts(' You can add another profile field.'), '', 'info'); $session->replaceUserContext(CRM_Utils_System::url('civicrm/admin/uf/group/field/add', "reset=1&action=add&gid={$this->_gid}&sbr={$showBestResult}" )); diff --git a/tests/phpunit/WebTest/Profile/ProfileGroupSubscriptionTest.php b/tests/phpunit/WebTest/Profile/ProfileGroupSubscriptionTest.php index a3a4416190..dbbf499fdf 100644 --- a/tests/phpunit/WebTest/Profile/ProfileGroupSubscriptionTest.php +++ b/tests/phpunit/WebTest/Profile/ProfileGroupSubscriptionTest.php @@ -87,7 +87,6 @@ class WebTest_Profile_ProfileGroupSubscriptionTest extends CiviSeleniumTestCase //click on save $this->click('_qf_Field_next_new-top'); $this->waitForText('crm-notification-container', "Your CiviCRM Profile Field 'Email' has been saved to '$profileTitle'."); - $this->waitForText('crm-notification-container', 'You can add another profile field.'); //Add email field to profile $this->click('field_name[0]'); diff --git a/tests/phpunit/WebTest/Profile/SearchTest.php b/tests/phpunit/WebTest/Profile/SearchTest.php index cce9205777..1f3cebe803 100644 --- a/tests/phpunit/WebTest/Profile/SearchTest.php +++ b/tests/phpunit/WebTest/Profile/SearchTest.php @@ -81,7 +81,6 @@ class WebTest_Profile_SearchTest extends CiviSeleniumTestCase { $this->click('_qf_Field_next_new-bottom'); //check for field add $this->waitForText('crm-notification-container', "Your CiviCRM Profile Field 'Last Name' has been saved to '$profileTitle'."); - $this->waitForText('crm-notification-container', 'You can add another profile field.'); // Add Email field. $this->click('field_name[0]'); @@ -97,7 +96,6 @@ class WebTest_Profile_SearchTest extends CiviSeleniumTestCase { $this->click('_qf_Field_next_new-bottom'); //check for field add $this->waitForText('crm-notification-container', "Your CiviCRM Profile Field 'Email' has been saved to '$profileTitle'."); - $this->waitForText('crm-notification-container', 'You can add another profile field.'); // Add Sample Custom Field. $this->click('field_name[0]'); -- 2.25.1