diff --git a/ChangeLog b/ChangeLog index 0e300fd2493..afae634dfb3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -14,6 +14,7 @@ FIX [ bug #1852 ] JS error when editing a customer order line FIX [ bug #2900 ] Courtesy title is not stored in create thirdparty form FIX [ bug #3055 ] Product image thumbnails were not deleted after deleting the image FIX [ bug 1634 ] Error deleting a project when it had many linked objects +FIX [ bug 1925 ] "Link to order" option in supplier invoices is not working properly ***** ChangeLog for 3.7.1 compared to 3.7.* ***** FIX Bug in the new photo system diff --git a/htdocs/fourn/facture/card.php b/htdocs/fourn/facture/card.php index 08bffd09a67..1919faadee4 100644 --- a/htdocs/fourn/facture/card.php +++ b/htdocs/fourn/facture/card.php @@ -824,7 +824,7 @@ elseif ($action == 'reopen' && $user->rights->fournisseur->facture->creer) if (GETPOST('linkedOrder')) { $object->fetch($id); $object->fetch_thirdparty(); - $result = $object->add_object_linked('commande', GETPOST('linkedOrder')); + $result = $object->add_object_linked('order_supplier', GETPOST('linkedOrder')); } // Add file in email form