mirror of
https://github.com/ansible/awx.git
synced 2026-05-19 14:57:39 -02:30
fix for setting scan job template project/playbook
the logic for a scan job was also getting caught for a run job w/ a missing project
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