Patch #21066 ยป wikiRestApiAttachmentAdd.patch
wiki_controller.rb (working copy) | ||
---|---|---|
152 | 152 |
@content.author = User.current |
153 | 153 |
if @page.save_with_content(@content) |
154 |
attachments = Attachment.attach_files(@page, params[:attachments]) |
|
154 |
attachments = Attachment.attach_files(@page, params[:attachments] || (params[:wiki_page] && params[:wiki_page][:uploads]))
|
|
155 | 155 |
render_attachment_warning_if_needed(@page) |
156 | 156 |
call_hook(:controller_wiki_edit_after_save, { :params => params, :page => @page}) |