diff options
author | Henare Degan <henare.degan@gmail.com> | 2015-04-21 16:38:56 +1000 |
---|---|---|
committer | Henare Degan <henare.degan@gmail.com> | 2015-04-21 16:38:56 +1000 |
commit | 1ad88a5c0d274dad87cf28d952f2f96d114be783 (patch) | |
tree | c3245875ddaeb1a013e618e23ed10b8352c3e6e0 /app/models | |
parent | 177c3c13b7eb3e34d78795f030ae7f352d3bd621 (diff) |
Change PublicBody behaviour to not override blank request emails
This is so if you're overriding the request email you can still
observe how Alaveteli behaves when there's no request email set.
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/public_body.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/public_body.rb b/app/models/public_body.rb index 0bcb1da8c..5bce8ecc7 100644 --- a/app/models/public_body.rb +++ b/app/models/public_body.rb @@ -578,7 +578,7 @@ class PublicBody < ActiveRecord::Base end def request_email - if AlaveteliConfiguration::override_all_public_body_request_emails.blank? + if AlaveteliConfiguration::override_all_public_body_request_emails.blank? || read_attribute(:request_email).blank? read_attribute(:request_email) else AlaveteliConfiguration::override_all_public_body_request_emails |