Merge pull request #14891 from inoveaconseil/Newhidelabelvariant

NEW hide label in pdf for variants
This commit is contained in:
Laurent Destailleur 2020-10-02 13:45:52 +02:00 committed by GitHub
commit 00cb3277ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,6 +11,7 @@
* Copyright (C) 2014 Teddy Andreotti <125155@supinfo.com>
* Copyright (C) 2015-2016 Marcos García <marcosgdf@gmail.com>
* Copyright (C) 2019 Lenin Rivas <lenin.rivas@servcom-it.com>
* Copyright (C) 2020 Nicolas ZABOURI <info@inovea-conseil.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@ -1315,7 +1316,11 @@ function pdf_getlinedesc($object, $i, $outputlangs, $hideref = 0, $hidedesc = 0,
{
$libelleproduitservice = $desc."\n".$libelleproduitservice;
} else {
$libelleproduitservice .= $desc;
if (!empty($conf->global->HIDE_LABEL_VARIANT_PDF) && $prodser->isVariant()) {
$libelleproduitservice = $desc;
} else {
$libelleproduitservice .= $desc;
}
}
}
} else {