"Autobiographer" badge query and empty bio_raw


(Alexander) #1

Hello!

I just been found that after saving user profile with an empty “About” field, it will be empty in the database, but not null. At the same time in a badge query “Autobiographer” are checked for null value for bio_raw field.
It seems to solve this problem, should to change this badge query to check the empty and null value for bio_raw or change the cook function in the app/models/user_profile.rb model by adding self.bio_raw = nil when self.bio_raw not present.

P.S. Same for location.
P.P.S. See that it have lenght check for bio_raw, so all right for this badge query!:slight_smile:


(Régis Hanol) #2

I will gladly merge a PR fixing the SQL queries :wink: