[ticket/12117] Select all fields instead of item_basic_data

PHPBB3-12117
This commit is contained in:
Matt Friedman 2014-03-10 16:06:53 -07:00
parent c1115d9451
commit 4127f92496

View file

@ -666,8 +666,6 @@ abstract class nestedset implements \phpbb\tree\tree_interface
/** /**
* Get all items from the tree * Get all items from the tree
* *
* Basic data is defined in the $item_basic_data property.
*
* @param bool $order_asc Order the items ascending by their left_id * @param bool $order_asc Order the items ascending by their left_id
* @return array Array of items (containing all columns from the item table) * @return array Array of items (containing all columns from the item table)
* ID => Item data * ID => Item data
@ -676,7 +674,7 @@ abstract class nestedset implements \phpbb\tree\tree_interface
{ {
$rows = array(); $rows = array();
$sql = 'SELECT ' . implode(', ', $this->item_basic_data) . ' $sql = 'SELECT *
FROM ' . $this->table_name . ' ' . FROM ' . $this->table_name . ' ' .
$this->get_sql_where('WHERE') . ' $this->get_sql_where('WHERE') . '
ORDER BY ' . $this->column_left_id . ' ' . ($order_asc ? 'ASC' : 'DESC'); ORDER BY ' . $this->column_left_id . ' ' . ($order_asc ? 'ASC' : 'DESC');