From 98bd4f3a667cbb1a23fbcf39467b88f95bfb9644 Mon Sep 17 00:00:00 2001 From: John Botella Date: Mon, 16 Dec 2019 09:44:08 +0100 Subject: [PATCH] Fix document module call --- htdocs/core/class/html.formfile.class.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/htdocs/core/class/html.formfile.class.php b/htdocs/core/class/html.formfile.class.php index 7b885d36a52..2508ebce5ca 100644 --- a/htdocs/core/class/html.formfile.class.php +++ b/htdocs/core/class/html.formfile.class.php @@ -675,7 +675,10 @@ class FormFile else { $tmp=explode(':', $modulepart); - if (! empty($tmp[2])) $submodulepart=$tmp[2]; + if (! empty($tmp[1])){ + $modulepart=$tmp[0]; + $submodulepart=$tmp[1]; + } $file=dol_buildpath('/'.$modulepart.'/core/modules/'.$modulepart.'/modules_'.$submodulepart.'.php', 0); $res=include_once $file; }