From c365c386e9291636a9859e0dfcab086fb218de85 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 1 Jun 2015 19:18:15 +0000 Subject: [PATCH] Make sure get_rows is always set, fixes error when setting forced/default columns --- mail/inc/class.mail_ui.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mail/inc/class.mail_ui.inc.php b/mail/inc/class.mail_ui.inc.php index a8e481ce2f..bded545dd6 100644 --- a/mail/inc/class.mail_ui.inc.php +++ b/mail/inc/class.mail_ui.inc.php @@ -379,7 +379,6 @@ class mail_ui if (!is_array($content[self::$nm_index])) { $content[self::$nm_index] = array( - 'get_rows' => 'mail_ui::get_rows', // I method/callback to request the data for the rows eg. 'notes.bo.get_rows' 'filter' => 'any', // filter is used to choose the mailbox 'no_filter2' => false, // I disable the 2. filter (params are the same as for filter) 'no_cat' => true, // I disable the cat-selectbox @@ -400,6 +399,7 @@ class mail_ui } } + $content[self::$nm_index]['get_rows'] = 'mail_ui::get_rows'; $content[self::$nm_index]['num_rows'] = 0; // Do not send any rows with initial request $content[self::$nm_index]['default_cols'] = 'status,attachments,subject,address,date,size'; // I columns to use if there's no user or default pref (! as first char uses all but the named columns), default all columns $content[self::$nm_index]['csv_fields'] = false;