From 5be3e751098f5ab8115eb0d4287356ac7ee0aee8 Mon Sep 17 00:00:00 2001 From: Thomas Chmielowiec Date: Thu, 23 Aug 2012 13:40:52 +0000 Subject: [PATCH] [#3317] show_export_as_image_icon setting without effect in widgets --- core/ViewDataTable/GenerateGraphHTML.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/ViewDataTable/GenerateGraphHTML.php b/core/ViewDataTable/GenerateGraphHTML.php index 1fc3d43fce6..a784514060d 100644 --- a/core/ViewDataTable/GenerateGraphHTML.php +++ b/core/ViewDataTable/GenerateGraphHTML.php @@ -68,7 +68,11 @@ function init($currentControllerName, public function enableShowExportAsImageIcon() { - $this->viewProperties['show_export_as_image_icon'] = true; + // If user passed 0 or 1 in request, value is not overwritten. false is default + if (false === $this->viewProperties['show_export_as_image_icon']) + { + $this->viewProperties['show_export_as_image_icon'] = true; + } } public function addRowEvolutionSeriesToggle($initiallyShowAllMetrics) {