]> source.dussan.org Git - redmine.git/commitdiff
Remove double negative condition
authorEric Davis <edavis@littlestreamsoftware.com>
Fri, 5 Mar 2010 17:25:51 +0000 (17:25 +0000)
committerEric Davis <edavis@littlestreamsoftware.com>
Fri, 5 Mar 2010 17:25:51 +0000 (17:25 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3546 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/issues_controller.rb

index b77f76cc62c04d69edf048d64bc0a7551c224b25..df8e32a282bafc27355671fa5029ffe2f2993bb7 100644 (file)
@@ -201,10 +201,7 @@ class IssuesController < ApplicationController
 
     if @issue.save_issue_with_child_records(params, @time_entry)
       render_attachment_warning_if_needed(@issue)
-      if !@issue.current_journal.new_record?
-        # Only send notification if something was actually changed
-        flash[:notice] = l(:notice_successful_update)
-      end
+      flash[:notice] = l(:notice_successful_update) unless @issue.current_journal.new_record?
 
       respond_to do |format|
         format.html { redirect_back_or_default({:action => 'show', :id => @issue}) }
@@ -212,10 +209,7 @@ class IssuesController < ApplicationController
       end
     else
       render_attachment_warning_if_needed(@issue)
-      if !@issue.current_journal.new_record?
-        # Only send notification if something was actually changed
-        flash[:notice] = l(:notice_successful_update)
-      end
+      flash[:notice] = l(:notice_successful_update) unless @issue.current_journal.new_record?
       @journal = @issue.current_journal
 
       respond_to do |format|