From 71818bd4f45626e8ea91f6bc7a5b01fc5bb91cd6 Mon Sep 17 00:00:00 2001 From: MDW Date: Sat, 23 Mar 2024 15:38:16 +0100 Subject: [PATCH] Extra test to fix PhanTypeInvalidPropertyName --- htdocs/reception/contact.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/htdocs/reception/contact.php b/htdocs/reception/contact.php index e67a1434cba..ef247a3546c 100644 --- a/htdocs/reception/contact.php +++ b/htdocs/reception/contact.php @@ -58,7 +58,11 @@ if ($id > 0 || !empty($ref)) { } // Linked documents +<<<<<<< if ($origin == 'order_supplier' && $object->origin_object->id && isModEnabled("supplier_order")) { +======= + if ($origin == 'order_supplier' && is_string($typeobject) && $typeobject != '' && is_string($typeobject) && $object->$typeobject->id && isModEnabled("supplier_order")) { +>>>>>>> $objectsrc = new CommandeFournisseur($db); $objectsrc->fetch($object->origin_object->id); }