aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Houston <robin.houston@gmail.com>2012-05-28 10:27:11 +0100
committerRobin Houston <robin.houston@gmail.com>2012-06-06 19:34:58 +0100
commit1a085e3b973726893dc220c060225dc42d9a4edb (patch)
tree023319b0b1bea588a18f5adcc6b99c6254a28201
parentc2681d8effb64e4f49ab17d867a5616613dea4f7 (diff)
Improve explanation
I struggled to understand this comment. I hope the new wording is clearer.
-rw-r--r--app/controllers/request_controller.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/app/controllers/request_controller.rb b/app/controllers/request_controller.rb
index 07faf4445..2250747e1 100644
--- a/app/controllers/request_controller.rb
+++ b/app/controllers/request_controller.rb
@@ -304,9 +304,11 @@ class RequestController < ApplicationController
# See if values were valid or not
if !@existing_request.nil? || !@info_request.valid?
- # We don't want the error "Outgoing messages is invalid", as the outgoing message
- # will be valid for a specific reason which we are displaying anyway.
+ # We don't want the error "Outgoing messages is invalid", as in this
+ # case the list of errors will also contain a more specific error
+ # describing the reason it is invalid.
@info_request.errors.delete("outgoing_messages")
+
render :action => 'new'
return
end