FIX: invert from and to user id in smf1 import script
This commit is contained in:
parent
ebd2be9e02
commit
c73f98c289
|
@ -459,8 +459,8 @@ class ImportScripts::Smf1 < ImportScripts::Base
|
||||||
SQL
|
SQL
|
||||||
).each do |f|
|
).each do |f|
|
||||||
print_status(count += 1, total, get_start_time("feedbacks"))
|
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_from = user_id_from_imported_user_id(f["feedbackmember_id"])
|
||||||
next unless user_id_to = 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)
|
next unless user = User.find_by(id: user_id_to)
|
||||||
|
|
||||||
feedbacks = user.custom_fields[FEEDBACKS] || []
|
feedbacks = user.custom_fields[FEEDBACKS] || []
|
||||||
|
|
Loading…
Reference in New Issue