Project

General

Profile

Defect #35345 » fix_compare_versions_for_stable_branches.patch

Massimo Rossello, 2021-06-02 14:15

View differences:

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

  
(1-1/2)