diff options
author | Sean McGivern <sean@gitlab.com> | 2017-02-01 16:38:52 +0000 |
---|---|---|
committer | Sean McGivern <sean@gitlab.com> | 2017-02-02 10:23:50 +0000 |
commit | f799585c41d801bc657f992adf3d4b201af927d2 (patch) | |
tree | 024671600d97ba514bd06f896b4f508f4e790ace /app/views/snippets/new.html.haml | |
parent | 659cceb0e8694b58a8b665de3f338245244ef114 (diff) | |
download | gitlab-ce-f799585c41d801bc657f992adf3d4b201af927d2.tar.gz |
Keep snippet visibility on error
When a snippet is submitted, but there's an error, we didn't keep the
visibility level. As the default is private, this means that submitting
a public snippet that failed would then fall back to being a private
snippet.
Diffstat (limited to 'app/views/snippets/new.html.haml')
-rw-r--r-- | app/views/snippets/new.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/snippets/new.html.haml b/app/views/snippets/new.html.haml index 79e2392490d..ca8afb4bb6a 100644 --- a/app/views/snippets/new.html.haml +++ b/app/views/snippets/new.html.haml @@ -2,4 +2,4 @@ %h3.page-title New Snippet %hr -= render "shared/snippets/form", url: snippets_path(@snippet), visibility_level: default_snippet_visibility += render "shared/snippets/form", url: snippets_path(@snippet) |