From a576fd238d4c090fcbe9853a501dae59c68cb05d Mon Sep 17 00:00:00 2001 From: mattab Date: Mon, 17 Feb 2014 13:55:22 +1300 Subject: Proper fix to some edge case bug. Will be nice to use AngularJS for such client side features. --- core/View/UIControl.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'core/View') diff --git a/core/View/UIControl.php b/core/View/UIControl.php index 0590fe2552..92d8f436e2 100644 --- a/core/View/UIControl.php +++ b/core/View/UIControl.php @@ -107,6 +107,11 @@ class UIControl extends \Piwik\View return $this->innerView->__get($key); } + public function __isset($key) + { + return isset($this->innerView->templateVars[$key]); + } + /** * Renders the control view within a containing
that is used by the UIControl JavaScript * class. -- cgit v1.2.3