Skip to content
Extraits de code Groupes Projets
Valider e6b5f333 rédigé par Stefan Giehl's avatar Stefan Giehl Validation de Matthieu Aubry
Parcourir les fichiers

Show actions without url in visitor log (#12191)

* Handle actions with title only correctly

* use action with empty url for tests

* update expected ui files
parent ca0a9aaf
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -100,6 +100,7 @@ class VisitorDetails extends VisitorDetailsAbstract ...@@ -100,6 +100,7 @@ class VisitorDetails extends VisitorDetailsAbstract
private function shouldHandleAction($action) { private function shouldHandleAction($action) {
$actionTypesToHandle = array( $actionTypesToHandle = array(
Action::TYPE_PAGE_URL, Action::TYPE_PAGE_URL,
Action::TYPE_PAGE_TITLE,
Action::TYPE_SITE_SEARCH, Action::TYPE_SITE_SEARCH,
Action::TYPE_EVENT, Action::TYPE_EVENT,
Action::TYPE_OUTLINK, Action::TYPE_OUTLINK,
...@@ -165,6 +166,7 @@ class VisitorDetails extends VisitorDetailsAbstract ...@@ -165,6 +166,7 @@ class VisitorDetails extends VisitorDetailsAbstract
$action['icon'] = 'plugins/Morpheus/images/search_ico.png'; $action['icon'] = 'plugins/Morpheus/images/search_ico.png';
break; break;
case Action::TYPE_PAGE_URL: case Action::TYPE_PAGE_URL:
case Action::TYPE_PAGE_TITLE:
case '': case '':
$action['type'] = 'action'; $action['type'] = 'action';
$action['icon'] = null; $action['icon'] = null;
......
...@@ -204,6 +204,12 @@ class VisitsWithAllActionsAndDevices extends Fixture ...@@ -204,6 +204,12 @@ class VisitsWithAllActionsAndDevices extends Fixture
$t->setForceVisitDateTime(Date::factory($dateTime)->addHour(0.4)->getDatetime()); $t->setForceVisitDateTime(Date::factory($dateTime)->addHour(0.4)->getDatetime());
$t->addEcommerceItem('F4NCYX', 'fancy product', 'software', $price = 40, $qty = 3); $t->addEcommerceItem('F4NCYX', 'fancy product', 'software', $price = 40, $qty = 3);
self::checkResponse($t->doTrackEcommerceCartUpdate(120)); self::checkResponse($t->doTrackEcommerceCartUpdate(120));
$t->setForceVisitDateTime(Date::factory($dateTime)->addHour(0.6)->getDatetime());
$t->setUrl('');
$t->setGenerationTime(156);
$t->setDebugStringAppend('bw_bytes=1254');
self::checkResponse($t->doTrackPageView('Action without url'));
} }
private function trackDeviceVisit(\PiwikTracker $t, $dateTime, $useragent) private function trackDeviceVisit(\PiwikTracker $t, $dateTime, $useragent)
......
Le fichier a été supprimé par une entrée .gitattributes, ou son encodage n'est pas pris en charge.
Le fichier a été supprimé par une entrée .gitattributes, ou son encodage n'est pas pris en charge.
Le fichier a été supprimé par une entrée .gitattributes, ou son encodage n'est pas pris en charge.
Le fichier a été supprimé par une entrée .gitattributes, ou son encodage n'est pas pris en charge.
Le fichier a été supprimé par une entrée .gitattributes, ou son encodage n'est pas pris en charge.
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter