PDA

View Full Version : 1.1-beta2 'params' of Ext load method are handled differently than in 1.0.1



darek.adamkiewicz
5 Jul 2007, 2:22 AM
Hello Folks

I noticed that e.g.
obj = { dd : [1,2,100], dd1 : [3,4,101] };
msg.load ({
url: 'path/script',
params : obj,
....
});

in v1.0.1
is passed to script as $_POST variable
(php notation)
array (
'dd' => '1,2,100',
'dd'=>'3,4,101',
)

while in v.1.1-beta2
array (
'dd' => '100',
'dd'=>'101',
)
bug?

Regards
Darek

jack.slocum
5 Jul 2007, 2:34 AM
No, it was previously a bug and it was fixed. If you want to pass an array as a comma list, you can join it (or toString()). e.g. [1,2,100].join(',')