Project

General

Profile

Actions

Anomalie #848

closed

upload fichier import avec espaces

Added by Hervé Leroux over 10 years ago. Updated over 10 years ago.

Status:
Fermé
Priority:
Normal
Category:
Core
Target version:
Start date:
09/18/2014
Due date:
% Done:

100%

Estimated time:
Version utilisée:

Description

Bonjour,

Je teste le déploiement de Galette pour une association sportive.
Lors d'une tentative d'import, j'ai reçu l'erreur suivante :
Fatal error: Call to undefined method Galette\IO\CsvIn::getbadChars() in /home/badmintol/galette/lib/Galette/IO/CsvIn.php on line 414

Le nom du fichier comportait des espaces.

Actions #1

Updated by Hervé Leroux over 10 years ago

Bien sûr, une fois les espaces retirés, l'upload a pu se faire correctement.

Actions #2

Updated by Johan Cwiklinski over 10 years ago

  • Status changed from Nouveau to In Progress
  • Assignee set to Johan Cwiklinski
  • Category set to Core

En effet, il y a bel et bien une fonction qui manque dans ce fichier...

Pour corriger en attendant, il suffit d'ajouter le code suivant à la fin du fichier galette/lig/Galette/IO/CSVIn.php, avant le dernier « } » :

    /**
     * Returns unauthorized characters litteral values quoted, comma separated values
     *
     * @return string comma separated disallowed characters
     */
    public function getBadChars()
    {
        $ret = '';
        foreach ( $this->_bad_chars as $char=>$regchar ) {
            $ret .= '`' . $char . '`, ';
        }
        return $ret;
    }

Actions #3

Updated by Johan Cwiklinski over 10 years ago

  • Target version set to 0.8.1
Actions #4

Updated by Johan Cwiklinski over 10 years ago

  • Status changed from In Progress to Résolu
  • % Done changed from 0 to 100
Actions #5

Updated by Johan Cwiklinski over 10 years ago

  • Status changed from Résolu to Fermé
Actions

Also available in: Atom PDF