Vote #79400
完了Remove unused and broken method CustomField.visibility_condition
0%
説明
The class method was introduced in r12012 along with the instance method @CustomField#visibility_by_project_condition@. The method's body seems to follow the idea of the instance method but misses a lot of data required by it, including the @user@ and the @project_key@. As such, the method would always throw an exception when called.
Since the method is not tested, is never called by Redmine anywhere, and is unusable anyway, we can simply remove it as done by the attached patch.
journals
--------------------------------------------------------------------------------
I have confirmed the problem Holger reported. Setting target version to 4.0.0.
--------------------------------------------------------------------------------
Committed, thanks.
--------------------------------------------------------------------------------
related_issues
relates,Closed,5037,Role-based issue custom field visibility
Admin Redmine さんが約4年前に更新
- カテゴリ を Code cleanup/refactoring_30 にセット
- 対象バージョン を 4.0.0_99 にセット