Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #54 from bones418/master

Fixed tags tab to display correctly
  • Loading branch information...
commit 948f19495d02f4d100a9e12bfa2ae39ab05b4a2d 2 parents a63c935 + f168dc2
Jim Walker authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 app/models/tag.php
5 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',
Please sign in to comment.
Something went wrong with that request. Please try again.