mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-04-18 15:09:39 +02:00
2020-12-09 Fred Gleason <fredg@paravelsystems.com>
* Reverted changed from 2020-12-09. Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
parent
9da3bde16a
commit
e8fcadbac8
@ -20660,3 +20660,10 @@
|
|||||||
Configuration' dialog in rdadmin(1) in the Operations Guide.
|
Configuration' dialog in rdadmin(1) in the Operations Guide.
|
||||||
2020-11-29 Fred Gleason <fredg@paravelsystems.com>
|
2020-11-29 Fred Gleason <fredg@paravelsystems.com>
|
||||||
* Incremented the package version to 3.4.1int7.
|
* Incremented the package version to 3.4.1int7.
|
||||||
|
2020-12-07 Fred Gleason <fredg@paravelsystems.com>
|
||||||
|
* Added a 'RDCart::ensureTitleIsUnique()' static method.
|
||||||
|
* Removed code to make cart titles automatically unique from
|
||||||
|
'RDCart::setTitle()'.
|
||||||
|
* Refactored rdimport(1) to allow detection of duplicate titles.
|
||||||
|
2020-12-09 Fred Gleason <fredg@paravelsystems.com>
|
||||||
|
* Reverted changed from 2020-12-09.
|
||||||
|
@ -2321,12 +2321,12 @@ QString RDCart::VerifyTitle(const QString &title) const
|
|||||||
int n=1;
|
int n=1;
|
||||||
while(1==1) {
|
while(1==1) {
|
||||||
sql=QString("select NUMBER from CART where ")+
|
sql=QString("select NUMBER from CART where ")+
|
||||||
"(TITLE=\""+RDEscapeString(ret)+"\")&&"+
|
"(TITLE=\""+RDEscapeString(ret)+"\")&&"+
|
||||||
QString().sprintf("(NUMBER!=%u)",cart_number);
|
QString().sprintf("(NUMBER!=%u)",cart_number);
|
||||||
q=new RDSqlQuery(sql);
|
q=new RDSqlQuery(sql);
|
||||||
if(!q->first()) {
|
if(!q->first()) {
|
||||||
delete q;
|
delete q;
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
delete q;
|
delete q;
|
||||||
ret=title+QString().sprintf(" [%d]",n++);
|
ret=title+QString().sprintf(" [%d]",n++);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user