操作
Backport(バックポート) #1465
完了[api] "filterBy=hasApp" parameter of PersonAPI doesn't work
開始日:
2010-08-02
期日:
進捗率:
100%
予定工数:
説明
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.
操作