Permalink
Browse files

Merge pull request #54 from bones418/master

Fixed tags tab to display correctly
  • Loading branch information...
2 parents a63c935 + f168dc2 commit 948f19495d02f4d100a9e12bfa2ae39ab05b4a2d @Datawalke committed Aug 31, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 app/models/tag.php
View
@@ -2,6 +2,8 @@
class Tag extends AppModel {
var $name = 'Tag';
+ var $actsAs = array('Containable');
+
var $hasAndBelongsToMany = array(
'Post' => array(
'className' => 'Post',
@@ -54,7 +56,8 @@ public function tagSearch($tag, $page) {
'fields' => array('User.public_key', 'User.username')
),
'Answer' => array(
- 'fields' => array('Answer.id')
+ 'fields' => array('Answer.id'),
+ 'conditions' => array('Answer.flags <' => $flag_check['Setting']['value'])
),
'conditions' => array('Post.flags <' => $flag_check['Setting']['value']),
'fields' => array('Post.title', 'Post.url_title', 'Post.public_key',

0 comments on commit 948f194

Please sign in to comment.