Check Inventory ask_inventory_on_launch value when verifying template validity

This commit is contained in:
Marliana Lara 2018-03-09 10:08:39 -05:00
parent 8a25342ce5
commit c2a3e82d29
No known key found for this signature in database
GPG Key ID: 38C73B40DFA809EE

View File

@ -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;
}