Fix empty ref in contract list tool tip
This commit is contained in:
parent
3281d5ec17
commit
aa8ec1cd9c
@ -199,7 +199,7 @@ $now = dol_now();
|
||||
|
||||
$form = new Form($db);
|
||||
|
||||
$sql = "SELECT c.rowid as cid, c.ref, c.statut as cstatut,";
|
||||
$sql = "SELECT c.rowid as cid, c.ref, c.statut as cstatut, c.ref_customer, c.ref_supplier,";
|
||||
$sql .= " s.rowid as socid, s.nom as name, s.email, s.client, s.fournisseur,";
|
||||
$sql .= " cd.rowid, cd.description, cd.statut,";
|
||||
$sql .= " p.rowid as pid, p.ref as pref, p.label as label, p.fk_product_type as ptype, p.entity as pentity,";
|
||||
@ -564,6 +564,8 @@ while ($i < min($num, $limit))
|
||||
|
||||
$contractstatic->id = $obj->cid;
|
||||
$contractstatic->ref = $obj->ref ? $obj->ref : $obj->cid;
|
||||
$contractstatic->ref_customer = $obj->ref_customer;
|
||||
$contractstatic->ref_supplier = $obj->ref_supplier;
|
||||
|
||||
$companystatic->id = $obj->socid;
|
||||
$companystatic->name = $obj->name;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user