Skip to content

Commit

Permalink
Normalize uuid_node into node_uuid in case automatic UUID generation …
Browse files Browse the repository at this point in the history
…is asked for

Make sure we are using node_uuid which is semantically more accurate and will match what @alliomeria  has also. 
This won't break existing Templates since the mapping is stored in the config. This is just the default for new ones.
  • Loading branch information
DiegoPino authored May 16, 2021
1 parent 5583c58 commit 96f38a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Form/AmiMultiStepIngest.php
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,7 @@ public function submitForm(array &$form, FormStateInterface $form_state) {
$amisetdata->column_keys = $data['headers'];
$amisetdata->total_rows = $data['totalrows'];
// We should probably add the UUIDs here right now.
$uuid_key = isset($amisetdata->adomapping['uuid']['uuid']) && !empty($amisetdata->adomapping['uuid']['uuid']) ? $amisetdata->adomapping['uuid']['uuid'] : 'uuid_node';
$uuid_key = isset($amisetdata->adomapping['uuid']['uuid']) && !empty($amisetdata->adomapping['uuid']['uuid']) ? $amisetdata->adomapping['uuid']['uuid'] : 'node_uuid';
// We want to reset this value now
$amisetdata->adomapping['uuid']['uuid'] = $uuid_key;
$fileid = $this->AmiUtilityService->csv_save($data, $uuid_key);
Expand Down

0 comments on commit 96f38a1

Please sign in to comment.