From 4d2b96d0294cf9fbf36fb08df277368f22762e13 Mon Sep 17 00:00:00 2001 From: Lucas Marcouiller Date: Thu, 21 Oct 2021 18:08:20 +0200 Subject: [PATCH] fix inventory scan --- htdocs/core/class/html.formother.class.php | 4 ++-- htdocs/product/inventory/ajax/searchfrombarcode.php | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/htdocs/core/class/html.formother.class.php b/htdocs/core/class/html.formother.class.php index 1d8dd1db08e..d1f50889182 100644 --- a/htdocs/core/class/html.formother.class.php +++ b/htdocs/core/class/html.formother.class.php @@ -77,9 +77,9 @@ class FormOther $out .= ' Scan a product barcode
'; $out .= ' Scan a product lot or serial number
'; - $stringaddbarcode = $langs->trans("QtyToAddAfterBarcodeScan","tmphtml"); + $stringaddbarcode = $langs->trans("QtyToAddAfterBarcodeScan", "tmphtml"); $htmltoreplaceby = ''; - $stringaddbarcode = str_replace("tmphtml",$htmltoreplaceby,$stringaddbarcode); + $stringaddbarcode = str_replace("tmphtml", $htmltoreplaceby, $stringaddbarcode); $out .= $stringaddbarcode.'
'; $out .= ''; diff --git a/htdocs/product/inventory/ajax/searchfrombarcode.php b/htdocs/product/inventory/ajax/searchfrombarcode.php index 259aa5999f6..7ee9d2b6be9 100644 --- a/htdocs/product/inventory/ajax/searchfrombarcode.php +++ b/htdocs/product/inventory/ajax/searchfrombarcode.php @@ -51,4 +51,3 @@ if (!defined('NOBROWSERNOTIF')) { } require '../../../main.inc.php'; require_once DOL_DOCUMENT_ROOT.'/product/inventory/class/inventory.class.php'; -