Skip to content

Commit

Permalink
Merge pull request #16434 from eileenmcnaughton/cont_form_settings
Browse files Browse the repository at this point in the history
[REF] Remove unused variable
  • Loading branch information
seamuslee001 authored Jan 31, 2020
2 parents fd4aac2 + 4252f46 commit 44a6c3e
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions CRM/Admin/Form/Setting.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,6 @@ class CRM_Admin_Form_Setting extends CRM_Core_Form {
public function setDefaultValues() {
if (!$this->_defaults) {
$this->_defaults = [];
$formArray = ['Component', 'Localization'];
$formMode = FALSE;
if (in_array($this->_name, $formArray)) {
$formMode = TRUE;
}

$this->setDefaultsForMetadataDefinedFields();

// @todo these should be retrievable from the above function.
Expand All @@ -54,6 +48,8 @@ public function setDefaultValues() {

/**
* Build the form object.
*
* @throws \CRM_Core_Exception
*/
public function buildQuickForm() {
CRM_Core_Session::singleton()->pushUserContext(CRM_Utils_System::url('civicrm/admin', 'reset=1'));
Expand Down

0 comments on commit 44a6c3e

Please sign in to comment.