diff options
author | Stefan Giehl <stefan@piwik.org> | 2017-09-13 17:13:31 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-13 17:13:31 +0300 |
commit | 663ea209f253760359855dc77a348383406dcfbc (patch) | |
tree | 940b82c166fcd7178ce649764533af103e3b14a7 /plugins | |
parent | 9f861cc2019edf056d9e4a1f07dbb07da2960402 (diff) |
render only known action types (#12038)
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/Live/templates/getLastVisitsStart.twig | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/Live/templates/getLastVisitsStart.twig b/plugins/Live/templates/getLastVisitsStart.twig index 4e44f75427..1f37e4854a 100644 --- a/plugins/Live/templates/getLastVisitsStart.twig +++ b/plugins/Live/templates/getLastVisitsStart.twig @@ -144,7 +144,8 @@ {% elseif action.eventCategory|default(false) is not empty %} <img class="iconPadding" src='{{ action.icon }}' title="{{ 'Events_Event'|translate }} {{ action.eventCategory }} - {{ action.eventAction }} {% if action.eventName is defined %}- {{ action.eventName }}{% endif %} {% if action.eventValue is defined %}- {{ action.eventValue }}{% endif %}"/> - {% else %} + {% elseif action.type == 'goal' or action.type == constant('\Piwik::LABEL_ID_GOAL_IS_ECOMMERCE_ORDER') or + action.type == constant('\Piwik::LABEL_ID_GOAL_IS_ECOMMERCE_CART') %} <img class='iconPadding' src="{{ action.icon }}" title="{{ action.goalName }} - {% if action.revenue > 0 %}{{ 'General_ColumnRevenue'|translate }}: {{ action.revenue|money(idSite)|raw }} - {% endif %} {{ action.serverTimePretty }}"/> {% endif %} |