プロジェクト

全般

プロフィール

Vote #74311

完了

ActiveRecord::Acts::Versioned::ActMethods#next_version Generates ArgumentError

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

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

0%

予定工数:
category_id:
30
version_id:
70
issue_org_id:
14773
author_id:
83420
assigned_to_id:
1
comments:
4
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
72
ステータス-->[Closed]

説明

There's a patch already available "here":https://github.com/edavis10/redmine/pull/51. I'm not sure why the WikiContent model doesn't break, but it does customize the WikiContent::Version class's behavior slightly.


journals

Apparently setting @self.locking_column = 'version'@ gets around this problem, but I don't see it documented anywhere.
--------------------------------------------------------------------------------
This is also discussed in message#39853. What is missing is a clear way how to reproduce the error.

Justin Leishman wrote:
> Apparently setting @self.locking_column = 'version'@ gets around this problem, but I don't see it documented anywhere.

@self.locking_column = 'version'@ is 'available' in source:/trunk/app/models/wiki_content.rb#L21. I don't see how that is related.
--------------------------------------------------------------------------------
Ok. The patch fixed my problem.

--------------------------------------------------------------------------------
I was not able to trigger this error from within Redmine but I WikiContent#next_version actually raises this error.
Fix applied in r12222.
--------------------------------------------------------------------------------

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

  • カテゴリCode cleanup/refactoring_30 にセット
  • 対象バージョン2.4.0_70 にセット

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

いいね!0
いいね!0