Fix show thirdparty if it exists only
This commit is contained in:
parent
a4b32ebe74
commit
9d9799c12e
@ -1892,6 +1892,7 @@ if (($id > 0 || !empty($ref)) || $projectidforalltimes > 0 || $allprojectforuser
|
|||||||
// Thirdparty
|
// Thirdparty
|
||||||
if (!empty($arrayfields['p.fk_soc']['checked'])) {
|
if (!empty($arrayfields['p.fk_soc']['checked'])) {
|
||||||
print '<td class="nowrap">';
|
print '<td class="nowrap">';
|
||||||
|
if ($task_time->fk_soc > 0) {
|
||||||
if (empty($conf->cache['thridparty'][$task_time->fk_soc])) {
|
if (empty($conf->cache['thridparty'][$task_time->fk_soc])) {
|
||||||
$tmpsociete = new Societe($db);
|
$tmpsociete = new Societe($db);
|
||||||
$tmpsociete->fetch($task_time->fk_soc);
|
$tmpsociete->fetch($task_time->fk_soc);
|
||||||
@ -1900,6 +1901,7 @@ if (($id > 0 || !empty($ref)) || $projectidforalltimes > 0 || $allprojectforuser
|
|||||||
$tmpsociete = $conf->cache['thridparty'][$task_time->fk_soc];
|
$tmpsociete = $conf->cache['thridparty'][$task_time->fk_soc];
|
||||||
}
|
}
|
||||||
print $tmpsociete->getNomUrl(1);
|
print $tmpsociete->getNomUrl(1);
|
||||||
|
}
|
||||||
print '</td>';
|
print '</td>';
|
||||||
if (!$i) {
|
if (!$i) {
|
||||||
$totalarray['nbfield']++;
|
$totalarray['nbfield']++;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user