MULTIEMPRESA: algunas mejoras en el manejo de areas para multiempresas

This commit is contained in:
humano 2015-10-31 12:13:23 -05:00
parent 752feabec0
commit 926cfac7d5

View File

@ -1372,7 +1372,7 @@ if($where =='AGRUPADO'){$group="group by $value ";}
elseif($where != ''){$w = "AND ".$where;}else{ $w="";}
$busca = array("[","]");
if( strpos( $onchange,'[') !== false ){$fila=str_replace($busca,'',$onchange);$onchange='';};
$consulta = "SELECT * FROM $tabla WHERE 1 $w $group ORDER BY orden ";
$consulta = "SELECT * FROM $tabla WHERE 1 $w AND id_empresa='$_SESSION[id_empresa]' $group ORDER BY orden ";
$sql=mysql_query($consulta,$link);
if($nombre==''){$name=$tabla."_".$value;}else{$name = "$nombre";}