2021-09-13 Fred Gleason <fredg@paravelsystems.com>

* Fixed a regression in rdlibrary(1) that could cause less than
	100 carts to be displayed when the 'Show Only First 100 Matches'
	box was ticked.

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason
2021-09-13 12:33:12 -04:00
parent 76548116e5
commit 7bd18d2ea5
10 changed files with 44 additions and 24 deletions

View File

@@ -80,7 +80,7 @@ AutofillCarts::AutofillCarts(RDSvc *svc,QWidget *parent)
QString sql=QString("left join `AUTOFILLS` ")+
"on `CART`.`NUMBER`=`AUTOFILLS`.`CART_NUMBER` where "+
"`AUTOFILLS`.`SERVICE`='"+RDEscapeString(svc_svc->name())+"'";
svc_cart_model->setFilterSql(sql);
svc_cart_model->setFilterSql(sql,RD_MAX_CART_NUMBER+1);
}

View File

@@ -481,7 +481,7 @@ void EditSystem::okData()
}
filter_sql=filter_sql.left(filter_sql.length()-2)+
") order by `CART`.`TITLE` ";
edit_duplicate_model->setFilterSql(filter_sql);
edit_duplicate_model->setFilterSql(filter_sql,RD_MAX_CART_NUMBER+1);
return;
}