プロジェクト

全般

プロフィール

Vote #79191

未完了

Error when query filter model inherited from other class which inherited from Query

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

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

0%

予定工数:
category_id:
30
version_id:
0
issue_org_id:
28309
author_id:
159877
assigned_to_id:
0
comments:
0
status_id:
1
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
134
ステータス-->[New]

説明

We have a plugin, where: @MyPluginModelQuery < MyCustomClassQuery < Query@
After redmine update 3.4.4 have a string https://github.com/redmine/redmine/commit/fd3c08aaa107e2c5a412a06aea6890b147e46aaf#diff-0fd59f260b10d1cfcf0c5695de8a99e6R90
where call @Query.get_subclass@
where a condition @subclasses.include? klass@

And if my MyPluginModelQuery not a direct children of Query error raised.

My suggest: improve string https://github.com/redmine/redmine/blob/master/lib/redmine/subclass_factory.rb#L32 for support children's any deep, for example @unless klass < self@

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

  • カテゴリCode cleanup/refactoring_30 にセット

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

いいね!0
いいね!0