Yes. Looking up a field called 'tree.species' fails since it is in fact two
fields.


On Tue, Sep 10, 2013 at 10:07 AM, Michael Maurizi
<notifications@github.com>wrote:

> In opentreemap/treemap/js/src/fieldHelpers.js:
>
> > @@ -16,7 +16,12 @@ exports.formToDictionary = function ($form, $editFields) {
> >          if (type === 'bool'){
> >              return;
> >          } else if (item.value === '' && (type === 'int' || type === 'float')) {
> > -            // omit blank numbers
> > +            // convert empty numeric fields to null
> > +            result[item.name] = null;
> > +        } else if (item.name === 'tree.species') {
> > +            // convert empty species id strings to null
>
> Is there a reason species is taken care of separately?
> The field tag gives it an int data type already, so it should be able to
> be handled in the first if
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/azavea/OTM2/pull/308/files#r6266237>
> .
>



-- 
Adam Hinz
Software Engineer, Azavea
hinz.adam@gmail.com | c: 608-445-8391 | Twitter: @ahinz