From 3b36c5687504a7a6d69d4a3aa3d0f41d7c2a2719 Mon Sep 17 00:00:00 2001 From: Vincent Pietri Date: Thu, 16 Sep 2021 12:26:25 +0200 Subject: [PATCH] Fix call appConfig->getValue, partially closes #26 --- Block/Tab/Content/Config.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Block/Tab/Content/Config.php b/Block/Tab/Content/Config.php index 769ce4e..6e7a65c 100644 --- a/Block/Tab/Content/Config.php +++ b/Block/Tab/Content/Config.php @@ -2,6 +2,8 @@ namespace ADM\QuickDevBar\Block\Tab\Content; +use Magento\Framework\App\Config\ScopeConfigInterface; + class Config extends \ADM\QuickDevBar\Block\Tab\Panel { protected $_config_values; @@ -26,7 +28,8 @@ public function getTitleBadge() public function getConfigValues() { if (is_null($this->_config_values)) { - $this->_config_values = $this->_buildFlatConfig($this->_appConfig->getValue()); + $this->_config_values = $this->_buildFlatConfig($this->_appConfig->getValue( null, ScopeConfigInterface::SCOPE_TYPE_DEFAULT, + null)); } return $this->_config_values;