This commit is contained in:
Paula V. Quispe
2016-03-28 17:04:52 -04:00
parent 421fa7339f
commit 45f9b7e652
2 changed files with 41 additions and 2 deletions

View File

@@ -36,9 +36,13 @@ class AssignmentRulesMigrator implements Importable, Exportable
{
try {
if ($replace) {
$this->processes->createTaskRows($data);
$this->processes->createTaskRows($data['tasks']);
$this->processes->addNewGroupRow($data['groupwfs']);
$this->processes->createTaskUserRows($data['taskusers']);
} else {
$this->processes->addNewTaskRows($data);
$this->processes->addNewTaskRows($data['tasks']);
$this->processes->addNewGroupRow($data['groupwfs']);
$this->processes->addNewTaskUserRows($data['taskusers']);
}
} catch (\Exception $e) {