Permalink
Browse files

Fix switch_repository action

  • Loading branch information...
1 parent 6cd0506 commit 7c540a4b94b6b72239d3429d7325bbe8ada1b086 @cdujeu cdujeu committed Jun 5, 2016
Showing with 1 addition and 3 deletions.
  1. +1 −3 core/src/plugins/core.conf/class.AbstractConfDriver.php
@@ -611,9 +611,7 @@ public function switchAction(ServerRequestInterface $requestInterface, ResponseI
ConfService::switchRootDir($repository_id);
PluginsService::getInstance();
if (AuthService::usersEnabled() && $loggedUser !== null) {
- $activeRepId = $ctx->getRepositoryId();
- $loggedUser->setArrayPref("history", "last_repository", $activeRepId);
- $loggedUser->setArrayPref("repository_last_connected", $activeRepId, time());
+ $loggedUser->setArrayPref("repository_last_connected", $repository_id, time());
$loggedUser->save("user");
}

0 comments on commit 7c540a4

Please sign in to comment.