##// END OF EJS Templates
Remove double negative condition...
Eric Davis -
r3432:d65922afde18
parent child
Show More
@@ -201,10 +201,7 class IssuesController < ApplicationController
201 201
202 202 if @issue.save_issue_with_child_records(params, @time_entry)
203 203 render_attachment_warning_if_needed(@issue)
204 if !@issue.current_journal.new_record?
205 # Only send notification if something was actually changed
206 flash[:notice] = l(:notice_successful_update)
207 end
204 flash[:notice] = l(:notice_successful_update) unless @issue.current_journal.new_record?
208 205
209 206 respond_to do |format|
210 207 format.html { redirect_back_or_default({:action => 'show', :id => @issue}) }
@@ -212,10 +209,7 class IssuesController < ApplicationController
212 209 end
213 210 else
214 211 render_attachment_warning_if_needed(@issue)
215 if !@issue.current_journal.new_record?
216 # Only send notification if something was actually changed
217 flash[:notice] = l(:notice_successful_update)
218 end
212 flash[:notice] = l(:notice_successful_update) unless @issue.current_journal.new_record?
219 213 @journal = @issue.current_journal
220 214
221 215 respond_to do |format|
General Comments 0
You need to be logged in to leave comments. Login now