diff options
| author | Zog | 2018-03-05 16:49:37 +0100 | 
|---|---|---|
| committer | Zog | 2018-03-05 16:49:37 +0100 | 
| commit | c3e901601831cae6763b205d0208f9ec2444a7a5 (patch) | |
| tree | 789719982a4aaeba3f64f80921b9f2d0999f41ff | |
| parent | a180ad4aebcbdd15e632d92f7c793db7db5a8e39 (diff) | |
| download | chouette-core-c3e901601831cae6763b205d0208f9ec2444a7a5.tar.bz2 | |
Refs #6068; Remove warning for controlled empty fields
| -rw-r--r-- | app/models/simple_exporter.rb | 2 | 
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 | 
