Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

- Fixed quip grabbing the wrong context_key while approving a comment…

… in the manager.

- Fixed Bug #3520
  • Loading branch information...
commit 215b781c234931454edecf770f9c3fa74121fc2f 1 parent 0e97437
Daniel Schlessmann authored April 24, 2012
5  core/components/quip/model/quip/quipcomment.class.php
@@ -64,7 +64,7 @@ public static function getThread(modX $modx,quipThread $thread,$parent = 0,$ids
64 64
         }
65 65
         if (!empty($parent)) {
66 66
             $c->where(array(
67  
-                'Ancestors.descendant' => $parent,
  67
+                'Descendants.ancestor' => $parent,
68 68
             ));
69 69
         }
70 70
         $total = $modx->getCount('quipComment',$c);
@@ -107,7 +107,8 @@ public function makeUrl($resource = 0,$params = array(),$options = array(),$addA
107 107
         if (empty($options['context_key'])) {
108 108
             $options['context_key'] = $this->get('context_key');
109 109
             if (empty($options['context_key'])) {
110  
-                $options['context_key'] = $this->xpdo->context->get('key');
  110
+                $modresource = $this->xpdo->getObject('modResource', $resource);
  111
+                $options['context_key'] = $modresource->get('context_key');
111 112
             }
112 113
         }
113 114
 

0 notes on commit 215b781

Please sign in to comment.
Something went wrong with that request. Please try again.