Merge pull request #18807 from elsp1991/Link-to-MO

add MO to the list of possible object to link
This commit is contained in:
Laurent Destailleur 2021-09-24 01:54:55 +02:00 committed by GitHub
commit 9b58c498ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7874,6 +7874,11 @@ class Form
if (empty($conf->expedition->enabled)) {
continue; // Do not show if module disabled
}
} elseif ($objecttype == 'mo') {
$tplpath = 'mrp/mo';
if (empty($conf->mrp->enabled)) {
continue; // Do not show if module disabled
}
} elseif ($objecttype == 'ficheinter') {
$tplpath = 'fichinter';
if (empty($conf->ficheinter->enabled)) {