mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-05-30 07:32:32 +02:00
2017-08-01 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in 'rdlogmanager/edit_grid.cpp' to broke functioning of the 'Clear Hour' item in the right-click menu.
This commit is contained in:
parent
979f477e3b
commit
39c8eb4d58
@ -15916,3 +15916,6 @@
|
||||
* Fixed a bug in 'lib/rdevent_line.cpp' that caused an embedded traffic
|
||||
import event to be assigned incorrect link parameters when scheduled
|
||||
at midnight.
|
||||
2017-08-01 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Fixed a bug in 'rdlogmanager/edit_grid.cpp' to broke functioning of
|
||||
the 'Clear Hour' item in the right-click menu.
|
||||
|
@ -264,9 +264,10 @@ void EditGrid::clearHourData()
|
||||
{
|
||||
int dayofweek=edit_rightclick_id/24+1;
|
||||
int hour=edit_rightclick_id-24*(dayofweek-1);
|
||||
|
||||
QString sql=QString("update SERVICE_CLOCKS set CLOCK_NAME=null where ")+
|
||||
"(SERVICE_NAME=\""+RDEscapeString(edit_servicename)+"\")&&"+
|
||||
QString().sprintf("HOUR=%d)",hour);
|
||||
QString().sprintf("(HOUR=%d)",(dayofweek-1)*24+hour);
|
||||
RDSqlQuery *q=new RDSqlQuery(sql);
|
||||
delete q;
|
||||
LabelButton(dayofweek,hour,"");
|
||||
|
Loading…
x
Reference in New Issue
Block a user