[pLog-svn] r5396 - plog/branches/lifetype-1.2/class/dao/customfields

oscar at devel.lifetype.net oscar at devel.lifetype.net
Sat May 12 16:35:59 EDT 2007


Author: oscar
Date: 2007-05-12 16:35:58 -0400 (Sat, 12 May 2007)
New Revision: 5396

Modified:
   plog/branches/lifetype-1.2/class/dao/customfields/customfieldsvalues.class.php
Log:
Potential fix for the issure reported in http://bugs.lifetype.net/view.php?id=1299, which I finally was able to reproduce (it was an issue with custom fields that had the same name used in more than one blog)


Modified: plog/branches/lifetype-1.2/class/dao/customfields/customfieldsvalues.class.php
===================================================================
--- plog/branches/lifetype-1.2/class/dao/customfields/customfieldsvalues.class.php	2007-05-11 07:17:35 UTC (rev 5395)
+++ plog/branches/lifetype-1.2/class/dao/customfields/customfieldsvalues.class.php	2007-05-12 20:35:58 UTC (rev 5396)
@@ -45,7 +45,8 @@
 							 v.article_id AS article_id, v.blog_id AS blog_id
                              FROM {$prefix}custom_fields_values v 
                              RIGHT OUTER JOIN {$prefix}custom_fields_definition d 
-                             ON v.article_id = ".Db::qstr($articleId)." AND v.field_id = d.id";
+                             ON v.field_id = d.id
+							 WHERE v.article_id = '".Db::qstr($articleId)."'";
                       
             $result = $this->Execute( $query );
             



More information about the pLog-svn mailing list