diff --git a/app/code/community/BL/CustomGrid/Helper/Config.php b/app/code/community/BL/CustomGrid/Helper/Config.php index 328b636..950d3a4 100644 --- a/app/code/community/BL/CustomGrid/Helper/Config.php +++ b/app/code/community/BL/CustomGrid/Helper/Config.php @@ -73,8 +73,8 @@ protected function _getExceptionsListConfig($key) protected function _matchGridAgainstException($exception, $blockType, $rewritingClassName) { - return (preg_match($exception['block_type'], $blockType) - && preg_match($exception['rewriting_class_name'], $rewritingClassName)); + return (strpos($exception['block_type'], $blockType) + && strpos($exception['rewriting_class_name'], $rewritingClassName)); } public function addGridToExclusionsList($blockType, $rewritingClassName, $reinit=false)