From 37182bfda5529ddb4ba2aaedd09beb1e5ae94fbb Mon Sep 17 00:00:00 2001 From: diosmosis Date: Thu, 16 Apr 2020 13:24:39 -0700 Subject: merge 3.x to 4.x (#15821) * Avoid possible error subtable already exists but not loaded (#15779) * Make sure to always set JSON_PIWIK to native JSON when possible (#15785) * make sure to always set JSON_PIWIK to native JSON when possible * rebuilt piwik.js * Force POST for bulk requests, fix alwaysUseSendBeacon not respected for bulk requests (#15784) * Force POST for bulk requests, fix alwaysUseSendBeacon not respected for bulk requests * rebuilt piwik.js * Make sure to clean up tracking failures before sending email notification (#15798) Feedback from a customer... Eg the daily `cleanupTrackingFailures()` action might be only executed after the weekly `notifyTrackingFailures` therefore we should try to clean up failures first and then check if any are left. Avoids the case where a user opens hours later the email they receive and then there are no tracking failures reported. This could still happen but it's a bit less likely. * 3.13.5-b1 * Faster segmented suggested values when browser archiving is disabled (#15786) * Faster segmented suggested values when browser archiving is disabled * make sure no segment is set * remove wrong var type * fix/add tests * add more segment values * detect if we should flatten or not * add docs * Fix problem when comparing segments or opening popovers (#15809) refs #15805 * purge all old archives regardless of done value (#15800) * purge all old archives regardless of done value, we only care about the newest usable one * Fix test and start on new one. * Add coverage for change in tests. * there is no longer an inner join so should not need the idsite check * Add more parameters to the computeNbUnique event (#15808) * 3.13.5-b2 * One click update in two parts so new code is loaded for second. (#15770) * One click update in two parts so new code is loaded for second. * remove no longer needed code Co-authored-by: Thomas Steur Co-authored-by: Matthieu Aubry Co-authored-by: Stefan Giehl --- plugins/CoreAdminHome/Tasks.php | 1 + 1 file changed, 1 insertion(+) (limited to 'plugins/CoreAdminHome/Tasks.php') diff --git a/plugins/CoreAdminHome/Tasks.php b/plugins/CoreAdminHome/Tasks.php index a796708477..e68b035299 100644 --- a/plugins/CoreAdminHome/Tasks.php +++ b/plugins/CoreAdminHome/Tasks.php @@ -196,6 +196,7 @@ class Tasks extends \Piwik\Plugin\Tasks */ public function notifyTrackingFailures() { + $this->cleanupTrackingFailures(); $failures = $this->trackingFailures->getAllFailures(); $general = Config::getInstance()->General; if (!empty($failures) && $general['enable_tracking_failures_notification']) { -- cgit v1.2.3