Amelioration technique hook projectOverview

Bonjour,

Suite au développement d’un module j’ai rencontré un petit soucis en voulant faire apparaitre sur la vue d’ensemble d’un projet la nouvelle entité que j’avais créer.
J’ai utiliser le hook projectOverview mais mon entité n’est pas relié à un tiers pour faire fonctionner j’ai changer dans le fichier element.php les lignes suivantes (de 702 à 726):
Initialement:

foreach ($listofreferent as $key => $value)
{
	$title=$value['title'];
	$classname=$value['class'];
	$tablename=$value['table'];
	$datefieldname=$value['datefieldname'];
	$qualified=$value['test'];
	$langtoload=$value['lang'];
	$urlnew=$value['urlnew'];
	$buttonnew=$value['buttonnew'];
    $testnew=$value['testnew'];

	if ($qualified)
	{
		// If we want the project task array to have details of users
		//if ($key == 'project_task') $key = 'project_task_time';

	    if ($langtoload) $langs->load($langtoload);

		$element = new $classname($db);

		$addform='';

		$idtofilterthirdparty=0;
		$array_of_element_linkable_with_different_thirdparty = array('facture_fourn', 'commande_fournisseur', 'listbois');

par

foreach ($listofreferent as $key => $value)
{
	$title=$value['title'];
	$classname=$value['class'];
	$tablename=$value['table'];
	$datefieldname=$value['datefieldname'];
	$qualified=$value['test'];
	$langtoload=$value['lang'];
	$urlnew=$value['urlnew'];
	$buttonnew=$value['buttonnew'];
    $testnew=$value['testnew'];
//Ajout d'un element au tableau contenant la nouvelle entité non reliée au tiers
	$ellinkdifthird=array($value['ellinkdifthird']);

	if ($qualified)
	{
		// If we want the project task array to have details of users
		//if ($key == 'project_task') $key = 'project_task_time';

	    if ($langtoload) $langs->load($langtoload);

		$element = new $classname($db);

		$addform='';

		$idtofilterthirdparty=0;
		//$array_of_element_linkable_with_different_thirdparty = array('facture_fourn', 'commande_fournisseur');
//Fusion des tableaux
		$array_of_element_linkable_with_different_thirdparty = array_merge(array('facture_fourn', 'commande_fournisseur'),$ellinkdifthird);

En standard ça serait mieux!