Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some arrays' contents deleted before reaching serialize #74

Closed
tannerlinsley opened this issue Mar 11, 2015 · 2 comments
Closed

Some arrays' contents deleted before reaching serialize #74

tannerlinsley opened this issue Mar 11, 2015 · 2 comments
Assignees

Comments

@tannerlinsley
Copy link

I'm saveing this object below (with items in every group field), and when it comes back, I found that every groups array but the first is empty when going out to the server like so:

{
    "id": 50,
    "name": "something",
    "integrations": {
        "rankings": {
            "keywords": [{
                "id": "6129495323884985535",
                "keyword": "Redrock",
                "engine": "google",
                "locale": "es_us",
                "geo": "",
                "device": "d",
                "groups": [
                    "Test"
                ]
            }, {
                "id": "10229707372952463379",
                "keyword": "Redrock",
                "engine": "google",
                "locale": "es_us",
                "geo": "Ogden",
                "device": "d",
                "groups": []
            }, {
                "id": "11044795523948746316",
                "keyword": "Redrock",
                "engine": "google",
                "locale": "es_us",
                "geo": "Kearns",
                "device": "d",
                "groups": []
            }, {
                "id": "9121884036407653290",
                "keyword": "Redrock",
                "engine": "google",
                "locale": "en_us",
                "geo": "",
                "device": "d",
                "groups": []
            }, {
                "id": "6149529768597086244",
                "keyword": "Redrock",
                "engine": "google",
                "locale": "en_us",
                "geo": "Moab",
                "device": "d",
                "groups": []
            }, {
                "id": "969714134800755271",
                "keyword": "Redrock",
                "engine": "google",
                "locale": "en_us",
                "geo": "Lehi",
                "device": "d",
                "groups": []
            }]
        }
    }
}


The furthest back I can trace it is to serialize, in which they have already been deleted. So somewhere between my save and the serialize hook, they're getting affected...

@jmdobry
Copy link
Member

jmdobry commented Mar 11, 2015

Please add more information:

  • good - Your versions of Angular, JSData, etc, relevant console logs/error, code examples that revealed the issue
  • better - A plnkr, fiddle, or bin that demonstrates the issue
  • best - A Pull Request that fixes the issue, including test coverage for the issue and the fix

@jmdobry
Copy link
Member

jmdobry commented Apr 14, 2015

Fixed in 1.8.0

@jmdobry jmdobry closed this as completed Apr 14, 2015
jmdobry referenced this issue Apr 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants