ssossossossosso

Forums

Forums OroPlatform OroPlatform – How do I? Questions How do I change contact source?

This topic contains 7 replies, has 3 voices, and was last updated by  Artem Liubeznyi 1 year, 1 month ago.

  • Creator
    Topic
  • #30683

    Anton
    Participant

    Currently contact source has TV, Website, but I would like to add additional sources.

    How do I do this? Thanks

Viewing 7 replies - 1 through 7 (of 7 total)
  • Author
    Replies
  • #30684

    Mike Kudelya
    Moderator

    Hi

    I suggest you create new migration in your custom bundle similar to this with your new options https://github.com/orocrm/crm/blob/master/src/Oro/Bundle/ContactBundle/Migrations/Data/ORM/LoadSourceData.php

    #30685

    Anton
    Participant

    Do you think I can use an ftp manager to edit that .php file directly, adding my options, and not break oro?

    #30686

    Mike Kudelya
    Moderator

    Hi

    If oro is installed that migration has already been executed and never executed again, you should create new migration in your custom bundle. You can read how to create it and run. I suggest you do database backup before any system update.

    #30687

    Anton
    Participant

    I was quote this as a 6 to 8 hour project.

    I see that lead sources can be changed easily through the UI. I really think contact source should be just as easy.

    Perhaps the estimate was wrong. How long do you anticipate a new oro migration would take to create and run?

    Thanks

    #30688

    Mike Kudelya
    Moderator

    Hi

    Lead source field you can easily modify because it is ‘select’ field of Lead, but contact source is not select field. New bundle&migration take i think ~1-2h

    #30689

    Anton
    Participant

    Ok thanks for the help

    #30690

    Artem Liubeznyi
    Keymaster

    @Anton, if you are willing to contribute the migration to our CRM master, it will be greatly appreciated. We already had a couple of requests to transform our old dictionary fields to option sets that can be managed from the UI.

    We have this task in the backlog as well, but a hand from the community will be great.

Viewing 7 replies - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.