From c73f98c28927fef7bdc8521491867fef3daae592 Mon Sep 17 00:00:00 2001 From: Arpit Jalan Date: Thu, 28 Jun 2018 12:30:28 +0530 Subject: [PATCH] FIX: invert from and to user id in smf1 import script --- script/import_scripts/smf1.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script/import_scripts/smf1.rb b/script/import_scripts/smf1.rb index 858e98823f3..a8c5207c305 100644 --- a/script/import_scripts/smf1.rb +++ b/script/import_scripts/smf1.rb @@ -459,8 +459,8 @@ class ImportScripts::Smf1 < ImportScripts::Base SQL ).each do |f| print_status(count += 1, total, get_start_time("feedbacks")) - next unless user_id_from = user_id_from_imported_user_id(f["id_member"]) - next unless user_id_to = user_id_from_imported_user_id(f["feedbackmember_id"]) + next unless user_id_from = user_id_from_imported_user_id(f["feedbackmember_id"]) + next unless user_id_to = user_id_from_imported_user_id(f["id_member"]) next unless user = User.find_by(id: user_id_to) feedbacks = user.custom_fields[FEEDBACKS] || []