プロジェクト

全般

プロフィール

Vote #78316

未完了

Redmine patch for Rails breaks functionality of select_tag

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

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

0%

予定工数:
category_id:
44
version_id:
0
issue_org_id:
25337
author_id:
224887
assigned_to_id:
0
comments:
0
status_id:
1
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
123
ステータス-->[New]

説明

The Redmine patch in @config/initializers/10-patches.rb@ breaks the functionality of @ActionView::Helpers::FormTagHelper::select_tag@, which states in the Rails documentation:

:include_blank - If set to true, an empty option will be created. If set to a string, the string will be used as the option’s content and the value will be empty.
[...]
select_tag "people", options_from_collection_for_select(@people, "id", "name"), include_blank: "All"
# => 

With the patch a string value given for @:include_blank@ is not taken into account for the resulting option which will be @ @ unless the option @:prompt@ is given.
This means the above example will result in

select_tag "people", options_from_collection_for_select(@people, "id", "name"), include_blank: "All"
# => 

PS: I did not check but this is possibly similar for the other patches trying to correct the invalid @@

My Redmine environment:

  • Redmine version 3.3.2.stable.16377
  • Ruby version 2.3.1-p112 (2016-04-26) [x86_64-linux-gnu]
  • Rails version 4.2.7.1
  • Environment production
  • Database adapter Mysql2

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

  • カテゴリRails support_44 にセット

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

いいね!0
いいね!0