diff --git a/module/programplan/view/gantt.html.php b/module/programplan/view/gantt.html.php
index f2c8f1da5d..6e2ef548d5 100755
--- a/module/programplan/view/gantt.html.php
+++ b/module/programplan/view/gantt.html.php
@@ -944,5 +944,12 @@ $(function()
{
return validateResources(id);
});
+
+ gantt.attachEvent("onRowDragStart", function(id, target, e) {
+ //any custom logic here
+ var task = gantt.getTask(id);
+ if(task.type != 'task') return false;
+ return true;
+ });
});