diff --git a/app/controllers/assets_controller.rb b/app/controllers/assets_controller.rb index 69dc34ec0..8c9b7e364 100644 --- a/app/controllers/assets_controller.rb +++ b/app/controllers/assets_controller.rb @@ -323,7 +323,7 @@ class AssetsController < ApplicationController end ActiveRecord::Base.transaction do - old_name = @asset.name + old_name = @asset.file_name @asset.last_modified_by = current_user @asset.rename_file(new_name) @asset.save! diff --git a/app/javascript/vue/shared/content/attachments/context_menu.vue b/app/javascript/vue/shared/content/attachments/context_menu.vue index e618f688e..ede1a2094 100644 --- a/app/javascript/vue/shared/content/attachments/context_menu.vue +++ b/app/javascript/vue/shared/content/attachments/context_menu.vue @@ -44,8 +44,7 @@ diff --git a/app/javascript/vue/shared/content/modal/rename_modal.vue b/app/javascript/vue/shared/content/modal/rename_modal.vue index 7fee9337c..4de18990c 100644 --- a/app/javascript/vue/shared/content/modal/rename_modal.vue +++ b/app/javascript/vue/shared/content/modal/rename_modal.vue @@ -1,6 +1,6 @@