From 06d2117945398be8054bbd9b3dd6e36cf00f8a72 Mon Sep 17 00:00:00 2001 From: Noah Hilverling Date: Thu, 1 Oct 2020 10:28:37 +0200 Subject: [PATCH] Revert "IDO: customvariables: fix duplicate entry error" This reverts commit bd2b565a1c6a76cc5fdc479ce8e816a7386ed193. --- lib/db_ido/dbobject.cpp | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/lib/db_ido/dbobject.cpp b/lib/db_ido/dbobject.cpp index 28ef722b2..c48739ede 100644 --- a/lib/db_ido/dbobject.cpp +++ b/lib/db_ido/dbobject.cpp @@ -234,9 +234,8 @@ void DbObject::SendVarsConfigUpdateHeavy() DbQuery query3; query3.Table = "customvariables"; - query3.Type = DbQueryInsert | DbQueryUpdate; + query3.Type = DbQueryInsert; query3.Category = DbCatConfig; - query3.Fields = new Dictionary({ { "varname", kv.first }, { "varvalue", value }, @@ -245,13 +244,6 @@ void DbObject::SendVarsConfigUpdateHeavy() { "object_id", obj }, { "instance_id", 0 } /* DbConnection class fills in real ID */ }); - - query3.WhereCriteria = new Dictionary({ - { "object_id", obj }, - { "config_type", 1 }, - { "varname", kv.first } - }); - queries.emplace_back(std::move(query3)); } }