Results 1 to 2 of 2

Thread: Bug: Importing custom delimited file using Saved/Published Source

  1. #1
    simple is offline Sugar Community Member
    Join Date
    Jul 2005
    Posts
    259

    Default Bug: Importing custom delimited file using Saved/Published Source

    Hi

    (Version 4.5.0e)

    1. Import csv data delimited by ;
    2. Define mappings
    3. Save custom mapping

    4. Try to import the same csv file, choose the saved/published source you just created
    5. Since the custom delimiter is not saved in the mapping it won't work

    The Export Delimiter (System Settings and My Account) is set to ;

    I have added a note to bug #8109

    Any ideas/workaround till the bug is fixed?
    Cheers Pascal
    Simplicity GmbH

  2. #2
    simple is offline Sugar Community Member
    Join Date
    Jul 2005
    Posts
    259

    Default Re: Bug: Importing custom delimited file using Saved/Published Source

    Since we don't need to be able to import comma seperated data I changed two files.

    modules/Import/ImportStep3.php and
    modules/Import/ImportStep4.php

    PHP Code:
    if (isset($_REQUEST['custom_delimiter']) && $_REQUEST['custom_delimiter'] != "")
    {
        
    $delimiter $_REQUEST['custom_delimiter'];
    }
    //set the default delimiter. //<-- delimeter
    else
    {
        
    //$delimiter = ',';
        
    $delimiter ';';

    Now I'm able to import data using a saved mapping.
    Cheers Pascal
    Simplicity GmbH

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •