From 96d26be1d4ce49db45c6e21316d01b6a53561504 Mon Sep 17 00:00:00 2001 From: florian HENRY Date: Mon, 13 Jul 2020 17:51:58 +0200 Subject: [PATCH] fix extrafields linnktoObject Thirdpary option showAdress --- htdocs/core/class/html.form.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index cebe79da30a..59296826a08 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -6122,7 +6122,7 @@ class Form $prefixforautocompletemode = $objecttmp->element; if ($prefixforautocompletemode == 'societe') $prefixforautocompletemode = 'company'; $confkeyforautocompletemode = strtoupper($prefixforautocompletemode).'_USE_SEARCH_TO_SELECT'; // For example COMPANY_USE_SEARCH_TO_SELECT - $options=array(); + if (!empty($objecttmp->fields)) // For object that declare it, it is better to use declared fields (like societe, contact, ...) { $tmpfieldstoshow = '';