プロジェクト

全般

プロフィール

Vote #75640

完了

Selected projects in email notifications on "my account" are lost when the page is redisplayed after a validation error.

Admin Redmine さんが3年以上前に追加. 3年以上前に更新.

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

0%

予定工数:
category_id:
9
version_id:
88
issue_org_id:
18060
author_id:
3866
assigned_to_id:
1
comments:
4
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
84
ステータス-->[Closed]

説明

On "my account" with "for any event on the selected projects only" selected in the email notifications area and some projects selected for that, the selected projects (newly selected and already saved) are lost if the page gets redisplayed after for example a validation error (no first name for example).


journals

The problem is that @User#notified_projects_ids=@ source:/trunk/app/models/user.rb@13435#L355 may receive an array of strings, for example from an update through a web form, which is stored as is. source:/trunk/app/views/users/_mail_notifications.html.erb@13435#L16 on the other hand expects an array of integers to populate the form.

The attached patch makes sure anything passed to @User#notified_projects_ids=@ is stored as an array of integers in the instance variable.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Patch committed in r13638.
--------------------------------------------------------------------------------

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

Admin Redmine さんが3年以上前に更新

  • カテゴリEmail notifications_9 にセット
  • 対象バージョン2.6.1_88 にセット

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

いいね!0
いいね!0