Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.
Forum Replies Created
-
AuthorReplies
-
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?
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’] %}
Same issue here…
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\ConfigValuetransition_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.valueHi,
I am facing the same issue as Jaimy.
When we could expect this to be solved?Regards,
Mirjana
I’ve found solution:
@Route(“/contact/create/{TypeId}”, name=”contact_create”, options= {“expose”= true}) -
AuthorReplies