课堂资源的调整

dev_forge
cxt 5 years ago
parent f2e29cd33d
commit 11acb71671

@ -272,6 +272,8 @@ class FilesController < ApplicationController
@old_attachment.unified_setting = @unified_setting
if @unified_setting == 0
attachment_group_setting @old_attachment, params[:group_settings]
else
@old_attachment.attachment_group_settings.destroy_all
end
if params[:description] && !params[:description].strip.blank? && params[:description] != @old_attachment.description

@ -1,3 +1,3 @@
json.partial! 'attachments/attachment', attachment: @file
# json.partial! "files/course_groups", attachment_group_settings: @file.attachment_group_settings
json.partial! "files/course_groups", attachment_group_settings: @file.attachment_group_settings
json.partial! "attachment_histories/list", attachment_histories: @attachment_histories
Loading…
Cancel
Save