diff --git a/htdocs/modulebuilder/index.php b/htdocs/modulebuilder/index.php index 0d882d7c6fa..8918250fc67 100644 --- a/htdocs/modulebuilder/index.php +++ b/htdocs/modulebuilder/index.php @@ -1296,6 +1296,9 @@ if ($dirins && $action == 'addproperty' && empty($cancel) && !empty($module) && 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);