Author: tchemit Date: 2009-10-30 20:20:49 +0100 (Fri, 30 Oct 2009) New Revision: 27 Modified: trunk/jredmine-client/src/main/redmine/jredmine/app/controllers/jredmine_controller.rb Log: try to detetc if file was upload Modified: trunk/jredmine-client/src/main/redmine/jredmine/app/controllers/jredmine_controller.rb =================================================================== --- trunk/jredmine-client/src/main/redmine/jredmine/app/controllers/jredmine_controller.rb 2009-10-30 17:56:36 UTC (rev 26) +++ trunk/jredmine-client/src/main/redmine/jredmine/app/controllers/jredmine_controller.rb 2009-10-30 19:20:49 UTC (rev 27) @@ -283,7 +283,7 @@ :description => attachment['description'].to_s.strip, :author => User.current) end - if a.save + if a.new_record? if Setting.notified_events.include?('file_added') array =[] array << a
participants (1)
-
tchemit@users.nuiton.org