From ce9a25d8286c42d87f495b1aca21c0e31a1dc5b2 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 ef247a3546c23..0b5d00d2d801f 100644 --- a/htdocs/reception/contact.php +++ b/htdocs/reception/contact.php @@ -202,7 +202,11 @@ print ''; // Linked documents +<<<<<<< HEAD if ($origin == 'order_supplier' && $object->origin_object->id && isModEnabled("supplier_order")) { +======= + if ($origin == 'order_supplier' && is_string($typeobject) && $typeobject != '' && $object->$typeobject->id && isModEnabled("supplier_order")) { +>>>>>>> b56fd32716c (Extra test to fix PhanTypeInvalidPropertyName) print '
'; $objectsrc = new CommandeFournisseur($db); $objectsrc->fetch($object->origin_object->id);