This commit is contained in:
2022-03-29 14:07:34 +00:00
parent 3aee9d59b9
commit 8b83c2b907

View File

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