プロジェクト

全般

プロフィール

Backport(バックポート) #2567

トピック検索結果の一覧に表示される画像が No Image になる

Yuya Watanabe12年以上前に追加. 約12年前に更新.

ステータス:
Fixed(完了)
優先度:
Normal(通常)
担当者:
対象バージョン:
開始日:
2011-09-25
期日:
進捗率:

100%

opCommunityTopicPlugin 絞込条件:

説明

概要

トピック検索(/communityTopic/search)の検索結果に画像が表示されるが、コミュニティ画像が登録されているコミュニティのトピックであってもNoImage になります。
コミュニティ画像を表示させるような改善をお願いします。

現象確認バージョン

  • OpenPNE 3.6RC1
    • opCommunityTopicPlugin 1.0.2
  • OpenPNE 3.7.0-dev
    • opCommunityTopicPlugin 0.9.8

修正パッチ

diff --git a/lib/model/doctrine/PluginCommunityEvent.class.php b/lib/model/doctrine/PluginCommunityEvent.class.php
index a70d880..91d244f 100644
--- a/lib/model/doctrine/PluginCommunityEvent.class.php
+++ b/lib/model/doctrine/PluginCommunityEvent.class.php
@@ -112,7 +112,7 @@ abstract class PluginCommunityEvent extends BaseCommunityEvent
   // for pager
   public function getImageFilename()
   {
-    $this->getCommunity()->getImageFilename();
+    return $this->getCommunity()->getImageFilename();
   }

   public function postInsert($event)
diff --git a/lib/model/doctrine/PluginCommunityTopic.class.php b/lib/model/doctrine/PluginCommunityTopic.class.php
index c4306ff..04df77d 100644
--- a/lib/model/doctrine/PluginCommunityTopic.class.php
+++ b/lib/model/doctrine/PluginCommunityTopic.class.php
@@ -50,7 +50,7 @@ abstract class PluginCommunityTopic extends BaseCommunityTopic
   // for pager
   public function getImageFilename()
   {
-    $this->getCommunity()->getImageFilename();
+    return $this->getCommunity()->getImageFilename();
   }

   public function getImagesWithNumber()

関連するチケット

関連している opCommunityTopicPlugin - Bug(バグ) #2424: トピック検索結果の一覧に表示される画像が No Image になる Fixed(完了) 2011-09-25

履歴

#1 Yuya Watanabe12年以上前に更新

  • 説明 を更新 (diff)
  • ステータスAccepted(着手) から Pending Review(レビュー待ち) に変更
  • 進捗率0 から 50 に変更

#2 Yuya Watanabe12年以上前に更新

  • 対象バージョン0.9.9 から 0.9.x に変更

#3 Yuya Watanabe12年以上前に更新

stable-0.9.x にコミットされていますが 0.9.9 リリースのため一旦Revert対象とし,Revertを行った後にステータスをPending Fixingに変更することを予定しています. 0.9.9 リリース後, 再度 stable-0.9.x へ適用する必要があります.なお,本チケットにおけるRevert対象のコミットは以下のとおりです.

https://github.com/tejimaya/opCommunityTopicPlugin/commit/415acf10504d9a1c016e0b80511d9e38dbba6a70

参考: #2575 「opCommunityTopicPlugin 0.9.9 のリリースとバンドルをおこなう」

#4 Yuya Watanabe12年以上前に更新

  • ステータスPending Review(レビュー待ち) から Pending Fixing(修正待ち) に変更

#5 Yuma Sakata約12年前に更新

再現確認できました。

Environment (再現バージョン)

OpenPNE3.4.20

Way to repro (再現手順)

0. コミュニティ作成しておく
1. 手順0 で作成したコミュニティに画像を設定する
2. 手順0 で作成したコミュニティにトピックを作成する
3. コミュニティトピック検索する
4. 手順1 で設定した画像が表示されない

Way to fix (修正内容)

トピック検索結果の一覧にコミュニティトップ画像が表示されるように修正お願いします。

#6 Yuma Sakata約12年前に更新

  • 対象バージョン0.9.x から 0.9.10 に変更

#7 Yuya Watanabe約12年前に更新

  • ステータスPending Fixing(修正待ち) から Pending Review(レビュー待ち) に変更
  • 進捗率0 から 50 に変更

#8 Kousuke Ebihara約12年前に更新

  • ステータスPending Review(レビュー待ち) から Pending Testing(テスト待ち) に変更
  • 進捗率50 から 70 に変更

#9 Yuma Sakata約12年前に更新

  • ステータスPending Testing(テスト待ち) から Fixed(完了) に変更
  • 進捗率70 から 100 に変更

テストOKです。

他の形式にエクスポート: Atom PDF