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:
parent
a03c64ff40
commit
ec8f2a420d
1 changed files with 3 additions and 5 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue