mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2026-01-12 07:35:55 +01:00
2017-06-19 Fred Gleason <fredg@paravelsystems.com>
* Added a 'SYSTEM.FIX_DUP_CART_TITLES' field to the database. * Incremented the database version to 264. * Added 'RDSystem::fixDuplicateCartTitles()' and 'RDSystem::setFixDuplicateCartTitles()' methods in 'lib/rdsystem.cpp' and 'lib/rdsystem.h'. * Added an 'Auto-Correct Duplicate Cart Titles' checkbox to the 'System Settings' dialog in 'rdadmin/edit_settings.cpp' and 'rdadmin/edit_settings.h'. * Modified the 'EditCart' web call to enforce the 'Auto-Correct Duplicate Cart Titles' setting.
This commit is contained in:
@@ -313,6 +313,11 @@ void Xport::EditCart()
|
||||
cart->setGroupName(group_name);
|
||||
}
|
||||
if(xport_post->getValue("TITLE",&value)) {
|
||||
if((!xport_system->allowDuplicateCartTitles())&&
|
||||
(!xport_system->fixDuplicateCartTitles())&&
|
||||
(!RDCart::titleIsUnique(value))) {
|
||||
XmlExit("Duplicate Cart Title Not Allowed",404,"carts.cpp",LINE_NUMBER);
|
||||
}
|
||||
cart->setTitle(value);
|
||||
}
|
||||
if(xport_post->getValue("ARTIST",&value)) {
|
||||
|
||||
Reference in New Issue
Block a user