mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-11 00:53:53 +02:00
2021-10-26 Fred Gleason <fredg@paravelsystems.com>
* Fixed a regression in rdmaint(8) that broke purging of expired cuts. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -156,8 +156,8 @@ void MainObject::PurgeCuts()
|
||||
q=new RDSqlQuery(sql);
|
||||
while(q->next()) {
|
||||
sql=QString("select ")+
|
||||
"`CART.NUMBER`,"+ // 00
|
||||
"`CUTS.CUT_NAME` "+ // 01
|
||||
"`CART`.`NUMBER`,"+ // 00
|
||||
"`CUTS`.`CUT_NAME` "+ // 01
|
||||
"from `CUTS` left join `CART` "+
|
||||
"on `CUTS`.`CART_NUMBER`=`CART`.`NUMBER` where "+
|
||||
"(`CART`.`GROUP_NAME`='"+RDEscapeString(q->value(0).toString())+"')&&"+
|
||||
@@ -177,8 +177,8 @@ void MainObject::PurgeCuts()
|
||||
(const char *)q1->value(1).toString().toUtf8());
|
||||
}
|
||||
if(q->value(2).toString()=="Y") { // Delete Empty Cart
|
||||
sql=QString("select CUT_NAME from CUTS where ")+
|
||||
QString::asprintf("CART_NUMBER=%u",q1->value(0).toUInt());
|
||||
sql=QString("select `CUT_NAME` from `CUTS` where ")+
|
||||
QString::asprintf("`CART_NUMBER`=%u",q1->value(0).toUInt());
|
||||
q2=new RDSqlQuery(sql);
|
||||
if(!q2->first()) {
|
||||
cart->remove(rda->station(),rda->user(),rda->config());
|
||||
|
Reference in New Issue
Block a user