Fixing discrepencies in object manipulation.

This commit is contained in:
stephb9959
2021-10-25 11:17:49 -07:00
parent 20960ac00e
commit 547cee2eaa
13 changed files with 44 additions and 64 deletions

View File

@@ -235,10 +235,7 @@ namespace OpenWifi{
}
}
for(auto &i:NewObject.info.notes) {
i.createdBy = UserInfo_.userinfo.email;
Existing.info.notes.insert(Existing.info.notes.begin(),i);
}
UpdateObjectInfo(RawObject, UserInfo_.userinfo, Existing.info);
std::string NewVenue, NewEntity, NewLocation, NewContact, NewConfiguration, NewPolicy;
bool MovingVenue=false,
@@ -321,10 +318,6 @@ namespace OpenWifi{
Existing.managementPolicy.clear();
}
AssignIfPresent(RawObject, "name", Existing.info.name);
AssignIfPresent(RawObject, "description", Existing.info.description);
Existing.info.modified = std::time(nullptr);
if(StorageService()->InventoryDB().UpdateRecord("id", Existing.info.id, Existing)) {
if(!UnAssign) {
if(MovingEntity) {