From 39b0ed7fc23ed2465dea259f58aacaa0b82c4df0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20Garci=CC=81a=20de=20La=20Fuente?= Date: Wed, 14 May 2014 22:47:19 +0200 Subject: [PATCH] Fix: [ bug #1393 ] PHP Warning when creating a supplier invoice. --- ChangeLog | 1 + htdocs/fourn/facture/fiche.php | 1 + 2 files changed, 2 insertions(+) diff --git a/ChangeLog b/ChangeLog index 3bb088b99f3..07cc056c322 100644 --- a/ChangeLog +++ b/ChangeLog @@ -26,6 +26,7 @@ Fix: [ bug #1381 ] PHP Warning when listing stock transactions page. Fix: [ bug #1367 ] "Show invoice" link after a POS sell throws an error. Fix: TCPDF error file not found in member card generation. Fix: [ bug #1380 ] Customer invoices are not grouped in company results report. +Fix: [ bug #1393 ] PHP Warning when creating a supplier invoice. ***** ChangeLog for 3.5.2 compared to 3.5.1 ***** Fix: Can't add user for a task. diff --git a/htdocs/fourn/facture/fiche.php b/htdocs/fourn/facture/fiche.php index f0b60a9a33c..566ae26f640 100644 --- a/htdocs/fourn/facture/fiche.php +++ b/htdocs/fourn/facture/fiche.php @@ -461,6 +461,7 @@ elseif ($action == 'add' && $user->rights->fournisseur->facture->creer) $db->commit(); if (empty($conf->global->MAIN_DISABLE_PDF_AUTOUPDATE)) { + $outputlangs = $langs; $result=supplier_invoice_pdf_create($db, $object, $object->modelpdf, $outputlangs, $hidedetails, $hidedesc, $hideref); if ($result <= 0) {