Skip to content
Snippets Groups Projects
Verified Commit cebc147b authored by Damien's avatar Damien
Browse files

FEAT entities id

parent b521a5c3
No related branches found
No related tags found
No related merge requests found
......@@ -330,9 +330,10 @@ abstract class EntityModelAbstract
$entitiesAllowed = EntityModel::getAllEntitiesByUserId(['userId' => $aArgs['userId']]);
}
$allEntities = EntityModel::get(['select' => ['entity_id', 'entity_label', 'parent_entity_id'], 'where' => ['enabled = ?'], 'data' => ['Y'], 'orderBy' => ['parent_entity_id']]);
$allEntities = EntityModel::get(['select' => ['id', 'entity_id', 'entity_label', 'parent_entity_id'], 'where' => ['enabled = ?'], 'data' => ['Y'], 'orderBy' => ['parent_entity_id']]);
foreach ($allEntities as $key => $value) {
$allEntities[$key]['serialId'] = $value['id'];
$allEntities[$key]['id'] = $value['entity_id'];
if (empty($value['parent_entity_id'])) {
$allEntities[$key]['parent'] = '#';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment