Defect #35345 » fix_compare_versions_for_stable_branches.patch
lib/redmine/plugin.rb | ||
---|---|---|
275 | 275 | |
276 | 276 |
def compare_versions(requirement, current) |
277 | 277 |
requirement = requirement.split('.').collect(&:to_i) |
278 |
requirement <=> current.slice(0, requirement.size) |
|
278 |
requirement <=> current.slice(0, requirement.size).collect(&:to_i)
|
|
279 | 279 |
end |
280 | 280 |
private :compare_versions |
281 | 281 |