Skip to content

Commit

Permalink
Fix export fachinfo yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
ngiger committed Oct 29, 2013
1 parent db12757 commit 515ea31
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/plugin/yaml.rb
Expand Up @@ -71,7 +71,7 @@ def export_effective_fachinfos(name='fachinfo_now.yaml')
check_infos(name, "Registration") do |no_descr|
_fachinfos.each do |fachinfo|
no_descr.keys.each do |language|
unless fachinfo.descriptions[language]
unless fachinfo.descriptions and fachinfo.descriptions[language]
note = no_description(fachinfo)
no_descr[language].push(note) if note
end
Expand All @@ -84,7 +84,8 @@ def export_fachinfos(name='fachinfo.yaml')
check_infos(name, "Registration") do |no_descr|
@app.fachinfos.values.each do |fachinfo|
no_descr.keys.each do |language|
unless fachinfo.descriptions[language]
next if fachinfo.iksnrs.size == 0 # ignore invalid fachinfos
unless fachinfo.descriptions and fachinfo.descriptions[language]
note = no_description(fachinfo)
no_descr[language].push(note) if note
end
Expand Down

0 comments on commit 515ea31

Please sign in to comment.