Author: tchemit Date: 2009-10-30 20:29:37 +0100 (Fri, 30 Oct 2009) New Revision: 28 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 19:20:49 UTC (rev 27) +++ trunk/jredmine-client/src/main/redmine/jredmine/app/controllers/jredmine_controller.rb 2009-10-30 19:29:37 UTC (rev 28) @@ -283,7 +283,7 @@ :description => attachment['description'].to_s.strip, :author => User.current) end - if a.new_record? + if !a.new_record? if Setting.notified_events.include?('file_added') array =[] array << a
participants (1)
-
tchemit@users.nuiton.org