Subject: | Empty brackets needlessly duplicates params. (False trigger) |
Background: jQuery UI uses brackets as a preferred means for
serialization, so if you have a series of elements in a widget:
id="foo_4", id="foo_6", etc. and you request the widget to serialize
you'll have foo[]=4&foo[]=6 which can then be append on the URL.. This
is simply the default.
C:P:P:N will false triggers here though and it will modify
$c->req->params with by adding a 'foo'. Now, $c->req->params will have
'foo[]', AND 'foo'. Both, set with an array ref to [4,6].
I would suggest you not have C:P:P:N trigger if the bracket is empty
'[]', and let the default action do its thing.
--
Evan Carroll
System Lord of the Internets
http://www.evancarroll.com