Skip to content
Snippets Groups Projects
Unverified Commit 594eddc5 authored by Seamus Lee's avatar Seamus Lee Committed by GitHub
Browse files

Merge pull request #13890 from aydun/joomla#6

Fix bug preventing affecting `cv --user` on Joomla
parents 223dd31e 8f407be0
Branches
Tags
No related merge requests found
......@@ -455,6 +455,12 @@ class CRM_Utils_System_Joomla extends CRM_Utils_System_Base {
$instance->login($params);
}
// Save details in Joomla session
$user = JFactory::getUser($uid);
$jsession = JFactory::getSession();
$jsession->set('user', $user);
// Save details in Civi session
$session = CRM_Core_Session::singleton();
$session->set('ufID', $uid);
$session->set('userID', $contactID);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment