mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-05-20 23:03:04 +02:00
2021-12-03 Fred Gleason <fredg@paravelsystems.com>
* Fixed a regression in 'RDCart::xml()' that caused a SQL error to be generated. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
parent
60b794bddf
commit
b7059f300c
@ -22590,3 +22590,6 @@
|
|||||||
* Fixed a regression in rdadmin(1) that caused IP address settings
|
* Fixed a regression in rdadmin(1) that caused IP address settings
|
||||||
to fail to be saved when creating a new 'Logitek vGuest' matrix
|
to fail to be saved when creating a new 'Logitek vGuest' matrix
|
||||||
entry.
|
entry.
|
||||||
|
2021-12-03 Fred Gleason <fredg@paravelsystems.com>
|
||||||
|
* Fixed a regression in 'RDCart::xml()' that caused a SQL error
|
||||||
|
to be generated.
|
||||||
|
@ -1029,9 +1029,10 @@ QString RDCart::xml(bool include_cuts,bool absolute,
|
|||||||
RDSettings *settings,int cutnum) const
|
RDSettings *settings,int cutnum) const
|
||||||
{
|
{
|
||||||
QString sql=RDCart::xmlSql(include_cuts)+
|
QString sql=RDCart::xmlSql(include_cuts)+
|
||||||
QString::asprintf(" where (`CART.NUMBER`=%u)",cart_number);
|
QString::asprintf(" where (`CART`.`NUMBER`=%u)",cart_number);
|
||||||
if(cutnum>=0) {
|
if(cutnum>=0) {
|
||||||
sql+=QString("&&(`CUT_NAME`=\"")+RDCut::cutName(cart_number,cutnum)+"\")";
|
sql+=QString("&&(`CUTS`.`CUT_NAME`=\"")+
|
||||||
|
RDCut::cutName(cart_number,cutnum)+"\")";
|
||||||
}
|
}
|
||||||
RDSqlQuery *q=new RDSqlQuery(sql);
|
RDSqlQuery *q=new RDSqlQuery(sql);
|
||||||
QString xml=RDCart::xml(q,include_cuts,absolute,settings);
|
QString xml=RDCart::xml(q,include_cuts,absolute,settings);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user