プロジェクト

全般

プロフィール

Vote #76704

完了

Custom fields with multiple values required by worklow can be blank

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

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

0%

予定工数:
category_id:
41
version_id:
105
issue_org_id:
20677
author_id:
123153
assigned_to_id:
1
comments:
5
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

How to simulate:
1/ create new cf type list, non-required, select multiple values
2/ set cf as required in workflow
3/ update issue (cf is marked with * as required)
4/ issue will be saved without an error, even if you don't select any value

How it should work?
Validation error should be shown, because the custom field is required.

Fix & Test included


journals

Tested on master & stable 3.1.0

Environment:
Redmine version 3.1.0.devel.14542
Ruby version 2.1.5-p273 (2014-11-13) [i386-mingw32]
Rails version 4.2.4
Environment production
Database adapter Mysql2
SCM:
Subversion 1.8.13
Filesystem
Redmine plugins:
no plugin installed
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Fix applied in r14670, thanks.
--------------------------------------------------------------------------------

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

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


related_issues

duplicates,Closed,17039,Custom field

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

  • カテゴリIssues workflow_41 にセット
  • 対象バージョン2.6.8_105 にセット

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

いいね!0
いいね!0