Merged in mcuiza/processmaker/HOR-254 (pull request #3747)

HOR-254
This commit is contained in:
Julio Cesar Laura Avendaño
2016-02-29 18:05:13 -04:00
3 changed files with 134 additions and 9 deletions

View File

@@ -12,6 +12,7 @@ abstract class Importer
protected $filename = "";
protected $saveDir = "";
protected $metadata = array();
public static $affectedGroups = array();
const IMPORT_OPTION_OVERWRITE = "project.import.override";
const IMPORT_OPTION_DISABLE_AND_CREATE_NEW = "project.import.disable_and_create_new";
@@ -109,6 +110,7 @@ abstract class Importer
$arrayAux = $processes->checkExistingGroups($this->importData["tables"]["workflow"]["groupwfs"]);
if (is_array($arrayAux) && count($arrayAux) > 0) {
self::$affectedGroups = $arrayAux;
throw new \Exception(
\G::LoadTranslation(
"ID_IMPORTER_GROUP_ALREADY_EXISTS_SET_ACTION_TO_CONTINUE",