diff --git a/module/programplan/view/gantt.html.php b/module/programplan/view/gantt.html.php
index d58bde8cf0..cd90dcc682 100644
--- a/module/programplan/view/gantt.html.php
+++ b/module/programplan/view/gantt.html.php
@@ -75,7 +75,7 @@ form {display: block; margin-top: 0em; margin-block-end: 1em;}
app->getMethodName() == 'browse')
+ if($this->app->getModuleName() == 'programplan')
{
$customLink = $this->createLink('custom', 'ajaxSaveCustomFields', 'module=programplan§ion=ganttCustom&key=ganttFields');
include '../../common/view/customfield.html.php';