MULTIEMPRESA: algunas mejoras en el manejo de areas para multiempresas
This commit is contained in:
parent
752feabec0
commit
926cfac7d5
@ -1372,7 +1372,7 @@ if($where =='AGRUPADO'){$group="group by $value ";}
|
|||||||
elseif($where != ''){$w = "AND ".$where;}else{ $w="";}
|
elseif($where != ''){$w = "AND ".$where;}else{ $w="";}
|
||||||
$busca = array("[","]");
|
$busca = array("[","]");
|
||||||
if( strpos( $onchange,'[') !== false ){$fila=str_replace($busca,'',$onchange);$onchange='';};
|
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);
|
$sql=mysql_query($consulta,$link);
|
||||||
if($nombre==''){$name=$tabla."_".$value;}else{$name = "$nombre";}
|
if($nombre==''){$name=$tabla."_".$value;}else{$name = "$nombre";}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user