summaryrefslogtreecommitdiff
path: root/app/views/layouts
diff options
context:
space:
mode:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-07-12 16:40:05 -0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-07-14 15:31:48 -0300
commitd54a281e3d1c543f4cbd550c62f62d225f595bbb (patch)
tree70ee57d5daec2fb141b1bbd4cd9bb8e84e7b3a05 /app/views/layouts
parentc49517a0048f24e57f6d6ab2a5e80c8de132280d (diff)
downloadgitlab-ce-d54a281e3d1c543f4cbd550c62f62d225f595bbb.tar.gz
Fix creating group with space in group path
Diffstat (limited to 'app/views/layouts')
-rw-r--r--app/views/layouts/_search.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/layouts/_search.html.haml b/app/views/layouts/_search.html.haml
index 245b9c3b4d4..f7580f00159 100644
--- a/app/views/layouts/_search.html.haml
+++ b/app/views/layouts/_search.html.haml
@@ -44,7 +44,7 @@
name: "#{j(@project.name)}"
};
- - if @group and @group.path
+ - if @group && @group.persisted? && @group.path
:javascript
gl.groupOptions = gl.groupOptions || {};
gl.groupOptions["#{j(@group.path)}"] = {