2017-11-20 Fred Gleason <fredg@paravelsystems.com>

* Fixed a bug that caused the initial playable cut in a cart set
	for 'By Order' scheduling to be skipped.
This commit is contained in:
Fred Gleason 2017-11-19 17:09:19 -05:00
parent ebd0ea6bce
commit 912479e846
2 changed files with 4 additions and 1 deletions

View File

@ -16375,3 +16375,6 @@
of the Operations Guide.
2017-11-13 Fred Gleason <fredg@paravelsystems.com>
* Added a 'Managing Services' section to the Operations Guide.
2017-11-20 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug that caused the initial playable cut in a cart set
for 'By Order' scheduling to be skipped.

View File

@ -134,7 +134,7 @@ bool RDCart::selectCut(QString *cut,const QTime &time) const
LAST_PLAY_DATETIME ASC";
}
else {
sql+=" order by LAST_PLAY_DATETIME desc";
sql+=" order by LAST_PLAY_DATETIME desc, PLAY_ORDER desc";
}
q=new RDSqlQuery(sql);
cutname=GetNextCut(q);