fix: [API] Galaxies still present as Tag in JSON export fixes #4133

pull/4138/head
Christophe Vandeplas 2019-02-10 13:10:40 +01:00
parent 67efc70bf5
commit ad9db27010
1 changed files with 3 additions and 1 deletions

View File

@ -5314,7 +5314,9 @@ class Event extends AppModel
unset($temp['GalaxyCluster']['Galaxy']);
$data['Galaxy'][count($data['Galaxy']) - 1]['GalaxyCluster'][] = $temp['GalaxyCluster'];
}
unset($data[$dataType . 'Tag'][$k]);
if ($cullGalaxyTags) {
unset($data[$dataType . 'Tag'][$k]);
}
}
}
}