Fix: use getpost
This commit is contained in:
parent
8e63f09764
commit
d267a788d0
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user