From accf426f198b15e7215d5fef618aac074dbc2ada Mon Sep 17 00:00:00 2001 From: Gauthier PC portable 024 Date: Fri, 4 Feb 2022 15:14:30 +0100 Subject: [PATCH] FIX : extrafields are not used yet + fix ihm --- htdocs/hrm/class/position.class.php | 2 +- htdocs/hrm/position_card.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/hrm/class/position.class.php b/htdocs/hrm/class/position.class.php index bd31311f4bf..2401791bb5f 100644 --- a/htdocs/hrm/class/position.class.php +++ b/htdocs/hrm/class/position.class.php @@ -59,7 +59,7 @@ class Position extends CommonObject /** * @var int Does object support extrafields ? 0=No, 1=Yes */ - public $isextrafieldmanaged = 1; + public $isextrafieldmanaged = 0; /** * @var string String with name of icon for position. Must be the part after the 'object_' into object_position.png diff --git a/htdocs/hrm/position_card.php b/htdocs/hrm/position_card.php index 3287091dcdb..c26d981a324 100644 --- a/htdocs/hrm/position_card.php +++ b/htdocs/hrm/position_card.php @@ -276,7 +276,7 @@ function DisplayPositionCard(&$object) $morehtmlref = '
'; $u_position = new User(($db)); $u_position->fetch($object->fk_user); - $morehtmlref .= $langs->trans('Employee').' : '.$u_position->getNomUrl(1); + $morehtmlref .= $langs->trans('Employee').' : '.($u_position->id > 0 ? $u_position->getNomUrl(1) : ''); $job = new Job($db); $job->fetch($object->fk_job); $morehtmlref .= '
'.$langs->trans('Job').' : '.$job->getNomUrl(1);