CampaignChain / campaignchain

CampaignChain Community Edition
Other
119 stars 51 forks source link

Variable "activity" does not exist. #388

Open adonisd opened 7 years ago

adonisd commented 7 years ago

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.

jasjitchopra commented 7 years ago

Facing the same issue here. Is this functionality incomplete?

RaviDhiman21 commented 6 years ago

I am also facing the same issue. Any clue???????