Esri / offline-editor-js

ArcGIS JavaScript library for handling offline editing and tiling.
http://esri.github.io/offline-editor-js/demo/
Apache License 2.0
159 stars 142 forks source link

Features created offline lack OBJECTID attribute after returning online and syncing. #491

Closed bjvanmet closed 8 years ago

bjvanmet commented 8 years ago

Hi Andy,

I can't believe I'm just now finding this bug! Here's the report...

Expected behavior

Actual behavior

Steps to reproduce the behavior

Thanks for looking into it, -Bryan

andygup commented 8 years ago

@bjvanmet Just confirming you are running v3.0.3?

Good catch, btw. I am able repro this in v3.6.0 which is the latest and greatest.

Looks like a bug in OfflineEditBasic and OfflineEditAdvanced where var graphic = new Graphic(adds[0].geometry,null,adds[0].attributes); The problem is that adds[0].attributes doesn't inject the addsResults[x].objectId.

I'll bolt in a fix, and you'll need to upgrade and retest when I'm done.

image