Project

General

Profile

Actions

Patch #19793

closed

Adding flash messages to files_controller#create

Added by Juan Manuel Rodulfo Salcedo over 9 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Normal
Category:
Files
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:

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?


Files

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

Updated by Jean-Philippe Lang over 9 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.

Actions #2

Updated by Jean-Philippe Lang over 9 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF