Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Make sure the slug is applied at workspace creation even if from a te…
Browse files Browse the repository at this point in the history
…mplate.

(cherry picked from commit 9487105)
  • Loading branch information
cdujeu committed Mar 17, 2014
1 parent cc9be3d commit 210559c
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -1054,6 +1054,9 @@ public function switchAction($action, $httpVars, $fileVars)
$templateId = substr($repDef["DRIVER"], 14);
$templateRepo = ConfService::getRepositoryById($templateId);
$newRep = $templateRepo->createTemplateChild($repDef["DISPLAY"], $repDef["DRIVER_OPTIONS"]);
if(isSet($repDef["AJXP_SLUG"])){
$newRep->setSlug($repDef["AJXP_SLUG"]);
}
} else {
if ($currentUserIsGroupAdmin) {
throw new Exception("You are not allowed to create a repository from a driver. Use a template instead.");
Expand Down

0 comments on commit 210559c

Please sign in to comment.