* [bug#62550,done,2h,0h] Fix kanban task connection error.

This commit is contained in:
wangyuting
2025-05-19 10:26:26 +08:00
committed by 刘刚
parent 023ef3d499
commit 2e75b7fcb8
+8
View File
@@ -707,6 +707,14 @@ function initGantt()
return false;
}
const sourceTask = gantt.getTask(link.source);
const targetTask = gantt.getTask(link.target);
if(sourceTask.allowLinks === false || targetTask.allowLinks === false)
{
zui.Messager.show({content: ganttLang.wrongKanbanTasks, type: 'danger-outline', icon: 'exclamation-sign'});
return false;
};
return true;
});