From 6030fe1f9d06c5a2c201a48301c1ee75bb3e4d7f Mon Sep 17 00:00:00 2001 From: "Michael C. Grant" Date: Sat, 7 Mar 2015 08:42:42 -0600 Subject: [PATCH] Added location.present? test to user profile updating. --- script/import_scripts/base.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/import_scripts/base.rb b/script/import_scripts/base.rb index 6f81a5c83..9ce88d6f9 100644 --- a/script/import_scripts/base.rb +++ b/script/import_scripts/base.rb @@ -299,7 +299,7 @@ class ImportScripts::Base begin User.transaction do u.save! - if bio_raw.present? || website.present? + if bio_raw.present? || website.present? || location.present? u.user_profile.bio_raw = bio_raw if bio_raw.present? u.user_profile.website = website if website.present? u.user_profile.location = location if location.present?