You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@shindig.apache.org by "Ivo Jansch (JIRA)" <ji...@apache.org> on 2010/08/12 15:11:17 UTC
[jira] Updated: (SHINDIG-1408) JsonDbOpensocialService->getPeople
uses outdated way of processing ?fields= parameter
[ https://issues.apache.org/jira/browse/SHINDIG-1408?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ivo Jansch updated SHINDIG-1408:
--------------------------------
Attachment: shindig-php-patch
Patch file that fixes this issue by using self::adjustFields for filtering fields.
> JsonDbOpensocialService->getPeople uses outdated way of processing ?fields= parameter
> -------------------------------------------------------------------------------------
>
> Key: SHINDIG-1408
> URL: https://issues.apache.org/jira/browse/SHINDIG-1408
> Project: Shindig
> Issue Type: Bug
> Components: PHP
> Affects Versions: 2.0.0
> Environment: All
> Reporter: Ivo Jansch
> Fix For: 2.0.0
>
> Attachments: shindig-php-patch
>
>
> In JsonDbOpensocialService's getPeople call, there is an old way of reading the $fields parameter. It checks for $fields[0] which throws a notice since $fields is an associative array nowadays. Also, there is a nice self::adjustFields method that can be used to filter the fields.
> I've adjusted getFields to use self::adjustFields, which also removes the missing index notice. I'll attach the patch.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.