From 9b70b7eb143cb3bd1205ec577b7f10c8ea13072d Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Fri, 2 Aug 2013 09:57:45 +0200 Subject: [PATCH] Revert "Don't update insert ID for status updates." This reverts commit 51a613d0a6e5993963610101d0aeceb48a967fde. --- lib/ido/dbobject.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ido/dbobject.cpp b/lib/ido/dbobject.cpp index 3802f0094..d8b3a9ca4 100644 --- a/lib/ido/dbobject.cpp +++ b/lib/ido/dbobject.cpp @@ -112,6 +112,7 @@ void DbObject::SendStatusUpdate(void) query.Fields->Set("status_update_time", DbValue::FromTimestamp(Utility::GetTime())); query.WhereCriteria = boost::make_shared(); query.WhereCriteria->Set(GetType()->GetIDColumn(), GetObject()); + query.Object = GetSelf(); OnQuery(query); m_LastStatusUpdate = Utility::GetTime();