Merge pull request #6412 from colemanw/CRM-11369
authorDave Greenberg <dave@civicrm.org>
Thu, 10 Sep 2015 23:06:23 +0000 (16:06 -0700)
committerDave Greenberg <dave@civicrm.org>
Thu, 10 Sep 2015 23:06:23 +0000 (16:06 -0700)
CRM-11369 - Changed to Pending (pay later) and Pending (incomplete transaction)

CRM/Upgrade/Incremental/sql/4.7.alpha1.mysql.tpl
templates/CRM/Event/Form/EventFees.tpl
tests/phpunit/WebTest/Event/AddEventTest.php
xml/templates/civicrm_data.tpl

index 6e83b5981e8362d77d1796dc7de3c4d4be2118a5..37a2a475e8a1ec5df3e7ee8fd4a5f6cea86fce76 100644 (file)
@@ -20,6 +20,10 @@ UPDATE civicrm_option_value SET {localize field="label"}label = 'Activity Detail
 UPDATE civicrm_option_value SET {localize field="label"}label = 'Activity Summary Report'{/localize}
   WHERE value = 'activitySummary' AND option_group_id = @option_group_id_report;
 
+--CRM-11369
+UPDATE civicrm_participant_status_type SET label = {localize field='label'}label = 'Pending (pay later)'{/localize} WHERE name = 'Pending from pay later';
+UPDATE civicrm_participant_status_type SET label = {localize field='label'}label = 'Pending (incomplete transaction)'{/localize} WHERE name = 'Pending from incomplete transaction';
+
 --CRM-16853 PCP Owner Notification
 --CRM-16853 Contribution Invoice Receipt Translation
 
index 07ad4a51ec524af0d848786a5948deb700377a10..1a748e2b2a4fabf9197a49509a6a103e22f76bc2 100644 (file)
 {literal}
   function confirmStatus( pStatusId, cStatusId ) {
      if ( (pStatusId == cj("#status_id").val() ) && (cStatusId == cj("#contribution_status_id").val()) ) {
-         var allow = confirm( '{/literal}{ts escape='js'}The Payment Status for this participant is Completed. The Participant Status is set to Pending from pay later. Click Cancel if you want to review or modify these values before saving this record{/ts}{literal}.' );
+         var allow = confirm( '{/literal}{ts escape='js'}The Payment Status for this participant is Completed. The Participant Status is set to Pending (pay later). Click Cancel if you want to review or modify these values before saving this record{/ts}{literal}.' );
          if ( !allow ) return false;
      }
   }
index ca462963d6602b632b16482a5b6a1eeb19dfc384..bf330f09d793f5a4dbf7b86a1745b15ce8b30141 100644 (file)
@@ -807,7 +807,7 @@ class WebTest_Event_AddEventTest extends CiviSeleniumTestCase {
 
     $this->openCiviPage("event/search?reset=1", "reset=1");
     $this->select2("event_id", $eventTitle, FALSE);
-    $this->multiselect2('participant_status_id', array('Pending from pay later'));
+    $this->multiselect2('participant_status_id', array('Pending (pay later)'));
     $this->clickLink('_qf_Search_refresh');
     $this->waitForElementPresent("xpath=//div[@id='participantSearch']/table/tbody//tr/td[11]/span/a[2][text()='Edit']");
 
@@ -835,7 +835,7 @@ class WebTest_Event_AddEventTest extends CiviSeleniumTestCase {
 
     $this->openCiviPage("event/search?reset=1", "reset=1");
     $this->select2("event_id", $eventTitle, FALSE);
-    $this->multiselect2('participant_status_id', array('Pending from pay later'));
+    $this->multiselect2('participant_status_id', array('Pending (pay later)'));
     $this->clickLink('_qf_Search_refresh');
     $this->waitForElementPresent("xpath=//div[@id='participantSearch']/table/tbody//tr/td[11]/span/a[text()='View']");
     $uRL = $this->getAttribute("xpath=//div[@id='participantSearch']/table/tbody//tr/td[11]/span/a[text()='View']@href");
index 4aa89e632fc360280c338273e9f17fa62284940b..d49ad181a66ea862c05ea11b23ebfc081be5ae38 100644 (file)
@@ -1577,8 +1577,8 @@ INSERT INTO civicrm_participant_status_type
   (2,  'Attended',                            '{ts escape="sql"}Attended{/ts}',                            'Positive', 0,           1,         1,          2,      2            ),
   (3,  'No-show',                             '{ts escape="sql"}No-show{/ts}',                             'Negative', 0,           1,         0,          3,      2            ),
   (4,  'Cancelled',                           '{ts escape="sql"}Cancelled{/ts}',                           'Negative', 1,           1,         0,          4,      2            ),
-  (5,  'Pending from pay later',              '{ts escape="sql"}Pending from pay later{/ts}',              'Pending',  1,           1,         1,          5,      2            ),
-  (6,  'Pending from incomplete transaction', '{ts escape="sql"}Pending from incomplete transaction{/ts}', 'Pending',  1,           1,         0,          6,      2            ),
+  (5,  'Pending from pay later',              '{ts escape="sql"}Pending (pay later){/ts}',                 'Pending',  1,           1,         1,          5,      2            ),
+  (6,  'Pending from incomplete transaction', '{ts escape="sql"}Pending (incomplete transaction){/ts}',    'Pending',  1,           1,         0,          6,      2            ),
   (7,  'On waitlist',                         '{ts escape="sql"}On waitlist{/ts}',                         'Waiting',  1,           0,         0,          7,      2            ),
   (8,  'Awaiting approval',                   '{ts escape="sql"}Awaiting approval{/ts}',                   'Waiting',  1,           0,         1,          8,      2            ),
   (9,  'Pending from waitlist',               '{ts escape="sql"}Pending from waitlist{/ts}',               'Pending',  1,           0,         1,          9,      2            ),