2017-04-17 Fred Gleason <fredg@paravelsystems.com>

* Fixed a bug in 'lib/rdcart.cpp' that caused the 'Import' web API call
	to return 404 when importing with 'CREATE' set to '1' and unique titles
	enabled in the database.
This commit is contained in:
Fred Gleason
2017-04-17 12:54:18 -04:00
parent 9062c6f816
commit 781f6a7ea9
12 changed files with 89 additions and 14 deletions

View File

@@ -2,7 +2,7 @@
//
// Rivendell web service portal -- Import service
//
// (C) Copyright 2010,2016 Fred Gleason <fredg@paravelsystems.com>
// (C) Copyright 2010,2016-2017 Fred Gleason <fredg@paravelsystems.com>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
@@ -215,13 +215,6 @@ void Xport::Import()
resp_code=400;
break;
}
/*
delete conv;
delete settings;
delete conf;
delete cut;
delete cart;
*/
if(resp_code==200) {
cut->setSha1Hash(RDSha1Hash(RDCut::pathName(cut->cutName())));
printf("Content-type: application/xml\n");