#183 link name updating
This commit is contained in:
parent
f6d25f6033
commit
2f67b524ad
@ -49,7 +49,7 @@ class DmsfLinksController < ApplicationController
|
||||
|
||||
if file
|
||||
folder = DmsfFolder.find_by_id params[:dmsf_link][:target_folder_id]
|
||||
if folder && (folder.project_id == @dmsf_link.target_project_id) && folder.files.include?(file)
|
||||
if (folder && (folder.project_id == @dmsf_link.target_project_id) && folder.files.include?(file)) || folder.nil?
|
||||
@dmsf_link.name = file.title
|
||||
end
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user