Skip to content

Commit

Permalink
Merge pull request #27191 from colemanw/removeDateFields
Browse files Browse the repository at this point in the history
CRM_Core_Form - Remove unused protected properties
  • Loading branch information
eileenmcnaughton authored Aug 28, 2023
2 parents 708cb1a + eaf203a commit de7770d
Showing 1 changed file with 1 addition and 24 deletions.
25 changes: 1 addition & 24 deletions CRM/Core/Form.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,36 +114,13 @@ class CRM_Core_Form extends HTML_QuickForm_Page {
*/
protected $_paymentProcessorID;

/**
* Is pay later enabled for the form.
*
* As part of trying to consolidate various payment pages we store processors here & have functions
* at this level to manage them. An alternative would be to have a separate Form that is inherited
* by all forms that allow payment processing.
*
* @var int
*/
protected $_is_pay_later_enabled;

/**
* The renderer used for this form
*
* @var object
*/
protected $_renderer;

/**
* An array to hold a list of datefields on the form
* so that they can be converted to ISO in a consistent manner
*
* @var array
*
* e.g on a form declare $_dateFields = array(
* 'receive_date' => array('default' => 'now'),
* );
*/
protected $_dateFields = [];

/**
* Cache the smarty template for efficiency reasons
*
Expand Down Expand Up @@ -2467,7 +2444,7 @@ protected function setContactID() {
* @return int
* @throws \CRM_Core_Exception
*/
public function getRequestedContactID(): ?int {
public function getRequestedContactID(): ?int {
if (isset($this->_params) && !empty($this->_params['select_contact_id'])) {
return (int) $this->_params['select_contact_id'];
}
Expand Down

0 comments on commit de7770d

Please sign in to comment.