Skip to content

Commit

Permalink
Merge pull request #13620 from eileenmcnaughton/signuptype
Browse files Browse the repository at this point in the history
[unused code cleanup] Remove unused 'signupType' url support
  • Loading branch information
seamuslee001 authored Feb 19, 2019
2 parents 0ca9d49 + 2e6740e commit edf4615
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 55 deletions.
28 changes: 0 additions & 28 deletions CRM/Activity/Form/Search.php
Original file line number Diff line number Diff line change
Expand Up @@ -322,34 +322,6 @@ public function fixFormValues() {
}
}

// Added for membership search

$signupType = CRM_Utils_Request::retrieve('signupType', 'Positive');

if ($signupType) {
$this->_formValues['activity_role'] = 1;
$this->_defaults['activity_role'] = 1;
$activityTypes = CRM_Core_PseudoConstant::activityType(TRUE, FALSE, FALSE, 'name');

$renew = CRM_Utils_Array::key('Membership Renewal', $activityTypes);
$signup = CRM_Utils_Array::key('Membership Signup', $activityTypes);

switch ($signupType) {
case 3: // signups and renewals
$this->_formValues['activity_type_id'][$renew] = 1;
$this->_defaults['activity_type_id'][$renew] = 1;
case 1: // signups only
$this->_formValues['activity_type_id'][$signup] = 1;
$this->_defaults['activity_type_id'][$signup] = 1;
break;

case 2: // renewals only
$this->_formValues['activity_type_id'][$renew] = 1;
$this->_defaults['activity_type_id'][$renew] = 1;
break;
}
}

$dateLow = CRM_Utils_Request::retrieve('dateLow', 'String');

if ($dateLow) {
Expand Down
27 changes: 0 additions & 27 deletions CRM/Member/Page/DashBoard.php
Original file line number Diff line number Diff line change
Expand Up @@ -228,65 +228,38 @@ public function preProcess() {

$totalCount['premonth']['new'] = array(
'count' => $newCountPreMonth,
//'url' => CRM_Utils_System::url('civicrm/activity/search',
// "reset=1&force=1&signupType=1&dateLow=$preMonth&dateHigh=$preMonthEnd"
//),
);

$totalCount['premonth']['renew'] = array(
'count' => $renewCountPreMonth,
//'url' => CRM_Utils_System::url('civicrm/activity/search',
// "reset=1&force=1&signupType=2&dateLow=$preMonth&dateHigh=$preMonthEnd"
//),
);

$totalCount['premonth']['total'] = array(
'count' => $totalCountPreMonth,
//'url' => CRM_Utils_System::url('civicrm/activity/search',
// "reset=1&force=1&signupType=3&dateLow=$preMonth&dateHigh=$preMonthEnd"
//),
);

$totalCount['month']['new'] = array(
'count' => $newCountMonth,
//'url' => CRM_Utils_System::url('civicrm/activity/search',
// "reset=1&force=1&signupType=1&dateLow=$monthStart&dateHigh=$ymd"
//),
);

$totalCount['month']['renew'] = array(
'count' => $renewCountMonth,
//'url' => CRM_Utils_System::url('civicrm/activity/search',
// "reset=1&force=1&signupType=2&dateLow=$monthStart&dateHigh=$ymd"
//),
);

$totalCount['month']['total'] = array(
'count' => $totalCountMonth,
//'url' => CRM_Utils_System::url('civicrm/activity/search',
// "reset=1&force=1&signupType=3&dateLow=$monthStart&dateHigh=$ymd"
//),
);

$totalCount['year']['new'] = array(
'count' => $newCountYear,
//'url' => CRM_Utils_System::url('civicrm/activity/search',
// "reset=1&force=1&signupType=1&dateLow=$yearStart&dateHigh=$ymd"
//),
);

$totalCount['year']['renew'] = array(
'count' => $renewCountYear,
//'url' => CRM_Utils_System::url('civicrm/activity/search',
// "reset=1&force=1&signupType=2&dateLow=$yearStart&dateHigh=$ymd"
//),
);

$totalCount['year']['total'] = array(
'count' => $totalCountYear,
//'url' => CRM_Utils_System::url('civicrm/activity/search',
// "reset=1&force=1&signupType=3&dateLow=$yearStart&dateHigh=$ymd"
//),
);

$totalCount['current']['total'] = array(
Expand Down

0 comments on commit edf4615

Please sign in to comment.