aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/models/simple_exporter.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/simple_exporter.rb b/app/models/simple_exporter.rb
index 721e56dda..d396419d2 100644
--- a/app/models/simple_exporter.rb
+++ b/app/models/simple_exporter.rb
@@ -83,7 +83,7 @@ class SimpleExporter < SimpleInterface
val = attributes.inject(scoped_item){|tmp, attr| tmp.send(attr)}
end
end
- if val.nil?
+ if val.nil? && !col.omit_nil?
push_in_journal({event: :attribute_not_found, message: "Value missing for: #{[col.scope, col.attribute].flatten.join('.')}", kind: :warning})
self.status ||= :success_with_warnings
end