問題点 #840

[BaserCMS1.5.3] ブログでカテゴリ無所属の記事が最近の投稿一覧に表示されない

Added by ryuring   5 months ago. Updated 5 months ago.

Status:終了 Start:02/17/2010
Priority:今すぐ Due date:
Assigned to:ryuring   % Done:

0%

Category:ブログ
Target version:BaserCMS 1.5.4 stable

Description

blog_controller.php (11.9 KB) ryuring  , 02/17/2010 07:24 am

blog_controller.php - 修正パッチ2(#842を解消済) (11.9 KB) ryuring  , 02/17/2010 08:16 am

History

Updated by ryuring   5 months ago

この問題は、CSV以外のデータベースで発生します。

baser/plugins/blog/controllers/blog_controller.php の 167行目、333行目の両方を下記の1文に書き換えることで解消できます。

$this->set('recentEntries',$this->BlogPost->find('all',array('fields'=>array('no','name'),'conditions'=>array('BlogPost.status'=>true,'BlogPost.blog_content_id'=>$contentId),'limit'=>5, 'order'=>'posts_date DESC','recursive'=>-1)));

パッチを用意しましたので上書きしてください。

Updated by ryuring   5 months ago

  • File blog_posts_controller.php added

Updated by ryuring   5 months ago

  • File deleted (blog_posts_controller.php)

Updated by ryuring   5 months ago

Updated by ryuring   5 months ago

  • Target version set to 32

Updated by ryuring   5 months ago

  • Status changed from 解決 to 終了

Updated by ryuring   5 months ago

  • Target version changed from 32 to BaserCMS 1.5.4 stable

Also available in: Atom PDF