Project

General

Profile

Actions

Defect #16422

closed

In attachment.rb thumbnail function could not return target correct

Added by chih-jen chuang about 10 years ago. Updated about 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Attachments
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
No feedback
Affected version:

Description

In the lines from 200 to 207

   begin
      Redmine::Thumbnail.generate(self.diskfile, target, size) # <== could not return target success, even if target is correct.
   rescue => e
      logger.error "An error...." 
      return nil
   end

add return target

   begin
      Redmine::Thumbnail.generate(self.diskfile, target, size)
      return target # <== it's correct on my site
   rescue => e
      logger.error "An error...." 
      return nil
   end
Actions

Also available in: Atom PDF