From bf451c7c3379b42292f650519edcfd95003fbf72 Mon Sep 17 00:00:00 2001
From: Fernando Faria <fernandomgf@gmail.com>
Date: Mon, 19 Sep 2016 16:27:00 +0100
Subject: [PATCH] Get original comparison value use the wrong operator. And the
 operator "contains string" is missing

---
 .../Generic/FieldValueChangeComparison.php                    | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/CRM/CivirulesConditions/Generic/FieldValueChangeComparison.php b/CRM/CivirulesConditions/Generic/FieldValueChangeComparison.php
index ecb8439..6e713df 100644
--- a/CRM/CivirulesConditions/Generic/FieldValueChangeComparison.php
+++ b/CRM/CivirulesConditions/Generic/FieldValueChangeComparison.php
@@ -20,13 +20,14 @@ abstract class CRM_CivirulesConditions_Generic_FieldValueChangeComparison extend
    * @access protected
    */
   protected function getOriginalComparisonValue() {
-    switch ($this->getOperator()) {
+    switch ($this->getOriginalOperator()) {
       case '=':
       case '!=':
       case '>':
       case '>=':
       case '<':
       case '<=':
+      case 'contains string':
         $key = 'original_value';
         break;
       case 'is one of':
@@ -60,6 +61,7 @@ abstract class CRM_CivirulesConditions_Generic_FieldValueChangeComparison extend
       case '>=':
       case '<':
       case '<=':
+      case 'contains string':
         $key = 'value';
         break;
       case 'is one of':
-- 
GitLab