From 0aae72b69472f60dfe4a72dfbd5e168f084cb20a Mon Sep 17 00:00:00 2001 From: samifilali26 Date: Tue, 23 Jan 2024 09:53:20 +0100 Subject: [PATCH] update field name --- htdocs/societe/list.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/societe/list.php b/htdocs/societe/list.php index 22ad95f7776..21e811c25c8 100644 --- a/htdocs/societe/list.php +++ b/htdocs/societe/list.php @@ -1856,8 +1856,8 @@ while ($i < $imaxinloop) { // Parent company if (!empty($arrayfields['s2.nom']['checked'])) { print ''; - if ($companystatic->fk_parent > 0) { - $companyparent->fetch($companystatic->fk_parent); + if ($companystatic->parent > 0) { + $companyparent->fetch($companystatic->parent); print $companyparent->getNomUrl(1); } print "";