Skip to content
Snippets Groups Projects
Verified Commit 5cfa146d authored by Alex ORLUC's avatar Alex ORLUC
Browse files

FIX #12070 TIME 0:15 fix custom format datas

parent 4de0a81e
No related branches found
No related tags found
No related merge requests found
......@@ -159,8 +159,19 @@ export class IndexationComponent implements OnInit {
formatDatas(datas: any) {
let formatData: any = {};
const regex = /indexingCustomField_[.]*/g;
formatData['customFields'] = {};
datas.forEach((element: any) => {
formatData[element.identifier] = element.default_value;
if (element.identifier.match(regex) !== null) {
formatData['customFields'][element.identifier.split('_')[1]] = element.default_value;
} else {
formatData[element.identifier] = element.default_value;
}
});
return formatData;
}
......
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