CRM-15667 - Fix invalid selector column values for Unsubscribe Requests.
authorDave Greenberg <dave@civicrm.org>
Mon, 1 Dec 2014 19:57:53 +0000 (14:57 -0500)
committerDave Greenberg <dave@civicrm.org>
Mon, 1 Dec 2014 19:57:53 +0000 (14:57 -0500)
----------------------------------------
* CRM-15667:
  https://issues.civicrm.org/jira/browse/CRM-15667

CRM/Mailing/Event/BAO/Unsubscribe.php

index 75724efbc2871432e988f8025d3693ac3c83f58e..d252266132c848bab84b8f54b5410db272521337 100644 (file)
@@ -559,7 +559,8 @@ WHERE  email = %2
       $results[] = array(
         'name' => "<a href=\"$url\">{$dao->display_name}</a>",
         'email' => $dao->email,
-        'org' => $dao->org_unsubscribe ? ts('Yes') : ts('No'),
+        // Next value displays in selector under either Unsubscribe OR Optout column header, so always s/b Yes.
+        'unsubOrOptout' => ts('Yes'),
         'date' => CRM_Utils_Date::customFormat($dao->date),
       );
     }