Fix #16523 : return to backward compatibility
This commit is contained in:
parent
500f192a05
commit
e94f703f5d
@ -1472,8 +1472,7 @@ class Contact extends CommonObject
|
|||||||
if ($withpicto == -2) {
|
if ($withpicto == -2) {
|
||||||
$result .= '<!-- picto photo user --><span class="nopadding userimg'.($moreparam ? ' '.$moreparam : '').'">'.Form::showphoto('contact', $this, 0, 0, 0, 'userphoto'.($withpicto == -3 ? 'small' : ''), 'mini', 0, 1).'</span>';
|
$result .= '<!-- picto photo user --><span class="nopadding userimg'.($moreparam ? ' '.$moreparam : '').'">'.Form::showphoto('contact', $this, 0, 0, 0, 'userphoto'.($withpicto == -3 ? 'small' : ''), 'mini', 0, 1).'</span>';
|
||||||
}else {
|
}else {
|
||||||
$picto = $this->picto;
|
$result .= img_object(($notooltip ? '' : $label), ( $this->picto ? $this->picto : 'generic'), ($notooltip ? (($withpicto != 2) ? 'class="paddingright"' : '') : 'class="'.(($withpicto != 2) ? 'paddingright ' : '').'classfortooltip"'), 0, 0, $notooltip ? 0 : 1);
|
||||||
$result .= img_object(($notooltip ? '' : $label), ($picto ? $picto : 'generic'), ($notooltip ? (($withpicto != 2) ? 'class="paddingright"' : '') : 'class="'.(($withpicto != 2) ? 'paddingright ' : '').'classfortooltip"'), 0, 0, $notooltip ? 0 : 1);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ($withpicto != 2 && $withpicto != -2) {
|
if ($withpicto != 2 && $withpicto != -2) {
|
||||||
|
|||||||
@ -806,6 +806,28 @@ function projectLinesa(&$inc, $parent, &$lines, &$level, $var, $showproject, &$t
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Contacts of tasks for backward compatibility,
|
||||||
|
if (!empty($conf->global->PROJECT_SHOW_CONTACTS_IN_LIST)) {
|
||||||
|
print '<td>';
|
||||||
|
foreach (array('internal', 'external') as $source) {
|
||||||
|
$tab = $lines[$i]->liste_contact(-1, $source);
|
||||||
|
$num = count($tab);
|
||||||
|
if (!empty($num)) {
|
||||||
|
foreach ($tab as $contacttask) {
|
||||||
|
//var_dump($contacttask);
|
||||||
|
if ($source == 'internal') {
|
||||||
|
$c = new User($db);
|
||||||
|
} else {
|
||||||
|
$c = new Contact($db);
|
||||||
|
}
|
||||||
|
$c->fetch($contacttask['id']);
|
||||||
|
print $c->getNomUrl(1).' ('.$contacttask['libelle'].')<br>';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
print '</td>';
|
||||||
|
}
|
||||||
|
|
||||||
// Contacts of task
|
// Contacts of task
|
||||||
if (count($arrayfields) > 0 && !empty($arrayfields['c.assigned']['checked'])) {
|
if (count($arrayfields) > 0 && !empty($arrayfields['c.assigned']['checked'])) {
|
||||||
print '<td class="right">';
|
print '<td class="right">';
|
||||||
@ -973,6 +995,10 @@ function projectLinesa(&$inc, $parent, &$lines, &$level, $var, $showproject, &$t
|
|||||||
print '</td>';
|
print '</td>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// Contacts of task for backward compatibility,
|
||||||
|
if (!empty($conf->global->PROJECT_SHOW_CONTACTS_IN_LIST)) {
|
||||||
|
print '<td></td>';
|
||||||
|
}
|
||||||
// Contacts of task
|
// Contacts of task
|
||||||
if (count($arrayfields) > 0 && !empty($arrayfields['c.assigned']['checked'])) {
|
if (count($arrayfields) > 0 && !empty($arrayfields['c.assigned']['checked'])) {
|
||||||
print '<td></td>';
|
print '<td></td>';
|
||||||
|
|||||||
@ -809,6 +809,10 @@ if ($action == 'create' && $user->rights->projet->creer && (empty($object->third
|
|||||||
print '</td>';
|
print '</td>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// Contacts of task for backward compatibility,
|
||||||
|
if (!empty($conf->global->PROJECT_SHOW_CONTACTS_IN_LIST)) {
|
||||||
|
print '<td class="liste_titre"></td>';
|
||||||
|
}
|
||||||
|
|
||||||
if (!empty($arrayfields['c.assigned']['checked'])) {
|
if (!empty($arrayfields['c.assigned']['checked'])) {
|
||||||
print '<td class="liste_titre right">';
|
print '<td class="liste_titre right">';
|
||||||
@ -865,6 +869,10 @@ if ($action == 'create' && $user->rights->projet->creer && (empty($object->third
|
|||||||
print_liste_field_titre($arrayfields['t.billed']['label'], $_SERVER["PHP_SELF"], "", '', $param, '', $sortfield, $sortorder, 'right ');
|
print_liste_field_titre($arrayfields['t.billed']['label'], $_SERVER["PHP_SELF"], "", '', $param, '', $sortfield, $sortorder, 'right ');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// Contacts of task for backward compatibility,
|
||||||
|
if (!empty($conf->global->PROJECT_SHOW_CONTACTS_IN_LIST)) {
|
||||||
|
print_liste_field_titre("TaskRessourceLinks", $_SERVER["PHP_SELF"], '', '', $param, $sortfield, $sortorder);
|
||||||
|
}
|
||||||
if (!empty($arrayfields['c.assigned']['checked'])) {
|
if (!empty($arrayfields['c.assigned']['checked'])) {
|
||||||
print_liste_field_titre($arrayfields['c.assigned']['label'], $_SERVER["PHP_SELF"], "", '', $param, '', $sortfield, $sortorder, 'right ', '');
|
print_liste_field_titre($arrayfields['c.assigned']['label'], $_SERVER["PHP_SELF"], "", '', $param, '', $sortfield, $sortorder, 'right ', '');
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user