summaryrefslogtreecommitdiff
path: root/app/views/projects/blob/_editor.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/projects/blob/_editor.html.haml')
-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)