HOR-254: Need the list of groups that cause the 'merge' option when importing.

fixed observations

fixed observations
This commit is contained in:
root
2016-02-26 12:55:22 -04:00
committed by mcuiza
parent 5c4763ca71
commit af28eac090
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",