Ignore:
Timestamp:
Oct 14, 2010, 4:16:32 PM (14 years ago)
Author:
grum
Message:

Fix bug on the categorySelector (multiselect mode) ; add property 'name'
Fix bug on the requestBuilder (add DISTINCT keyword on request...)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/GrumPluginClasses/classes/GPCRequestBuilder.class.inc.php

    r7175 r7181  
    721721    $sql="INSERT INTO ".self::$tables['result_cache']." (SELECT DISTINCT $requestNumber, ".$build['SELECT']." $sql)";
    722722
    723 //echo $sql;
    724723
    725724    $returned="0;0";
     
    11841183          if($val['mode']=='item')
    11851184          {
    1186             $returnedS.="(SELECT ".call_user_func(Array('RBCallBack'.$val['plugin'], 'getImageId'))." AS imageId
     1185            $returnedS.="(SELECT DISTINCT ".call_user_func(Array('RBCallBack'.$val['plugin'], 'getImageId'))." AS imageId
    11871186                          FROM ".call_user_func(Array('RBCallBack'.$val['plugin'], 'getFrom'))."
    11881187                          WHERE ".$val['value'].") t".self::$tGlobalId." ";
     
    12071206          if($val['mode']=='item')
    12081207          {
    1209             $returnedS.="SELECT '$requestNumber', t".self::$tGlobalId.".imageId
     1208            $returnedS.="SELECT DISTINCT '$requestNumber', t".self::$tGlobalId.".imageId
    12101209                          FROM (SELECT ".call_user_func(Array('RBCallBack'.$val['plugin'], 'getImageId'))." AS imageId
    12111210                                FROM ".call_user_func(Array('RBCallBack'.$val['plugin'], 'getFrom'))."
Note: See TracChangeset for help on using the changeset viewer.