mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-04-07 17:32:20 +02:00
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:
parent
352604b59f
commit
076bac76aa
@ -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.
|
||||||
|
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user