From 8e28c73623cd1f28a6f8fc691319bd799fb99da1 Mon Sep 17 00:00:00 2001 From: Jared Tabor Date: Mon, 8 Dec 2014 12:52:07 -0500 Subject: [PATCH] made organization required on custom inv script the organization field of the custom inv script modal needed to have the astericks to indicate that it is required. --- awx/ui/static/js/forms/CustomInventory.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/awx/ui/static/js/forms/CustomInventory.js b/awx/ui/static/js/forms/CustomInventory.js index 97b6413375..fbfb63b178 100644 --- a/awx/ui/static/js/forms/CustomInventory.js +++ b/awx/ui/static/js/forms/CustomInventory.js @@ -37,11 +37,13 @@ angular.module('CustomInventoryFormDefinition', []) organization: { label: 'Organization', type: 'lookup', + awRequiredWhen: { + variable: "orgrequired", + init: true + }, sourceModel: 'organization', sourceField: 'name', - ngClick: 'lookUpOrganization()', - addRequired: false, - editRequired: false + ngClick: 'lookUpOrganization()' }, script: { label: 'Custom Script',