Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Mar 7, 2021. It is now read-only.

Conversation

@3lvis
Copy link
Owner

@3lvis 3lvis commented Mar 23, 2015

Initializing FORMData with a dictionary that doesn’t contain all the elements of a template causes a crash.

FORMData *data = [[FORMData alloc] initWithJSON:JSON
                                  initialValues:@{@"companies[0].name" : @"Facebook",
                                                  @"companies[0].phone_number" : @"1222333",
                                                  @"companies[1].name" : @"Google"}
                               disabledFieldIDs:nil
                                       disabled:NO];

Should generate two dynamic sections with their fields pre-filled.

Before companies[1].phone_number was filled with Google when it should be filled with nil

3lvis added 2 commits March 23, 2015 23:18
And rename tests
zenangst added a commit that referenced this pull request Mar 23, 2015
…ues-bug

Fix: dynamic fields with inital values bug
@zenangst zenangst merged commit 6251451 into master Mar 23, 2015
@zenangst zenangst deleted the fix/dynamic-fields-initial-values-bug branch March 23, 2015 22:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants