2019-01-29 Fred Gleason <fredg@paravelsystems.com>

* Fixed a bug in the 'EditCut' web API call that caused attempts
	to clear the 'START_DAYPART' and 'END_DAYPART' fields to return
	an error.
This commit is contained in:
Fred Gleason
2019-01-29 16:32:06 -05:00
parent 0b472716d6
commit efa4999fa2
5 changed files with 70 additions and 50 deletions

View File

@@ -255,6 +255,9 @@ bool RDFormPost::getValue(const QString &name,QDate *date,bool *ok)
return false;
}
if(str.length()==0) {
if(ok!=NULL) {
*ok=true;
}
*date=QDate();
}
else {
@@ -275,6 +278,9 @@ bool RDFormPost::getValue(const QString &name,QTime *time,bool *ok)
return false;
}
if(str.length()==0) {
if(ok!=NULL) {
*ok=true;
}
*time=QTime();
}
else {