[Jaws-commits] r9628 - trunk/jaws/html/gadgets/Blog

afz at jaws-project.com afz at jaws-project.com
Thu Oct 2 14:58:59 UTC 2008


Author: afz
Date: 2008-10-02 14:58:59 +0000 (Thu, 02 Oct 2008)
New Revision: 9628

Modified:
   trunk/jaws/html/gadgets/Blog/Model.php
Log:
fix two problem in Blog for pgsql and mssql

Modified: trunk/jaws/html/gadgets/Blog/Model.php
===================================================================
--- trunk/jaws/html/gadgets/Blog/Model.php	2008-10-02 14:54:56 UTC (rev 9627)
+++ trunk/jaws/html/gadgets/Blog/Model.php	2008-10-02 14:58:59 UTC (rev 9628)
@@ -326,7 +326,7 @@
     {
         $sql = '
             SELECT
-                [id], [name], [description], [fast_url], [createtime], [updatetime]
+                [id], [name], [fast_url], [description], [createtime], [updatetime]
             FROM [[blog_category]]
             ORDER BY [name]';
 
@@ -1007,7 +1007,7 @@
             INNER JOIN [[blog]] ON [[blog]].[id] = [entry_id]
             WHERE [published] = {published} AND [[blog]].[publishtime] <= {now}
             GROUP BY
-                [[blog_category]].[id], [name]
+                [[blog_category]].[id], [name], [[blog_category]].[fast_url]
             ORDER BY [name]';
 
         $result = $GLOBALS['db']->queryAll($sql, $params);
@@ -2151,7 +2151,7 @@
                 COUNT([category_id]) as howmany, [name], [fast_url], [category_id]
             FROM [[blog_entrycat]]
             INNER JOIN [[blog_category]] ON [category_id] = [id]
-            GROUP BY [category_id], [name]
+            GROUP BY [category_id], [name], [fast_url]
             ORDER BY [name]';
 
         $types = array('integer', 'text', 'text', 'integer');



More information about the Jaws-commits mailing list