mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-10-16 07:31:19 +02:00
2022-12-13 Fred Gleason <fredg@paravelsystems.com>
* Fixed a regression in 'RDLibraryModel' that could throw a SQL error when processing notifications for added carts. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
@@ -23784,4 +23784,7 @@
|
||||
2022-12-08 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Implemented column sorting for item lists in rdcastmanager(1).
|
||||
2022-12-08 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Incremented the package version to 4.0.0rc0int7.
|
||||
* Incremented the package version to 4.0.0rc0int7
|
||||
2022-12-13 Fred Gleason <fredg@paravelsystems.com>
|
||||
* Fixed a regression in 'RDLibraryModel' that could throw a SQL
|
||||
error when processing notifications for added carts.
|
||||
|
@@ -573,15 +573,15 @@ void RDLibraryModel::setFilterSql(const QString &sql,int cart_limit)
|
||||
|
||||
void RDLibraryModel::processNotification(RDNotification *notify)
|
||||
{
|
||||
printf("RDLibraryModel::processNotification()\n");
|
||||
|
||||
QString sql;
|
||||
RDSqlQuery *q=NULL;
|
||||
|
||||
if(notify->type()==RDNotification::CartType) {
|
||||
switch(notify->action()) {
|
||||
case RDNotification::AddAction:
|
||||
sql=QString("select ")+
|
||||
"`NUMBER` "+ // 00
|
||||
"from `CART` "+
|
||||
sql=sqlFields()+
|
||||
d_filter_sql+
|
||||
QString::asprintf(" && `CART`.`NUMBER`=%u",notify->id().toUInt());
|
||||
q=new RDSqlQuery(sql);
|
||||
|
Reference in New Issue
Block a user