Download & Extend

views_plugin_query_default::ensure_table may return false instead of just a string or NULL.

Project:Views
Version:7.x-3.x-dev
Component:Documentation
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

API page: http://api.drupal.org/api/views/plugins!views_plugin_query_default.inc/function/views_plugin_query_default%3A%3Aensure_table/7

The documentation declares the following:

Return value
The alias used to refer to this specific table, or NULL if the table cannot be ensured.

In fact, if you look at the 3rd if statement, you see:

<?php
if (!array_key_exists($relationship, $this->relationships)) {
    return
FALSE;
  }
?>

Comments

#1

Project:Drupal core» Views
Version:7.x-dev» 7.x-3.x-dev
Component:documentation» Documentation

Moving to correct project. Thanks for reporting this!

nobody click here