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