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

FEAT #11269 TIME 0:05 Remove indexing field type again

parent 810f3a4a
No related branches found
No related tags found
No related merge requests found
...@@ -46,7 +46,7 @@ class IndexingModelController ...@@ -46,7 +46,7 @@ class IndexingModelController
return $response->withStatus(400)->withJson(['errors' => 'Model out of perimeter']); return $response->withStatus(400)->withJson(['errors' => 'Model out of perimeter']);
} }
$fields = IndexingModelFieldModel::get(['select' => ['type', 'identifier', 'mandatory', 'default_value', 'unit'], 'where' => ['model_id = ?'], 'data' => [$args['id']]]); $fields = IndexingModelFieldModel::get(['select' => ['identifier', 'mandatory', 'default_value', 'unit'], 'where' => ['model_id = ?'], 'data' => [$args['id']]]);
foreach ($fields as $key => $value) { foreach ($fields as $key => $value) {
$fields[$key]['default_value'] = json_decode($value['default_value'], true); $fields[$key]['default_value'] = json_decode($value['default_value'], true);
} }
......
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