CRM-15435: Fix custom group weights (mostly for Case ActivityView).
authorMathieu Lutfy <mathieu@bidon.ca>
Thu, 9 Oct 2014 18:20:48 +0000 (14:20 -0400)
committerMathieu Lutfy <mathieu@bidon.ca>
Thu, 9 Oct 2014 18:20:48 +0000 (14:20 -0400)
CRM/Case/XMLProcessor/Report.php

index 13d40f6f52e20d9c5e1cb698906866b95892ab72..bdfc9c4ca1c1c6477d2cf5831850fd89f2763385 100644 (file)
@@ -628,7 +628,7 @@ AND    cg.extends = 'Activity'";
       else {
         $query .= "AND cg.extends_entity_column_value IS NULL";
       }
-      $query .= "ORDER BY cf.weight";
+      $query .= "ORDER BY cg.weight, cf.weight";
       $params = array(
         1 => array($activityTypeID,
           'Integer',