make properties protected to get accessed by CRM_Core_Form::getVar()
authorSandor Semsey <sandor@es-progress.hu>
Mon, 3 Jul 2023 14:33:02 +0000 (16:33 +0200)
committerSandor Semsey <sandor@es-progress.hu>
Mon, 3 Jul 2023 14:33:02 +0000 (16:33 +0200)
CRM/Mailing/Form/Optout.php
CRM/Mailing/Form/Unsubscribe.php

index 0ffd5f297570cd56a532d79c3e73e6930d4fb037..784fab4be4620e9d80a3bf8c92a1a2e57c8106d0 100644 (file)
@@ -27,22 +27,22 @@ class CRM_Mailing_Form_Optout extends CRM_Core_Form {
   /**
    * @var int
    */
-  private $_job_id;
+  protected $_job_id;
 
   /**
    * @var int
    */
-  private $_queue_id;
+  protected $_queue_id;
 
   /**
    * @var string
    */
-  private $_hash;
+  protected $_hash;
 
   /**
    * @var string
    */
-  private $_email;
+  protected $_email;
 
   public function preProcess() {
     $this->_job_id = $job_id = CRM_Utils_Request::retrieve('jid', 'Integer', $this);
index 7b3df693e7f1f34b14ba864d6e4c028da881ef61..36fb63a1525e57b7718070716134c2e270714533 100644 (file)
@@ -27,22 +27,22 @@ class CRM_Mailing_Form_Unsubscribe extends CRM_Core_Form {
   /**
    * @var int
    */
-  private $_job_id;
+  protected $_job_id;
 
   /**
    * @var int
    */
-  private $_queue_id;
+  protected $_queue_id;
 
   /**
    * @var string
    */
-  private $_hash;
+  protected $_hash;
 
   /**
    * @var string
    */
-  private $_email;
+  protected $_email;
 
   public function preProcess() {
     $this->_job_id = $job_id = CRM_Utils_Request::retrieve('jid', 'Integer', $this);