mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-11-26 15:20:29 +01:00
2017-06-28 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in 'web/rdxport/carts.cpp' and 'web/rdxport/import.cpp' that caused the 'EditCart' web API call to return an error when attempting to set the Title field to its current value when Allow Duplicate Cart Titles was not enabled.
This commit is contained in:
@@ -315,7 +315,7 @@ void Xport::EditCart()
|
||||
if(xport_post->getValue("TITLE",&value)) {
|
||||
if((!xport_system->allowDuplicateCartTitles())&&
|
||||
(!xport_system->fixDuplicateCartTitles())&&
|
||||
(!RDCart::titleIsUnique(value))) {
|
||||
(!RDCart::titleIsUnique(cart_number,value))) {
|
||||
XmlExit("Duplicate Cart Title Not Allowed",404,"carts.cpp",LINE_NUMBER);
|
||||
}
|
||||
cart->setTitle(value);
|
||||
|
||||
@@ -115,7 +115,7 @@ void Xport::Import()
|
||||
if(!title.isEmpty()) {
|
||||
if((!xport_system->allowDuplicateCartTitles())&&
|
||||
(!xport_system->fixDuplicateCartTitles())&&
|
||||
(!RDCart::titleIsUnique(title))) {
|
||||
(!RDCart::titleIsUnique(cartnum,title))) {
|
||||
XmlExit("Duplicate Cart Title Not Allowed",404,"import.cpp",LINE_NUMBER);
|
||||
}
|
||||
}
|
||||
@@ -178,7 +178,7 @@ void Xport::Import()
|
||||
if(use_metadata) {
|
||||
if((!xport_system->allowDuplicateCartTitles())&&
|
||||
(!xport_system->fixDuplicateCartTitles())&&
|
||||
(!RDCart::titleIsUnique(wavedata.title()))) {
|
||||
(!RDCart::titleIsUnique(cartnum,wavedata.title()))) {
|
||||
XmlExit("Duplicate Cart Title Not Allowed",404,"import.cpp",LINE_NUMBER);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user