summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortiagonbotelho <tiagonbotelho@hotmail.com>2016-07-12 17:29:24 +0100
committertiagonbotelho <tiagonbotelho@hotmail.com>2016-07-12 17:29:24 +0100
commit4352ff0d446337b8718e9164d7fdac08fcc53d6f (patch)
treec7d9bc00ace70881371d8490d186f412b5964f3d
parent421ec6e089e161bc7a7db61336a17a3e776916f7 (diff)
downloadgitlab-ce-4352ff0d446337b8718e9164d7fdac08fcc53d6f.tar.gz
fixes frontend bug
-rw-r--r--app/views/projects/blob/_editor.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/blob/_editor.html.haml b/app/views/projects/blob/_editor.html.haml
index ba3b3439e9b..ad3009f30ab 100644
--- a/app/views/projects/blob/_editor.html.haml
+++ b/app/views/projects/blob/_editor.html.haml
@@ -5,7 +5,7 @@
= ref
%span.editor-file-name
- if current_action?(:edit) || current_action?(:update)
- = text_field_tag 'file_name', (params[:file_name] || @file_path),
+ = text_field_tag 'file_name', (params[:file_name] || @path),
class: 'form-control new-file-name'
- if current_action?(:new) || current_action?(:create)