Forums

Covering OroCommerce, OroCRM, OroPlatform topics, including community updates and company announcements.

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

Forum Replies Created

Viewing 6 replies - 1 through 6 (of 6 total)
  • Author
    Replies
  • in reply to: JS CSS files not loading #25603

    mirche
    Participant

    Hi,

    I’m also having troubles after updating my project.
    assetic:dump fails to generatie oro.css file. It comes out with message
    ” [Exception]
    expected color value: line: 8

    The problems seems to be in web/bundles/orodatagrid/css/less/main.less

    I also did the steos shown in the #post-10077, but it didn’t help.

    Any idea how to fix it?

    in reply to: Address form – default country #33641

    mirche
    Participant

    Alright, I’ve got a solution:

    Copy the file Oro\Bundle\AddressBundle\Resources\views\Include\fields.html.twig to your own ..\Resources\views\Include\fields.html.twig;

    Edit this piece of code:

    <script type=”text/javascript”>
    require([‘jquery’, ‘oroaddress/js/region/view’, ‘oroaddress/js/region/collection’, ‘jquery.select2’],
    function($, RegionView, RegionCollection){
    $(function() {
    /** @type oro.region.View */

    new RegionView({
    el: $(‘#{{ country_field.vars.id }}’),
    target: $(‘#{{ id }}’),
    simpleEl: $(‘#{{ region_text_field.vars.id }}’),
    collection: new RegionCollection(),
    showSelect: {{ showSelect|json_encode|raw }}
    });
    });

    $(document).ready(function(){
    var el = $(‘#{{ country_field.vars.id }}’);
    var defaultValue = ‘NL’; // or any other country code
    el.select2(‘val’,defaultValue).trigger(‘change’);
    })

    });
    </script>

    Make sure you include this file into your form theme, so in ..\Resources\views\Default\update.html.twig:

    {% form_theme form with […, ‘MyAddressBundle:Include:fields.html.twig’] %}

    in reply to: Address form – default country #33640

    mirche
    Participant

    Same issue here…

    in reply to: System parameters in workflow #25036

    mirche
    Participant

    I have found a solution, so if someone else is struggling with this, here it comes:
    workflows:

    attributes:
    email_from_entity:
    label: ‘Email sender’
    type: entity
    options:
    class: Oro\Bundle\ConfigBundle\Entity\ConfigValue

    transition_definitions:

    my_transition_definition:
    post_actions:
    – @find_entity:
    parameters:
    class: Oro\Bundle\ConfigBundle\Entity\ConfigValue
    attribute: $email_from_entity
    where:
    name: email_notification_sender_email
    – @send_email_template:
    from: $email_from_entity.value

    in reply to: Workflows: Attachments/Files/Images #24924

    mirche
    Participant

    Hi,

    I am facing the same issue as Jaimy.
    When we could expect this to be solved?

    Regards,

    Mirjana

    in reply to: My routes are not recognizedized by router.js? #34632

    mirche
    Participant

    I’ve found solution:
    @Route(“/contact/create/{TypeId}”, name=”contact_create”, options= {“expose”= true})

Viewing 6 replies - 1 through 6 (of 6 total)
Back to top

You will be redirected to [title]. Would you like to continue?

Yes No

You will be redirected to [title]. Would you like to continue?

Yes No