Project

General

Profile

Backport(バックポート) #1464

[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 9ca78ed1 (diff)
Added by Shogo Kawahara over 11 years ago

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

History

#1 Updated by Shogo Kawahara over 11 years ago

  • Tracker changed from Bug(バグ) to Backport(バックポート)

#2 Updated by Anonymous over 11 years ago

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

更新履歴 9ca78ed1df7e82a9a4a99750254ff914bff6cd9c で適用されました。

#3 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