From 8ab86d116c9b18fa96771bab4a48bb9fbe790492 Mon Sep 17 00:00:00 2001 From: Zephyriony <142790847+zephyriony@users.noreply.github.com> Date: Wed, 9 Oct 2024 14:29:27 +0200 Subject: [PATCH] Update html.form.class.php --- htdocs/core/class/html.form.class.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 49bc37ca937d4..3ddadb90a1d4c 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -9559,6 +9559,9 @@ public function showLinkToObjectBlock($object, $restrictlinksto = array(), $excl } $possiblelinks = array(); + + $dontIncludeCompletedItems = getDolGlobalString('DONT_INCLUDE_COMPLETED_ELEMENTS_LINKS'); + if (is_object($object->thirdparty) && !empty($object->thirdparty->id) && $object->thirdparty->id > 0) { $listofidcompanytoscan = $object->thirdparty->id; if (($object->thirdparty->parent > 0) && getDolGlobalString('THIRDPARTY_INCLUDE_PARENT_IN_LINKTO')) { @@ -9574,8 +9577,6 @@ public function showLinkToObjectBlock($object, $restrictlinksto = array(), $excl unset($tmpproject); } - $dontIncludeCompletedItems = getDolGlobalString('DONT_INCLUDE_COMPLETED_ELEMENTS_LINKS'); - $possiblelinks = array( 'propal' => array( 'enabled' => isModEnabled('propal'),