From 94871057b421b7547412cddeac484bd8200f614a Mon Sep 17 00:00:00 2001 From: cdujeu Date: Mon, 3 Mar 2014 12:25:08 +0100 Subject: [PATCH] Make sure the slug is applied at workspace creation even if from a template. --- .../plugins/access.ajxp_conf/class.ajxp_confAccessDriver.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/src/plugins/access.ajxp_conf/class.ajxp_confAccessDriver.php b/core/src/plugins/access.ajxp_conf/class.ajxp_confAccessDriver.php index ddb2810ca8..2010631e24 100644 --- a/core/src/plugins/access.ajxp_conf/class.ajxp_confAccessDriver.php +++ b/core/src/plugins/access.ajxp_conf/class.ajxp_confAccessDriver.php @@ -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.");