Order result fetchObjectLinked by sourcetype

This commit is contained in:
fhenry 2013-05-10 18:23:13 +02:00
parent 3a05d6c641
commit 4bb6bd8697

View File

@ -1711,6 +1711,7 @@ abstract class CommonObject
$sql.= "(fk_source = '".$sourceid."' AND sourcetype = '".$sourcetype."')";
$sql.= " ".$clause." (fk_target = '".$targetid."' AND targettype = '".$targettype."')";
}
$sql = ' ORDER BY sourcetype';
//print $sql;
dol_syslog(get_class($this)."::fetchObjectLink sql=".$sql);