Whenever you go to "Create -> Activity -> Multiple Locations" then choose a campaign and the activity when you press submit you will get the following error:
ariable "activity" does not exist.
`
500 Internal Server Error - Twig_Error_Runtime
Stack Trace
in vendor/campaignchain/core/Resources/views/Operation/field_header.html.twig at line 19 -
{% if form is defined and form.vars is defined and form.vars.location is defined %}
{% set location = form.vars.location %}
{% elseif location is not defined %}
{% set location = activity.getLocation() %}
{% endif %}
{% spaceless %}
`
I can see that in /vendor/campaignchain/core/Entity/Activity.php it exists there. But I do not know how to include it.
Whenever you go to "Create -> Activity -> Multiple Locations" then choose a campaign and the activity when you press submit you will get the following error:
ariable "activity" does not exist. ` 500 Internal Server Error - Twig_Error_Runtime
Stack Trace
in vendor/campaignchain/core/Resources/views/Operation/field_header.html.twig at line 19 - {% if form is defined and form.vars is defined and form.vars.location is defined %} {% set location = form.vars.location %} {% elseif location is not defined %} {% set location = activity.getLocation() %} {% endif %} {% spaceless %} `
I can see that in /vendor/campaignchain/core/Entity/Activity.php it exists there. But I do not know how to include it.