Remove duplicate call to session singleton
authorMatthew Wire (MJW Consulting) <mjw@mjwconsult.co.uk>
Tue, 15 Jan 2019 10:48:11 +0000 (10:48 +0000)
committerMatthew Wire (MJW Consulting) <mjw@mjwconsult.co.uk>
Tue, 15 Jan 2019 10:48:11 +0000 (10:48 +0000)
CRM/Case/Form/CustomData.php

index 6f9065f85686905984e66afef263d83735029b30..d5e2285b8f940733498384a6dcd4b239270fc53d 100644 (file)
@@ -129,7 +129,6 @@ class CRM_Case_Form_CustomData extends CRM_Core_Form {
     $session = CRM_Core_Session::singleton();
     $session->pushUserContext(CRM_Utils_System::url('civicrm/contact/view/case', "reset=1&id={$this->_entityID}&cid={$this->_contactID}&action=view"));
 
-    $session = CRM_Core_Session::singleton();
     $activityTypeID = CRM_Core_PseudoConstant::getKey('CRM_Activity_BAO_Activity', 'activity_type_id', 'Change Custom Data');
     $activityParams = array(
       'activity_type_id' => $activityTypeID,