From 590b048cc33c1e30f803af12c621bf7832ae60d0 Mon Sep 17 00:00:00 2001 From: diosmosis <benaka@piwik.pro> Date: Wed, 3 Dec 2014 19:05:49 -0800 Subject: [PATCH] Refs #6756, make sure forceDefault in ViewDataTable::factory correctly forces use of default so 'sparkline' will be correctly used in row evolution code. --- core/ViewDataTable/Factory.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/ViewDataTable/Factory.php b/core/ViewDataTable/Factory.php index 9ac90a1723..2873e8538a 100644 --- a/core/ViewDataTable/Factory.php +++ b/core/ViewDataTable/Factory.php @@ -119,7 +119,9 @@ class Factory // Common::getRequestVar removes backslashes from the defaultValue in case magic quotes are enabled. // therefore do not pass this as a default value to getRequestVar() - if ('' === $type) { + if ('' === $type + || $forceDefault + ) { $type = $defaultType ? : HtmlTable::ID; } -- GitLab