diff --git a/htdocs/commande/card.php b/htdocs/commande/card.php index 5de377930d7..3ee5b89e01a 100644 --- a/htdocs/commande/card.php +++ b/htdocs/commande/card.php @@ -1863,6 +1863,7 @@ if ($action == 'create' && $usercancreate) $author = new User($db); $author->fetch($object->user_author_id); + $object->fetch_thirdparty(); $res = $object->fetch_optionals(); $head = commande_prepare_head($object); diff --git a/htdocs/fourn/commande/dispatch.php b/htdocs/fourn/commande/dispatch.php index 7a11d22aa53..03297d9f8fc 100644 --- a/htdocs/fourn/commande/dispatch.php +++ b/htdocs/fourn/commande/dispatch.php @@ -1290,7 +1290,7 @@ if ($id > 0 || !empty($ref)) { print ''; } - if ($action != 'editline' ||  && $lineid != $objp->dispatchlineid) + if ($action != 'editline' || $lineid != $objp->dispatchlineid) { print ''; print 'dispatchlineid .'#line_'. $objp->dispatchlineid . '">';