Update html.formcontract.class.php
This commit is contained in:
parent
8ff24282d9
commit
6715eaee09
@ -70,11 +70,8 @@ class FormContract
|
||||
if (!empty($conf->global->CONTRACT_HIDE_UNSELECTABLES)) $hideunselectables = true;
|
||||
|
||||
// Search all contacts
|
||||
$sql = 'SELECT c.rowid, c.ref, c.fk_soc, c.statut';
|
||||
if ($showRef)
|
||||
{
|
||||
$sql .= ', c.ref_customer, c.ref_supplier';
|
||||
}
|
||||
$sql = 'SELECT c.rowid, c.ref, c.fk_soc, c.statut,';
|
||||
$sql .= ' c.ref_customer, c.ref_supplier';
|
||||
$sql .= ' FROM '.MAIN_DB_PREFIX.'contrat as c';
|
||||
$sql .= " WHERE c.entity = ".$conf->entity;
|
||||
//if ($contratListId) $sql.= " AND c.rowid IN (".$contratListId.")";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user