aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/info_request.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/info_request.rb')
-rw-r--r--app/models/info_request.rb8
1 files changed, 5 insertions, 3 deletions
diff --git a/app/models/info_request.rb b/app/models/info_request.rb
index 83a57b4b2..f63c10e0a 100644
--- a/app/models/info_request.rb
+++ b/app/models/info_request.rb
@@ -557,9 +557,11 @@ public
# Report this request for administrator attention
def report!(reason, message, user)
- set_described_state('attention_requested', user, "Reason: #{reason}\n\n#{message}")
- self.attention_requested = true # tells us if attention has ever been requested
- save!
+ ActiveRecord::Base.transaction do
+ set_described_state('attention_requested', user, "Reason: #{reason}\n\n#{message}")
+ self.attention_requested = true # tells us if attention has ever been requested
+ save!
+ end
end
# change status, including for last event for later historical purposes