summaryrefslogtreecommitdiff
path: root/includes/menu.inc
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-09-27 22:11:38 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-09-27 22:11:38 +0000
commitdc10c9726124f15238b1ce63434e67ed1c44f044 (patch)
tree0df901d816f260e55422672e12a1a384ec3f52bf /includes/menu.inc
parentdb75efe636640ef02ca599ce13a83223761c6a92 (diff)
downloadbrdo-dc10c9726124f15238b1ce63434e67ed1c44f044.tar.gz
brdo-dc10c9726124f15238b1ce63434e67ed1c44f044.tar.bz2
#907690 follow-up by sun: Fix PostgreSQL error in breadcrumb logic by removing unused condition.
Diffstat (limited to 'includes/menu.inc')
-rw-r--r--includes/menu.inc10
1 files changed, 0 insertions, 10 deletions
diff --git a/includes/menu.inc b/includes/menu.inc
index cc3c69e92..274106379 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();