-
- Downloads
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.
Showing
- app/helpers/visibility_level_helper.rb 0 additions, 4 deletionsapp/helpers/visibility_level_helper.rb
- app/models/snippet.rb 1 addition, 1 deletionapp/models/snippet.rb
- app/views/projects/snippets/edit.html.haml 1 addition, 1 deletionapp/views/projects/snippets/edit.html.haml
- app/views/projects/snippets/new.html.haml 1 addition, 1 deletionapp/views/projects/snippets/new.html.haml
- app/views/shared/snippets/_form.html.haml 1 addition, 2 deletionsapp/views/shared/snippets/_form.html.haml
- app/views/snippets/edit.html.haml 1 addition, 1 deletionapp/views/snippets/edit.html.haml
- app/views/snippets/new.html.haml 1 addition, 1 deletionapp/views/snippets/new.html.haml
Please register or sign in to comment