2014-09-19 Alban Peignier <alban@tryphon.eu>

* Fixed 'web/rdxport/carts.cpp' which tried to create associated group
	during cart creation
This commit is contained in:
Alban Peignier
2014-09-19 09:49:05 +02:00
parent f920917832
commit 3dfcbe67cb
2 changed files with 4 additions and 1 deletions

View File

@@ -73,7 +73,7 @@ void Xport::AddCart()
if(!xport_user->groupAuthorized(group_name)) {
XmlExit("No such group",404);
}
group=new RDGroup(group_name,this);
group=new RDGroup(group_name);
if(cart_number==0) {
if((cart_number=group->nextFreeCart())==0) {
delete group;