Project

General

Profile

Backport(バックポート) #1465

[api] "filterBy=hasApp" parameter of PersonAPI doesn't work

Added by Shogo Kawahara over 11 years ago. Updated about 11 years ago.

Status:
Fixed(完了)
Priority:
High(高め)
Target version:
Start date:
2010-08-02
Due date:
% Done:

100%


Description

Overview

"filterBy=hasApp" parameter of PersonAPI doesn't work

Causes

The DQL in "lib/util/opJsonDbOpensocialService.class.php" is wrong.

diff --git a/lib/util/opJsonDbOpensocialService.class.php b/lib/util/opJsonDbOpensocialService.class.php
index e0d4597..9adb0cf 100644
--- a/lib/util/opJsonDbOpensocialService.class.php
+++ b/lib/util/opJsonDbOpensocialService.class.php
@@ -48,7 +48,7 @@ class opJsonDbOpensocialService implements ActivityService, PersonService, AppDa
       if (CollectionOptions::HAS_APP_FILTER === $options->getFilterBy() && $token->getAppId())
       {
         $memberApplications = Doctrine::getTable('MemberApplication')->createQuery()
-          ->where('application_id', $token->getAppId())
+          ->where('application_id = ?', $token->getAppId())
           ->execute();
         if (count($memberApplications))
         {

Way to fix

Fix DQL.


Related issues

Related to opOpenSocialPlugin - Bug(バグ) #1463: [api] "filterBy=hasApp" parameter of PersonAPI doesn't work Fixed(完了) 2010-08-02

Associated revisions

Revision 67646fca (diff)
Added by Shogo Kawahara over 11 years ago

fixed DQL in opJsonDbOpensocialService for filterBy parameter of PersonAPI (fixes #1465, BP from #1463)

History

#1 Updated by Anonymous over 11 years ago

  • Status changed from Pending Fixing(修正待ち) to Pending Review(レビュー待ち)
  • % Done changed from 0 to 50

更新履歴 67646fcac53c39c99e34c83ac32a3388d666b903 で適用されました。

#2 Updated by Shogo Kawahara about 11 years ago

  • Status changed from Pending Review(レビュー待ち) to Fixed(完了)
  • % Done changed from 50 to 100

Also available in: Atom PDF