From 9f641766a47b0eb0cb36e129c662ec51759564dc Mon Sep 17 00:00:00 2001
From: Neil Drumm <drumm@3064.no-reply.drupal.org>
Date: Fri, 25 Aug 2006 23:54:18 +0000
Subject: [PATCH] #80352 by Zacker. Manually created blocks now appear in block
 listing.

---
 modules/block/block.module | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/block/block.module b/modules/block/block.module
index 9aed0dca5142..e2e07d9212af 100644
--- a/modules/block/block.module
+++ b/modules/block/block.module
@@ -122,9 +122,9 @@ function block_block($op = 'list', $delta = 0, $edit = array()) {
     case 'list':
       $blocks = array();
 
-      $result = db_query("SELECT bid, bl.title, info FROM {boxes} bx INNER JOIN {blocks} bl ON bx.bid = bl.delta WHERE module = 'block' ORDER BY title");
+      $result = db_query('SELECT bid, info FROM {boxes} ORDER BY info');
       while ($block = db_fetch_object($result)) {
-        $blocks[$block->bid]['info'] = $block->info ? check_plain($block->info) : check_plain($block->title);
+        $blocks[$block->bid]['info'] = check_plain($block->info);
       }
       return $blocks;
 
-- 
GitLab