Story #109086524 - Save update with the user id that requested update, when admin approves

(I thought this change was already committed, but where?)
This commit is contained in:
Matt Farnsworth 2015-12-13 13:06:52 +02:00
parent 80fe0428b2
commit 05b2408b43

View file

@ -507,7 +507,9 @@ class Epp::Domain < Domain
frame = Nokogiri::XML(pending_json['frame'])
statuses.delete(DomainStatus::PENDING_UPDATE)
yield(self) if block_given? # need to skip statuses check here
save
PaperTrail.whodunnit = user
return unless update(frame, user, false)
clean_pendings!
self.deliver_emails = true # turn on email delivery