Skip to content
Snippets Groups Projects
Commit a8484fe0 authored by Erik Hommel's avatar Erik Hommel
Browse files

fix aivl issue 396 with specific amount operator

parent de370de7
No related branches found
No related tags found
No related merge requests found
......@@ -124,8 +124,8 @@ class CRM_CivirulesConditions_Contribution_SpecificAmount extends CRM_Civirules_
* @return string
* @access protected
*/
private function setOperator() {
switch ($this->conditionParams['count_operator']) {
private function setOperator($operator) {
switch ($operator) {
case 1:
return "!=";
break;
......@@ -192,7 +192,7 @@ class CRM_CivirulesConditions_Contribution_SpecificAmount extends CRM_Civirules_
*/
public function userFriendlyConditionParams() {
$operator = null;
$countOperator = $this->setOperator();
$countOperator = $this->setOperator($this->conditionParams['count_operator']);
$countType = $this->setCountType();
$formattedString = 'Number of '.$countType.' '.$countOperator.' '.$this->conditionParams['no_of_contributions'];
if (!empty($this->conditionParams['financial_type'])) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment