From 55fd24d4910cf8c3b3e381ec4d7bf0e4dc1b27f2 Mon Sep 17 00:00:00 2001 From: iglocska Date: Sat, 8 Sep 2018 23:46:37 +0200 Subject: [PATCH] fix: [RPZ] flatten attributes for the RPZ export --- app/Model/Attribute.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Model/Attribute.php b/app/Model/Attribute.php index a51ce40c1..f383c43e7 100644 --- a/app/Model/Attribute.php +++ b/app/Model/Attribute.php @@ -2230,7 +2230,8 @@ class Attribute extends AppModel array( 'conditions' => $tempConditions, 'fields' => array('Attribute.value'), // array of field names - 'enforceWarninglist' => $enforceWarninglist + 'enforceWarninglist' => $enforceWarninglist, + 'flatten' => 1 ) ); if (empty($temp)) { @@ -3401,7 +3402,6 @@ class Attribute extends AppModel )); } else { $tags = array(); - if (isset($attribute['AttributeTag'])) { foreach ($attribute['AttributeTag'] as $at) { unset($at['id']);