Patch #35345

Redmine::Plugin::compare_versions fails with stable and devel branches

Added by Massimo Rossello 18 days ago.

Status:NewStart date:
Priority:NormalDue date:
Assignee:-% Done:


Category:Plugin API
Target version:-


A plugin using Redine::Plugin::require_redmine always fails against stable and development branches. In fact, a version like e.g. 4.0.9.stable (from the latest 4.0.9 tag) can't be matched either against 4.0.9 or

Attached a workaround based on trunk, which is not satisfactory as it isn't using collect(&:to_i) in compare_versions. But it works.

fix_compare_versions_for_stable_branches.patch Magnifier (468 Bytes) Massimo Rossello, 2021-06-02 14:15

Also available in: Atom PDF