Fix e-notice on Case/Demographics report so it does not need to be excluded from...
authorEileen McNaughton <eileen@fuzion.co.nz>
Tue, 4 Feb 2014 01:42:40 +0000 (14:42 +1300)
committerEileen McNaughton <eileen@fuzion.co.nz>
Tue, 4 Feb 2014 06:53:00 +0000 (19:53 +1300)
CRM/Report/Form/Case/Demographics.php
tests/phpunit/api/v3/ReportTemplateTest.php

index 2f38aaed3f083d77c817466690df9c462a03948c..c66ff2edbd32751c8edf5a0c6a8fc653c8d04d97 100644 (file)
@@ -68,8 +68,10 @@ class CRM_Report_Form_Case_Demographics extends CRM_Report_Form {
         ),
         'filters' =>
         array(
-          'sort_name' =>
-          array('title' => ts('Contact Name')),
+          'sort_name' => array(
+            'title' => ts('Contact Name'),
+            'operatorType' => CRM_Report_Form::OP_STRING,
+          ),
           'contact_type' =>
           array('title' => ts('Contact Type'),
             'operatorType' => CRM_Report_Form::OP_SELECT,
@@ -321,7 +323,7 @@ where (cg.extends='Contact' OR cg.extends='Individual' OR cg.extends_entity_colu
             $from     = CRM_Utils_Array::value("{$fieldName}_from", $this->_params);
             $to       = CRM_Utils_Array::value("{$fieldName}_to", $this->_params);
 
-            $clause = $this->dateClause($field['dbAlias'], $relative, $from, $to, CRM_Utils_type::T_DATE);
+            $clause = $this->dateClause($field['dbAlias'], $relative, $from, $to, CRM_Utils_Type::T_DATE);
           }
           else {
             $op = CRM_Utils_Array::value("{$fieldName}_op", $this->_params);
index 36fbeb611615fb9b2df74a9d7f3e5c1281947e25..2e0155effb9d4efa87d6647a356c758f589d73ed 100644 (file)
@@ -182,7 +182,6 @@ class api_v3_ReportTemplateTest extends CiviUnitTestCase {
         'contribute/lybunt' => 'same as sybunt - fatals on force url & test identifies why',
         'event/income' => 'I do no understant why but error is Call to undefined method CRM_Report_Form_Event_Income::from() in CRM/Report/Form.php on line 2120',
         'contact/relationship' => '(see contribute/repeat), property declaration issue, Undefined property: CRM_Report_Form_Contact_Relationship::$relationType in /Contact/Relationship.php(486):',
-        'case/demographics' => 'Undefined index: operatorType Case/Demographics.php(319)',
         'activitySummary' => 'Undefined index: group_bys_freq m/ActivitySummary.php(191)',
         'event/incomesummary' => 'Undefined index: title, Report/Form/Event/IncomeCountSummary.php(187)',
         'logging/contact/summary' => '(likely to be test releated) probably logging off Undefined index: Form/Contact/LoggingSummary.php(231): PHP',