Merge pull request #3258 from mcg1969/import-base-fix

Added location.present? test to user profile updating.
This commit is contained in:
Régis Hanol 2015-03-07 17:38:21 +01:00
commit ef335ad49d
1 changed files with 1 additions and 1 deletions

View File

@ -299,7 +299,7 @@ class ImportScripts::Base
begin begin
User.transaction do User.transaction do
u.save! 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.bio_raw = bio_raw if bio_raw.present?
u.user_profile.website = website if website.present? u.user_profile.website = website if website.present?
u.user_profile.location = location if location.present? u.user_profile.location = location if location.present?