From 8b83c2b9070da3923c0bedb973333fc40400b28d Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Tue, 29 Mar 2022 14:07:34 +0000 Subject: [PATCH] --- ayanova/src/views/adm-import.vue | 38 ++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/ayanova/src/views/adm-import.vue b/ayanova/src/views/adm-import.vue index 3eaa4dca..ab19a176 100644 --- a/ayanova/src/views/adm-import.vue +++ b/ayanova/src/views/adm-import.vue @@ -517,6 +517,44 @@ function cleanData(dat, atype) { ] ); break; + case window.$gz.type.Unit: + allowedProps.push( + ...[ + "Serial", + "Active", + "Notes", + "Wiki", + "Tags", + "CustomerViz", + "ParentUnitViz", + "UnitModelNameViz", + "UnitHasOwnAddress", + "BoughtHere", + "PurchasedFromVendorViz", + "Receipt", + "PurchasedDate", + "Description", + "ReplacedByUnitViz", + "OverrideModelWarranty", + "WarrantyLength", + "WarrantyTerms", + "ContractViz", + "ContractExpires", + "Metered", + "LifeTimeWarranty", + "Text1", + "Text2", + "Text3", + "Text4", + "Address", + "City", + "Region", + "Country", + "Latitude", + "Longitude" + ] + ); + break; } //Strip out any records that have fields not on our allowed list