FIX: clean up cooked group bio when bio is removed (#7745)

This commit is contained in:
Maja Komel
2019-06-12 16:18:38 +10:00
committed by Sam
parent 73bf880f74
commit 0a1b16bb16
+3 -1
View File
@@ -209,8 +209,10 @@ class Group < ActiveRecord::Base
end
def cook_bio
if !self.bio_raw.blank?
if self.bio_raw.present?
self.bio_cooked = PrettyText.cook(self.bio_raw)
else
self.bio_cooked = nil
end
end