fix qill typo
authordemeritcowboy <demeritcowboy@hotmail.com>
Sun, 2 Aug 2020 18:21:54 +0000 (14:21 -0400)
committerdemeritcowboy <demeritcowboy@hotmail.com>
Sun, 2 Aug 2020 18:21:54 +0000 (14:21 -0400)
CRM/Case/BAO/Query.php
tests/phpunit/CRM/Case/BAO/QueryTest.php

index f1ab5119a47770ebf8c8db5a1f3de36e963317bf..7d793b6afc4af48826875324e57a90319d7207ad 100644 (file)
@@ -376,7 +376,7 @@ class CRM_Case_BAO_Query extends CRM_Core_BAO_Query {
         }
 
         $query->_where[$grouping][] = CRM_Contact_BAO_Query::buildClause("case_activity.status_id", $op, $value, 'Int');
-        $query->_qill[$grouping][] = ts("Activity Type %1 %2", [1 => $op, 2 => $names]);
+        $query->_qill[$grouping][] = ts("Activity Status %1 %2", [1 => $op, 2 => $names]);
         $query->_tables['case_activity'] = $query->_whereTables['case_activity'] = 1;
         $query->_tables['civicrm_case'] = $query->_whereTables['civicrm_case'] = 1;
         $query->_tables['case_activity_status'] = 1;
index 1a4cc92cd6af7e5ebf0eb6c2f5c8403ea4513fff..da5573ad382523216394f506c86a92c94f6c93a4 100644 (file)
@@ -22,9 +22,6 @@ class CRM_Case_BAO_QueryTest extends CiviUnitTestCase {
    * CRM-17120 check the qill is still calculated after changing function used
    * to retrieve function.
    *
-   * Note that the Qill doesn't actually appear to have the correct labels to
-   * start with. I didn't attempt to fix that. I just prevented regression.
-   *
    * I could not find anyway to actually do this search with the relevant fields
    * as parameters & don't know if they exist as legitimate code or code cruft so
    * this test was the only way I could verify the change.
@@ -61,7 +58,7 @@ class CRM_Case_BAO_QueryTest extends CiviUnitTestCase {
     $this->assertEquals(
       [
         0 => 'Activity Type = Contribution',
-        1 => 'Activity Type = Scheduled',
+        1 => 'Activity Status = Scheduled',
         2 => 'Activity Medium = In Person',
       ],
       $queryObj->_qill[1]