Merge pull request #10262 from hregis/8.0_mc
FIX check if "entity" is already defined in "$param"
This commit is contained in:
commit
0646d4ab7a
@ -300,8 +300,10 @@ class FormFile
|
|||||||
return $this->getDocumentsLink($modulepart, $modulesubdir, $filedir);
|
return $this->getDocumentsLink($modulepart, $modulesubdir, $filedir);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add entity in $param
|
// Add entity in $param if not already exists
|
||||||
|
if (!preg_match('/entity\=[0-9]+/', $param)) {
|
||||||
$param.= 'entity='.(!empty($object->entity)?$object->entity:$conf->entity);
|
$param.= 'entity='.(!empty($object->entity)?$object->entity:$conf->entity);
|
||||||
|
}
|
||||||
|
|
||||||
$printer=0;
|
$printer=0;
|
||||||
if (in_array($modulepart,array('facture','supplier_proposal','propal','proposal','order','commande','expedition', 'commande_fournisseur', 'expensereport'))) // The direct print feature is implemented only for such elements
|
if (in_array($modulepart,array('facture','supplier_proposal','propal','proposal','order','commande','expedition', 'commande_fournisseur', 'expensereport'))) // The direct print feature is implemented only for such elements
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user