Fix: Use of deprecated fichinter in dynamic modulename (#28456)

# Fix: Use of deprecated fichinter in dynamic modulename

The modulename is computed dynamically and could use deprecated fichinter
module name.
Also optimised the test.
This commit is contained in:
MDW 2024-02-27 15:29:58 +01:00 committed by GitHub
parent a03c64ff40
commit ec8f2a420d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -233,12 +233,10 @@ if (!empty($reg[1]) && $reg[1] == 'explorer' && ($reg[2] == '/swagger.json' || $
$modulenameforenabled = $module;
if ($module == 'propale') {
$modulenameforenabled = 'propal';
}
if ($module == 'supplierproposal') {
} elseif ($module == 'supplierproposal') {
$modulenameforenabled = 'supplier_proposal';
}
if ($module == 'ficheinter') {
$modulenameforenabled = 'ficheinter';
} elseif ($module == 'ficheinter') {
$modulenameforenabled = 'intervention';
}
dol_syslog("Found module file ".$file." - module=".$module." - modulenameforenabled=".$modulenameforenabled." - moduledirforclass=".$moduledirforclass);