From eb3659b5b8796f1c250123b2384e2ad1a8b16d46 Mon Sep 17 00:00:00 2001 From: Florian HENRY Date: Thu, 11 Feb 2021 17:20:07 +0100 Subject: [PATCH 1/3] fix module builder setup link --- htdocs/modulebuilder/index.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htdocs/modulebuilder/index.php b/htdocs/modulebuilder/index.php index 5159aef7577..2a5fb727239 100644 --- a/htdocs/modulebuilder/index.php +++ b/htdocs/modulebuilder/index.php @@ -1711,7 +1711,8 @@ if (is_array($listofmodules) && count($listofmodules) > 0) { $urltouse = dol_buildpath('/'.$regs[2].'/admin/'.$regs[1], 1); $linktoenabledisable .= '   '.img_picto($langs->trans("Setup"), "setup", 'style="padding-right: 6px"').''; } else { - $urltouse = $urlpage; + //Case standard admin page + $urltouse = dol_buildpath(DOL_URL_ROOT.'/admin/'.$urlpage,1); $linktoenabledisable .= '   '.img_picto($langs->trans("Setup"), "setup", 'style="padding-right: 6px"').''; } } From 5d4c00edb4869fb1bec3ef55dda036f6387786f8 Mon Sep 17 00:00:00 2001 From: stickler-ci Date: Thu, 11 Feb 2021 16:24:38 +0000 Subject: [PATCH 2/3] Fixing style errors. --- htdocs/modulebuilder/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/modulebuilder/index.php b/htdocs/modulebuilder/index.php index 2a5fb727239..d13723512ab 100644 --- a/htdocs/modulebuilder/index.php +++ b/htdocs/modulebuilder/index.php @@ -1712,7 +1712,7 @@ if (is_array($listofmodules) && count($listofmodules) > 0) { $linktoenabledisable .= '   '.img_picto($langs->trans("Setup"), "setup", 'style="padding-right: 6px"').''; } else { //Case standard admin page - $urltouse = dol_buildpath(DOL_URL_ROOT.'/admin/'.$urlpage,1); + $urltouse = dol_buildpath(DOL_URL_ROOT.'/admin/'.$urlpage, 1); $linktoenabledisable .= '   '.img_picto($langs->trans("Setup"), "setup", 'style="padding-right: 6px"').''; } } From 7f89fea804e4a4152c24bc4d3ec8a9a434b1df14 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 11 Feb 2021 18:31:25 +0100 Subject: [PATCH 3/3] Update index.php --- htdocs/modulebuilder/index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/htdocs/modulebuilder/index.php b/htdocs/modulebuilder/index.php index d13723512ab..9cbb6ae4167 100644 --- a/htdocs/modulebuilder/index.php +++ b/htdocs/modulebuilder/index.php @@ -1711,8 +1711,8 @@ if (is_array($listofmodules) && count($listofmodules) > 0) { $urltouse = dol_buildpath('/'.$regs[2].'/admin/'.$regs[1], 1); $linktoenabledisable .= '   '.img_picto($langs->trans("Setup"), "setup", 'style="padding-right: 6px"').''; } else { - //Case standard admin page - $urltouse = dol_buildpath(DOL_URL_ROOT.'/admin/'.$urlpage, 1); + // Case standard admin page (not a page provided by the module but a page + $urltouse = DOL_URL_ROOT.'/admin/'.$urlpage; $linktoenabledisable .= '   '.img_picto($langs->trans("Setup"), "setup", 'style="padding-right: 6px"').''; } }