プロジェクト

全般

プロフィール

Backport(バックポート) #2567

Yuya Watanabe12年以上前に更新

h3. 概要

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

h3. 現象確認バージョン

* OpenPNE 3.6RC1
** opCommunityTopicPlugin 1.0.2

* OpenPNE 3.7.0-dev 3.7.0
** opCommunityTopicPlugin 0.9.8

h3. 修正パッチ

<pre>
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()
</pre>

戻る