Merge pull request #14481 from OPEN-DSI/v10-html-formfile-add-param-entity

FIX param entity in html form file
This commit is contained in:
Laurent Destailleur 2020-08-16 21:16:28 +02:00 committed by GitHub
commit 03e8a0737c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -352,7 +352,9 @@ class FormFile
// Add entity in $param if not already exists
if (!preg_match('/entity\=[0-9]+/', $param)) {
$param.= 'entity='.(!empty($object->entity)?$object->entity:$conf->entity);
$paramEntity = 'entity='.(!empty($object->entity)?$object->entity:$conf->entity);
if (!empty($param)) $paramEntity = '&' .$paramEntity;
$param .= $paramEntity;
}
$printer=0;