プロジェクト

全般

プロフィール

Vote #76343

完了

Adding flash messages to files_controller#create

Admin Redmine さんが約4年前に追加. 約4年前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Files_52
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
52
version_id:
96
issue_org_id:
19793
author_id:
127352
assigned_to_id:
1
comments:
2
status_id:
5
tracker_id:
3
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

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?


journals

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

--------------------------------------------------------------------------------

Admin Redmine さんが約4年前に更新

  • カテゴリFiles_52 にセット
  • 対象バージョン3.0.3_96 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0