Opened 12 years ago
Closed 12 years ago
#7120 closed feature (duplicate)
problem with .link() and array type form inputs like <input name="foo[]" />
Reported by: | pauly | Owned by: | BorisMoore |
---|---|---|---|
Priority: | undecided | Milestone: | |
Component: | datalink | Version: | 1.4.2 |
Keywords: | link data-link | Cc: | |
Blocked by: | Blocking: |
Description
If you have an input called party[children] with a value of 5 and you use the new jquery .link() to link the form to an object, it creates
{ 'party[children]': 5 }
instead of
{ party: { children: 5 } }
like I would expect...
Change History (4)
comment:1 Changed 12 years ago by
Component: | unfiled → datalink |
---|
comment:2 Changed 12 years ago by
Owner: | set to BorisMoore |
---|---|
Status: | new → assigned |
Type: | bug → feature |
comment:4 Changed 12 years ago by
Resolution: | → duplicate |
---|---|
Status: | assigned → closed |
This will be in Beta2 of DataLink. Resolving this issue here, and cloning a copy here: https://github.com/jquery/jquery-datalink/issues/24 since we are using the Issue Tracker for DataLink issues.
Note: See
TracTickets for help on using
tickets.
The Data Link plugin does not currently interpret the object structure from the name. That would be a good feature request. Switching this from type bug to type feature, and assigning back to me...