Skip to content

Commit

Permalink
Initialize @@iksnrs_meta_info at correct place
Browse files Browse the repository at this point in the history
  • Loading branch information
ngiger committed Sep 25, 2013
1 parent cb47af4 commit f452e2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugin/text_info.rb
Expand Up @@ -623,6 +623,7 @@ def create_registration(info)
end

def add_all_iksnr(info, typ, all_numbers)
@@iksnrs_meta_info ||= {}
ids = TextInfoPlugin::get_iksnrs_from_string(all_numbers)
ids.each { |id|
info.iksnr = id
Expand Down Expand Up @@ -1333,7 +1334,6 @@ def import_swissmedicinfo_by_index(index, target)
true # an import should return true or you will never send a report
end
def import_swissmedicinfo_by_iksnrs(iksnrs, target)
@@iksnrs_meta_info = {}
puts_sync "import_swissmedicinfo_by_iksnrs #{iksnrs.inspect} target #{target}"
title,keys = title_and_keys_by(target)
@updated,@skipped,@invalid,@notfound = report_sections_by(title)
Expand Down

0 comments on commit f452e2e

Please sign in to comment.