Bug(バグ) #1463
[api] "filterBy=hasApp" parameter of PersonAPI doesn't work
開始日:
2010-08-02
期日:
進捗率:
100%
3.6 で発生するか:
Yes
[QA]バグ通知済:
いいえ
3.8 で発生するか:
Unknown (未調査)
説明
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.
関連するチケット
関係しているリビジョン
fixed DQL in opJsonDbOpensocialService for filterBy parameter of PersonAPI (fixes #1463)
履歴
#1 Shogo Kawahara が13年以上前に更新
- ステータス を New(新規) から Pending Fixing(修正待ち) に変更
- 優先度 を Normal(通常) から High(高め) に変更
#2 匿名ユーザー が13年以上前に更新
- ステータス を Pending Fixing(修正待ち) から Pending Review(レビュー待ち) に変更
- 進捗率 を 0 から 50 に変更
更新履歴 8056327b817259a07030fa4f8f1e05bab5a1096d で適用されました。
#3 Kousuke Ebihara が13年以上前に更新
- 3.6 で発生するか を Yes にセット
#4 Shogo Kawahara が13年以上前に更新
パフォーマンス上の問題が発生していますが、別問題とします。
#5 Shogo Kawahara が13年以上前に更新
- ステータス を Pending Review(レビュー待ち) から Fixed(完了) に変更
- 進捗率 を 50 から 100 に変更