Patch #19793

Adding flash messages to files_controller#create

Added by Juan Manuel Rodulfo Salcedo about 3 years ago. Updated about 3 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Jean-Philippe Lang% Done:

0%

Category:Files
Target version:3.0.3

Description

When you create a new file with empty attachments it redirects to the index view but with no error message.

Now it returns to the new view with a flash message and if the upload is successful, it displays a notice flash.

also changed !attachments.empty? to attachments.any?

flash_in_files_controller.diff Magnifier - diff (1.36 KB) Juan Manuel Rodulfo Salcedo, 2015-05-08 12:18

Associated revisions

Revision 14243
Added by Jean-Philippe Lang about 3 years ago

Adds flash messages to files_controller#create (#19793).

History

#1 Updated by Jean-Philippe Lang about 3 years ago

  • Status changed from New to Resolved
  • Assignee set to Jean-Philippe Lang
  • Target version set to 3.0.3

Patch committed in r14243 with slight changes and a test, thanks.

#2 Updated by Jean-Philippe Lang about 3 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF