From 2eb32fd6ba922c20eca22dcdfbca2dd702e742f0 Mon Sep 17 00:00:00 2001 From: wangyidong Date: Fri, 14 Dec 2018 15:37:15 +0800 Subject: [PATCH] * fix bug for block. --- module/block/control.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/block/control.php b/module/block/control.php index 1a8f6d57eb..e93dc75f09 100644 --- a/module/block/control.php +++ b/module/block/control.php @@ -220,7 +220,7 @@ class block extends control $shortBlocks = $longBlocks = array(); foreach($blocks as $key => $block) { - if(!empty($block->source) and !empty($acls['views']) and !isset($acls['views'][$block->source])) + if(!empty($block->source) and $block->source != 'todo' and !empty($acls['views']) and !isset($acls['views'][$block->source])) { unset($blocks[$key]); continue;