From dc10c9726124f15238b1ce63434e67ed1c44f044 Mon Sep 17 00:00:00 2001 From: Angie Byron <webchick@24967.no-reply.drupal.org> Date: Mon, 27 Sep 2010 22:11:38 +0000 Subject: [PATCH] #907690 follow-up by sun: Fix PostgreSQL error in breadcrumb logic by removing unused condition. --- includes/menu.inc | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/includes/menu.inc b/includes/menu.inc index cc3c69e922e0..2741063792b8 100644 --- a/includes/menu.inc +++ b/includes/menu.inc @@ -2330,16 +2330,6 @@ function menu_link_get_preferred($path = NULL) { $query->fields('m', array_diff(drupal_schema_fields_sql('menu_router'), array('weight'))); $query->condition('ml.menu_name', $menu_names, 'IN'); $query->condition('ml.link_path', $path_candidates, 'IN'); - // Include links - // - appearing in trees (MENU_VISIBLE_IN_TREE). - // - appearing in breadcrumbs (MENU_VISIBLE_IN_BREADCRUMB), since - // breadcrumbs are based on regular menu link trees. - // - not mapping to any router path (NULL). - $query->condition(db_or() - ->condition('m.type', MENU_VISIBLE_IN_TREE, '&') - ->condition('m.type', MENU_VISIBLE_IN_BREADCRUMB, '&') - ->isNull('m.type') - ); // Sort candidates by link path and menu name. $candidates = array(); -- GitLab