attachment.rb.patch

Амир Мусин, 2017-12-11 17:47

Download (404 Bytes)

View differences:

redmine_new/app/models/attachment.rb 2017-11-30 16:41:12.387219535 +0500
318 318

  
319 319
  def self.latest_attach(attachments, filename)
320 320
    attachments.sort_by(&:created_on).reverse.detect do |att|
321
      filename.casecmp(att.filename) == 0
321
      filename.casecmp?(att.filename) == true
322 322
    end
323 323
  end