fix: [RPZ] flatten attributes for the RPZ export

pull/3664/head
iglocska 2018-09-08 23:46:37 +02:00
parent 1b4e566937
commit 55fd24d491
1 changed files with 2 additions and 2 deletions

View File

@ -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']);