No option for other delimiter when exporting members

Created on 26 January 2021, about 4 years ago
Updated 22 May 2023, almost 2 years ago

Problem/Motivation

Hard coded delimiter inside the Action Plugin Export User.

Steps to reproduce

Go inside social_user_export directory.
src/Plugin/Action/ExportUser.php

  /**
   * {@inheritdoc}
   */
  public function executeMultiple(array $entities) {
.
.
      $csv = Writer::createFromPath($file_path, 'w');
      $csv->setDelimiter(';');
      $csv->setEnclosure('"');
      $csv->setEscape('\\');
.
.

Proposed resolution

For Windows Excel Users this is an issue and for the future It might be better to give users or the admin the choice to define the delimiter.

Remaining tasks

Please expose a action setting to let users choose the delimiter.

API changes

For now I will attach a patch that changes the delimiter from "," to ";"

Feature request
Status

Active

Version

9.6

Component

Other

Created by

🇬🇧United Kingdom globexplorer

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024