Merge pull request #12850 from atm-john/10.0_fix_export_explode

FIX complex export model loading
This commit is contained in:
Laurent Destailleur 2020-01-15 20:09:32 +01:00 committed by GitHub
commit 536f835a3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -373,7 +373,7 @@ if ($step == 2 && $action == 'select_model')
$result = $objexport->fetch($exportmodelid);
if ($result > 0)
{
$fieldsarray=explode(',', $objexport->hexa);
$fieldsarray=preg_split("/,(?! [^(]*\))/", $objexport->hexa);
$i=1;
foreach($fieldsarray as $val)
{