From c2a3e82d29be55e914a25ef04dc8b4e2c0675996 Mon Sep 17 00:00:00 2001 From: Marliana Lara Date: Fri, 9 Mar 2018 10:08:39 -0500 Subject: [PATCH] Check Inventory ask_inventory_on_launch value when verifying template validity --- awx/ui/client/features/templates/list-templates.controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/ui/client/features/templates/list-templates.controller.js b/awx/ui/client/features/templates/list-templates.controller.js index e25bdf7de2..f6f9123272 100644 --- a/awx/ui/client/features/templates/list-templates.controller.js +++ b/awx/ui/client/features/templates/list-templates.controller.js @@ -64,7 +64,7 @@ function ListTemplatesController( vm.isInvalid = (template) => { if(isJobTemplate(template)) { - return (template.inventory === null || template.project == null) + return template.project === null || (template.inventory === null && template.ask_inventory_on_launch === false); } else { return false; }