Merge pull request #14361 from atm-gauthier/11.0_substitution

FIX : wrong element var for fetch_name_optionals_label function with expeditions
This commit is contained in:
Laurent Destailleur 2020-08-04 12:47:33 +02:00 committed by GitHub
commit 085fe5f7ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -513,7 +513,7 @@ abstract class CommonDocGenerator
// Retrieve extrafields
if (is_array($object->array_options) && count($object->array_options))
{
$extrafieldkey = $object->element;
$extrafieldkey = $object->table_element;
require_once DOL_DOCUMENT_ROOT.'/core/class/extrafields.class.php';
$extrafields = new ExtraFields($this->db);