プロジェクト

全般

プロフィール

Vote #72311

完了

Overwriting existing method Issue.open

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

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

0%

予定工数:
category_id:
2
version_id:
47
issue_org_id:
11545
author_id:
13730
assigned_to_id:
1
comments:
4
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
43
ステータス-->[Closed]

説明

Try
Project.first.issues.open => ArgumentError: wrong number of arguments (0 for 1)

Project.first.issues.open('public') => Errno::EACCES: Permission denied - public

From log:
Creating scope :open. Overwriting existing method Issue.open.

And others:
Creating scope :active. Overwriting existing method User.active.
Creating scope :open. Overwriting existing method Version.open.

etc..

Thanks for resolve

(workaround: Project.first.issues.visible.open)

Petr


journals

--------------------------------------------------------------------------------
I hope the following patch will help.
--------------------------------------------------------------------------------
Patch committed in r10199 with a test. Thanks for the fix.
--------------------------------------------------------------------------------
Thank you!
--------------------------------------------------------------------------------

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

  • カテゴリIssues_2 にセット
  • 対象バージョン2.1.0_47 にセット

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

いいね!0
いいね!0