DB IDO: Fix comment/downtime entry_time reset

fixes #11182
This commit is contained in:
Michael Friedrich 2016-06-15 11:28:20 +02:00
parent 8a714d66f1
commit 399ae42a8c
3 changed files with 3 additions and 1 deletions

View File

@ -166,6 +166,7 @@ String Comment::AddComment(const Checkable::Ptr& checkable, CommentType entryTyp
attrs->Set("text", text);
attrs->Set("expire_time", expireTime);
attrs->Set("entry_type", entryType);
attrs->Set("entry_time", Utility::GetTime());
Host::Ptr host;
Service::Ptr service;

View File

@ -214,6 +214,7 @@ String Downtime::AddDowntime(const Checkable::Ptr& checkable, const String& auth
attrs->Set("triggered_by", triggeredBy);
attrs->Set("scheduled_by", scheduledBy);
attrs->Set("config_owner", scheduledDowntime);
attrs->Set("entry_time", Utility::GetTime());
Host::Ptr host;
Service::Ptr service;

View File

@ -66,7 +66,7 @@ class Downtime : ConfigObject < DowntimeNameComposer
}}}
};
[state] double entry_time {
[config] double entry_time {
default {{{ return Utility::GetTime(); }}}
};
[config, required] String author;