A platform for community discussion. Free, open, simple.
FIX: validation of website failed in base importer
Gerhard Schlagera93bf186c507
diff --git a/script/import_scripts/base.rb b/script/import_scripts/base.rbindex 67c6ede4c73..4d177156b40 100644--- a/script/import_scripts/base.rb+++ b/script/import_scripts/base.rb@@ -319,8 +319,12 @@ class ImportScripts::BaseUser.transaction dou.save!if bio_raw.present? || website.present? || location.present?+ if website.present?+ u.user_profile.website = website+ u.user_profile.website = nil unless u.user_profile.valid?+ end+u.user_profile.bio_raw = bio_raw[0..2999] if bio_raw.present?- u.user_profile.website = website unless website.blank? || website !~ UserProfile::WEBSITE_REGEXPu.user_profile.location = location if location.present?u.user_profile.save!end