You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@shindig.apache.org by "Paul Lindner (JIRA)" <ji...@apache.org> on 2010/08/13 19:50:17 UTC
[jira] Resolved: (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 ]
Paul Lindner resolved SHINDIG-1408.
-----------------------------------
Resolution: Fixed
patch applied, thanks!
> 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.