Fix the export of array values.

This commit is contained in:
Gustavo Adolfo Cruz Laura
2016-03-29 14:19:51 -04:00
parent ddbaff636c
commit 4c7d6ba663
2 changed files with 2 additions and 2 deletions

View File

@@ -156,7 +156,7 @@ class GranularExporter
{
//verifying data consistency group
switch (true) {
case $migratorData['workflow-definition']['groupwfs']:
case !empty($migratorData['workflow-definition']['groupwfs']):
foreach ($this->data['workflow-definition']['groupwfs'] as $rowGroup) {
foreach ($migratorData['workflow-definition']['groupwfs'] as $key => $row) {
if ($rowGroup['GRP_UID'] == $row['GRP_UID']) {

View File

@@ -71,7 +71,7 @@ class PMXGenerator
$recordData = array_change_key_case($recordData, CASE_LOWER);
foreach ($recordData as $key => $value) {
if (is_object($value)) {
if (is_object($value) || is_array($value)) {
$value = serialize($value);
}
$columnNode = $this->domDocument->createElement($key);