Fix error on module builder delete of a property

This commit is contained in:
lmarcouiller 2021-04-09 11:28:40 +02:00
parent 475bdc24f4
commit fdb5b3b3da

View File

@ -1296,6 +1296,9 @@ if ($dirins && $action == 'addproperty' && !empty($module) && !empty($tabobj)) {
if ($dirins && $action == 'confirm_deleteproperty' && $propertykey) {
$objectname = $tabobj;
$dirins = $dirread = $listofmodules[strtolower($module)]['moduledescriptorrootpath'];
$moduletype = $listofmodules[strtolower($module)]['moduletype'];
$srcdir = $dirread.'/'.strtolower($module);
$destdir = $dirins.'/'.strtolower($module);
dol_mkdir($destdir);