Project

General

Profile

Actions

Backport(バックポート) #2567

closed

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

Added by Yuya Watanabe about 13 years ago. Updated almost 13 years ago.

Status:
Fixed(完了)
Priority:
Normal(通常)
Assignee:
Target version:
Start date:
2011-09-25
Due date:
% Done:

100%

Estimated time:
opCommunityTopicPlugin 絞込条件:

Description

概要

トピック検索(/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()

Related issues 1 (0 open1 closed)

Related to opCommunityTopicPlugin - Bug(バグ) #2424: トピック検索結果の一覧に表示される画像が No Image になるFixed(完了)Yuya Watanabe2011-09-25

Actions
Actions #1

Updated by Yuya Watanabe about 13 years ago

  • Description updated (diff)
  • Status changed from Accepted(着手) to Pending Review(レビュー待ち)
  • % Done changed from 0 to 50
Actions #2

Updated by Yuya Watanabe about 13 years ago

  • Target version changed from 0.9.9 to 0.9.x
Actions #3

Updated by Yuya Watanabe about 13 years ago

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 のリリースとバンドルをおこなう」

Actions #4

Updated by Yuya Watanabe about 13 years ago

  • Status changed from Pending Review(レビュー待ち) to Pending Fixing(修正待ち)
Actions #5

Updated by Yuma Sakata almost 13 years ago

再現確認できました。

Environment (再現バージョン)

OpenPNE3.4.20

Way to repro (再現手順)

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

Way to fix (修正内容)

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

Actions #6

Updated by Yuma Sakata almost 13 years ago

  • Target version changed from 0.9.x to 0.9.10
Actions #7

Updated by Yuya Watanabe almost 13 years ago

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

Updated by Kousuke Ebihara almost 13 years ago

  • Status changed from Pending Review(レビュー待ち) to Pending Testing(テスト待ち)
  • % Done changed from 50 to 70
Actions #9

Updated by Yuma Sakata almost 13 years ago

  • Status changed from Pending Testing(テスト待ち) to Fixed(完了)
  • % Done changed from 70 to 100

テストOKです。

Actions

Also available in: Atom PDF