Fix backward compatibility for type of members
This commit is contained in:
parent
732fd8a04b
commit
ca3988ca73
@ -313,8 +313,9 @@ if ($rowid && $action != 'edit')
|
|||||||
print '<tr>';
|
print '<tr>';
|
||||||
print '<td class="titlefield">'.$langs->trans("Type").'</td>';
|
print '<td class="titlefield">'.$langs->trans("Type").'</td>';
|
||||||
print '<td class="valeur">';
|
print '<td class="valeur">';
|
||||||
if (! empty($object->fk_type) ) {
|
if ($object->fk_type > 0 || $adh->typeid > 0) {
|
||||||
$adht->fetch($object->fk_type);
|
$typeid = ($object->fk_type > 0 ? $object->fk_type : $adh->typeid);
|
||||||
|
$adht->fetch($typeid);
|
||||||
print $adht->getNomUrl(1);
|
print $adht->getNomUrl(1);
|
||||||
} else {
|
} else {
|
||||||
print $langs->trans("NoType");
|
print $langs->trans("NoType");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user