diff --git a/src/Controller/IndexController.php b/src/Controller/IndexController.php index b9f1924..92d3ee7 100644 --- a/src/Controller/IndexController.php +++ b/src/Controller/IndexController.php @@ -142,9 +142,11 @@ public function mapAction() $form = $this->getForm(MappingForm::class, $mappingOptions); $form->setData($post); if ($form->isValid()) { - // Flatten basic and advanced settings back into single level - $post = array_merge($post, $post['basic-settings'], $post['advanced-settings']); - unset($post['basic-settings'], $post['advanced-settings']); + if (isset($post['basic-settings']) || isset($post['advanced-settings'])) { + // Flatten basic and advanced settings back into single level + $post = array_merge($post, $post['basic-settings'], $post['advanced-settings']); + unset($post['basic-settings'], $post['advanced-settings']); + } $args = $this->cleanArgs($post); $this->saveUserSettings($args); diff --git a/view/csv-import/index/map.phtml b/view/csv-import/index/map.phtml index e492981..3b0b177 100644 --- a/view/csv-import/index/map.phtml +++ b/view/csv-import/index/map.phtml @@ -26,8 +26,10 @@ $pageTitle = isset($resourceTypeLabels[$resourceType]) @@ -53,13 +55,20 @@ $pageTitle = isset($resourceTypeLabels[$resourceType]) +
translate('Batch edit options'); ?>
+ - + @@ -68,11 +77,15 @@ $pageTitle = isset($resourceTypeLabels[$resourceType]) $column): ?>
translate("Column"); ?> + + + + translate("Column"); ?> + translate("Mappings"); ?> translate("Options"); ?>
- + + +
  • +
  • +
@@ -112,6 +125,8 @@ $pageTitle = isset($resourceTypeLabels[$resourceType])
partial('common/mapping-sidebar'); ?> + partial('common/options-sidebar', ['dataTypes' => $dataTypes]); ?> + form()->closeTag($form); ?> diff --git a/view/csv-import/mapping-sidebar/user.phtml b/view/csv-import/mapping-sidebar/user.phtml index 68a7276..40f50fd 100644 --- a/view/csv-import/mapping-sidebar/user.phtml +++ b/view/csv-import/mapping-sidebar/user.phtml @@ -3,7 +3,7 @@

translate('Users info'); ?>

-