2017-06-26 Fred Gleason <fredg@paravelsystems.com>

* Fixed a bug in 'web/rdxport'logs.cpp' that prevented saving of
	events with a hard time set when using the web API 'SaveLog' call.
This commit is contained in:
Fred Gleason 2017-06-26 09:40:31 -04:00
parent 352604b59f
commit 076bac76aa
2 changed files with 14 additions and 5 deletions

View File

@ -15861,3 +15861,6 @@
web API call. web API call.
* Added 'FADEUP_GAIN' and 'FADEDOWN_GAIN' parameters to the 'SaveLog' * Added 'FADEUP_GAIN' and 'FADEDOWN_GAIN' parameters to the 'SaveLog'
web API call. web API call.
2017-06-26 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in 'web/rdxport'logs.cpp' that prevented saving of
events with a hard time set when using the web API 'SaveLog' call.

View File

@ -286,14 +286,20 @@ void Xport::SaveLog()
} }
ll->setCartNumber(integer1); ll->setCartNumber(integer1);
if(!xport_post->getValue(line+"_START_TIME",&integer1)) {
XmlExit("Missing "+line+"_START_TIME",400,"logs.cpp",LINE_NUMBER);
}
if(!xport_post->getValue(line+"_TIME_TYPE",&integer2)) { if(!xport_post->getValue(line+"_TIME_TYPE",&integer2)) {
XmlExit("Missing "+line+"_TIME_TYPE",400,"logs.cpp",LINE_NUMBER); XmlExit("Missing "+line+"_TIME_TYPE",400,"logs.cpp",LINE_NUMBER);
} }
ll->setStartTime((RDLogLine::StartTimeType)integer2, ll->setTimeType((RDLogLine::TimeType)integer2);
QTime().addMSecs(integer1));
if(!xport_post->getValue(line+"_START_TIME",&integer1)) {
XmlExit("Missing "+line+"_START_TIME",400,"logs.cpp",LINE_NUMBER);
}
if(ll->timeType()==RDLogLine::Hard) {
ll->setStartTime(RDLogLine::Logged,QTime().addMSecs(integer1));
}
else {
ll->setStartTime(RDLogLine::Predicted,QTime().addMSecs(integer1));
}
if(!xport_post->getValue(line+"_GRACE_TIME",&integer1)) { if(!xport_post->getValue(line+"_GRACE_TIME",&integer1)) {
XmlExit("Missing "+line+"_GRACE_TIME",400,"logs.cpp",LINE_NUMBER); XmlExit("Missing "+line+"_GRACE_TIME",400,"logs.cpp",LINE_NUMBER);