From 96f38a1e91686ad09beaa161b309a2a73ec74be2 Mon Sep 17 00:00:00 2001 From: Diego Pino Navarro Date: Sun, 16 May 2021 18:46:03 -0400 Subject: [PATCH] Normalize uuid_node into node_uuid in case automatic UUID generation 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. --- src/Form/AmiMultiStepIngest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Form/AmiMultiStepIngest.php b/src/Form/AmiMultiStepIngest.php index d9ef22c..63e72e3 100644 --- a/src/Form/AmiMultiStepIngest.php +++ b/src/Form/AmiMultiStepIngest.php @@ -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);