chrischabot / opensocial-php-client

Automatically exported from code.google.com/p/opensocial-php-client
Apache License 2.0
0 stars 1 forks source link

osapiException raised : Duplicate key in osapiBatch #78

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Reproduce steps:

$batch = $osapi->newBatch();
$batch->add($request, 'B1');
$batch->add($request, 'B2');
$batch->add($request, '1');

the last line will trigger exception:
"osapiException raised : Duplicate key in osapiBatch"

It's because "osapiBatch->add" function duplicate key check has a bug.

Original issue reported on code.google.com by nonl...@gmail.com on 4 Jan 2011 at 7:03