db_ido: Add missing instance_id.

This commit is contained in:
Michael Friedrich 2013-10-01 17:01:51 +02:00
parent f2e413ba4a
commit a71ccaefb9
2 changed files with 4 additions and 0 deletions

View File

@ -251,6 +251,7 @@ void HostDbObject::OnConfigUpdate(void)
Dictionary::Ptr fields_contact = boost::make_shared<Dictionary>();
fields_contact->Set("host_id", DbValue::FromObjectInsertID(host));
fields_contact->Set("contact_object_id", user);
fields_contact->Set("instance_id", 0); /* DbConnection class fills in real ID */
DbQuery query_contact;
query_contact.Table = GetType()->GetTable() + "_contacts";
@ -270,6 +271,7 @@ void HostDbObject::OnConfigUpdate(void)
Dictionary::Ptr fields_contact = boost::make_shared<Dictionary>();
fields_contact->Set("host_id", DbValue::FromObjectInsertID(host));
fields_contact->Set("contactgroup_object_id", usergroup);
fields_contact->Set("instance_id", 0); /* DbConnection class fills in real ID */
DbQuery query_contact;
query_contact.Table = GetType()->GetTable() + "_contactgroups";

View File

@ -248,6 +248,7 @@ void ServiceDbObject::OnConfigUpdate(void)
Dictionary::Ptr fields_contact = boost::make_shared<Dictionary>();
fields_contact->Set("service_id", DbValue::FromObjectInsertID(service));
fields_contact->Set("contact_object_id", user);
fields_contact->Set("instance_id", 0); /* DbConnection class fills in real ID */
DbQuery query_contact;
query_contact.Table = GetType()->GetTable() + "_contacts";
@ -267,6 +268,7 @@ void ServiceDbObject::OnConfigUpdate(void)
Dictionary::Ptr fields_contact = boost::make_shared<Dictionary>();
fields_contact->Set("service_id", DbValue::FromObjectInsertID(service));
fields_contact->Set("contactgroup_object_id", usergroup);
fields_contact->Set("instance_id", 0); /* DbConnection class fills in real ID */
DbQuery query_contact;
query_contact.Table = GetType()->GetTable() + "_contactgroups";