Skip to content

Commit

Permalink
Merge pull request #13890 from aydun/joomla#6
Browse files Browse the repository at this point in the history
Fix bug preventing affecting `cv --user` on Joomla
  • Loading branch information
seamuslee001 authored Apr 22, 2019
2 parents 223dd31 + 8f407be commit 594eddc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CRM/Utils/System/Joomla.php
Original file line number Diff line number Diff line change
Expand Up @@ -455,6 +455,12 @@ public function loadUser($username, $password = NULL) {
$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);
Expand Down

0 comments on commit 594eddc

Please sign in to comment.