mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
CSV import web service - cosmetics on the reporting in case the data set is empty
SVN:trunk[1067]
This commit is contained in:
@@ -259,6 +259,11 @@ try
|
||||
//
|
||||
// Check parameters format/consistency
|
||||
//
|
||||
if (strlen($sCSVData) == 0)
|
||||
{
|
||||
throw new ExchangeException("Missing data - at least one line is expected");
|
||||
}
|
||||
|
||||
if (!MetaModel::IsValidClass($sClass))
|
||||
{
|
||||
throw new BulkLoadException("Unknown class: '$sClass'");
|
||||
|
||||
Reference in New Issue
Block a user