mirror of
https://github.com/ansible/awx.git
synced 2026-03-24 12:25:01 -02:30
Merge pull request #5509 from jaredevantabor/missing-project-jt
Deleting underlying project from a JT fix
This commit is contained in:
@@ -155,7 +155,7 @@ angular.module('JobTemplatesHelper', ['Utilities'])
|
|||||||
|
|
||||||
scope.can_edit = data.summary_fields.user_capabilities.edit;
|
scope.can_edit = data.summary_fields.user_capabilities.edit;
|
||||||
|
|
||||||
if ((!scope.project || scope.project === "") && (!scope.playbook || scope.playbook === "")) {
|
if (scope.job_type.value === "scan" && (!scope.project || scope.project === "") && (!scope.playbook || scope.playbook === "")) {
|
||||||
scope.resetProjectToDefault();
|
scope.resetProjectToDefault();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user