Skip to content

Commit

Permalink
fix #1242 admin-thirdテーマでコンテンツが重複して表示される問題を改善
Browse files Browse the repository at this point in the history
  • Loading branch information
ryuring committed Oct 16, 2019
1 parent 36bfc59 commit 9320022
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion lib/Baser/Plugin/Blog/Config/setting.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@
'BlogTags' => ['title' => 'ブログタグ設定', 'url' => ['admin' => true, 'plugin' => 'blog', 'controller' => 'blog_tags', 'action' => 'index']],
]
]];
/* @var BlogContent $BlogContent */
$BlogContent = ClassRegistry::init('Blog.BlogContent');
$blogContents = $BlogContent->find('all', ['recursive' => 0]);
$blogContents = $BlogContent->find('all', ['conditions' => [$BlogContent->Content->getConditionAllowPublish()], 'recursive' => 0]);
foreach ($blogContents as $blogContent) {
$blog = $blogContent['BlogContent'];
$content = $blogContent['Content'];
Expand Down
3 changes: 2 additions & 1 deletion lib/Baser/Plugin/Mail/Config/setting.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@
]
]
];
/* @var MailContent $MailContent */
$MailContent = ClassRegistry::init('Mail.MailContent');
$mailContents = $MailContent->find('all', ['recursive' => 0]);
$mailContents = $MailContent->find('all', ['conditions' => [$MailContent->Content->getConditionAllowPublish()], 'recursive' => 0]);
foreach ($mailContents as $mailContent) {
$mail = $mailContent['MailContent'];
$content = $mailContent['Content'];
Expand Down

0 comments on commit 9320022

Please sign in to comment.