Merge pull request #2502 from aparriel/tag_on_attribute_restSearch

Fix Tag json format
pull/2509/head
Andras Iklody 2017-09-22 15:43:32 +02:00 committed by GitHub
commit 501206ac7e
1 changed files with 1 additions and 2 deletions

View File

@ -1842,8 +1842,7 @@ class AttributesController extends AppController {
foreach ($results['response']['Attribute'] as $k => $v) {
if (isset($results['response']['Attribute'][$k]['AttributeTag'])) {
foreach ($results['response']['Attribute'][$k]['AttributeTag'] as $tk => $tag) {
$results['response']['Attribute'][$k]['Attribute']['Tag'][$tk] = $tag;
$results['response']['Attribute'][$k]['Attribute']['Tag'][$tk] = $tag['Tag'];
}
}
$results['response']['Attribute'][$k] = $results['response']['Attribute'][$k]['Attribute'];