1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 08:21:15 +03:00

Fixed error changing edge type of a previous root node

This commit is contained in:
mabashian 2018-05-22 20:21:39 -04:00
parent 845227a9c4
commit c913badafe

View File

@ -252,8 +252,7 @@ export default ['$scope', 'WorkflowService', 'GetBasePath', 'TemplatesService',
}
}
if ((params.node.originalParentId && params.parentId !== params.node.originalParentId) || params.node.originalEdge !== params.node.edgeType) {//beep
if (params.node.originalParentId && (params.parentId !== params.node.originalParentId || params.node.originalEdge !== params.node.edgeType)) {
let parentIsDeleted = false;
_.forEach($scope.treeData.data.deletedNodes, function(deletedNode) {
@ -974,6 +973,10 @@ export default ['$scope', 'WorkflowService', 'GetBasePath', 'TemplatesService',
$scope.templateManuallySelected = function(selectedTemplate) {
if (surveyQuestionWatcher) {
surveyQuestionWatcher();
}
if (selectedTemplate.type === "job_template") {
let jobTemplate = new JobTemplate();