Fix: use getpost

This commit is contained in:
Laurent Destailleur 2014-10-21 20:02:16 +02:00
parent 8e63f09764
commit d267a788d0

View File

@ -81,7 +81,7 @@ if (GETPOST('newcompany') || GETPOST('socid','int') || GETPOST('id_fourn'))
if (! empty($conf->global->SOCIETE_ALLOW_SEARCH_ON_ROWID)) $sql.=" OR rowid = '" . $db->escape($socid) . "'";
$sql.=")";
}
if (! empty($_GET["filter"])) $sql.= " AND ".$_GET["filter"]; // Add other filters
if (GETPOST("filter")) $sql.= " AND ".GETPOST("filter","alpha"); // Add other filters
$sql.= " ORDER BY nom ASC";
//dol_syslog("ajaxcompanies", LOG_DEBUG);