Vote #74311
完了ActiveRecord::Acts::Versioned::ActMethods#next_version Generates ArgumentError
0%
説明
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 にセット