remove redundant usercontext, which messes activity form, CRM-13896
authorkurund <kurund@civicrm.org>
Wed, 4 Dec 2013 15:13:13 +0000 (20:43 +0530)
committerkurund <kurund@civicrm.org>
Wed, 4 Dec 2013 15:13:13 +0000 (20:43 +0530)
----------------------------------------
* CRM-13896:
  http://issues.civicrm.org/jira/browse/CRM-13896

CRM/Core/Invoke.php

index 221504f2101f2219bed378200553cc19ca0ae627..a927b477703582a5d12e8580c5f9a09876ca3fb2 100644 (file)
@@ -414,10 +414,6 @@ class CRM_Core_Invoke {
     }
 
     if ($secondArg == 'edit' || $secondArg == 'create') {
-      // set the userContext stack
-      $session = CRM_Core_Session::singleton();
-      $session->pushUserContext(CRM_Utils_System::url('civicrm/profile', 'reset=1'));
-
       $buttonType = CRM_Utils_Array::value('_qf_Edit_cancel', $_POST);
       // CRM-5849: we should actually check the button *type*, but we get the *value*, potentially translated;
       // we should keep both English and translated checks just to make sure we also handle untranslated Cancels