Skip to content
Snippets Groups Projects
Commit 75e961dc authored by tiagonbotelho's avatar tiagonbotelho
Browse files

implements the form for renaming the new filename on the file edit page

parent ef0f4950
No related branches found
No related tags found
1 merge request!5049Implements the form for renaming the new filename on the file edit page
Loading
Loading
@@ -43,8 +43,8 @@ class Projects::BlobController < Projects::ApplicationController
diffs_namespace_project_merge_request_path(from_merge_request.target_project.namespace, from_merge_request.target_project, from_merge_request) +
"#file-path-#{hexdigest(@path)}"
else
unless params[:file_name] == @path
previous_path = @path
unless params[:file_name].empty?
@previous_path = @path
@path = params[:file_name]
end
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment