Pman/Roo.php
authorAlan Knowles <alan@akbkhome.com>
Thu, 11 Nov 2010 11:15:56 +0000 (19:15 +0800)
committerAlan Knowles <alan@akbkhome.com>
Thu, 11 Nov 2010 11:15:56 +0000 (19:15 +0800)
Pman/Roo.php

index 82e054c..7766e83 100644 (file)
@@ -724,6 +724,7 @@ class Pman_Roo extends Pman
                     $tn = sprintf($ocl.'_%s', $c);
                     if ($tn == $distinct) {
                         $has_distinct = 'DISTINCT( ' . 'join_'.$ocl.'_'.$col.'.'.$k .')  as ' . $tc ;
+                        $this->countWhat =  'DISTINCT  join_'.$ocl.'_'.$col.'.'.$k;
                         continue;
                     }