From b64adcc065cd140b8697bdd39828942d24ae410d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20Garci=CC=81a=20de=20La=20Fuente?= Date: Sun, 19 Jul 2015 15:13:27 +0200 Subject: [PATCH] FIX [ bug 1925 ] "Link to order" option in supplier invoices is not working properly Patch submitted by Philippe (pheno) at https://doliforge.org/tracker/?func=detail&aid=1925&group_id=144 --- ChangeLog | 1 + htdocs/fourn/facture/card.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 1dd68adceb7..0be06f07923 100644 --- a/ChangeLog +++ b/ChangeLog @@ -13,6 +13,7 @@ FIX [ bug #2855 ] Wrong translation key in localtax report page 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 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