From: <gi...@ma...> - 2009-08-08 03:51:20
|
The branch, master has been updated via dccaf9aaf3832c1b3ac05fc97017e054f398ae2b (commit) from 5eb124eaff1d1219e3f21b05739825e77ae66643 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit dccaf9aaf3832c1b3ac05fc97017e054f398ae2b Author: David Hicks <hic...@op...> Date: Sat Aug 8 13:50:29 2009 +1000 Fix #10815: hide some internal fields from columns_api It is possible through account_manage_columns_page.php (and elsewhere) to view columns such as '_stats', 'profile_id', 'sticky' and 'loading' which are either just internal bits of data (not intended to be seen by the user) or in the case of 'sticky', are for internal display purposes only. These unnecessary columns should not be exposed through columns_api. ----------------------------------------------------------------------- Summary of changes: core/columns_api.php | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) ----------------------------------------------------------------------- commit dccaf9aaf3832c1b3ac05fc97017e054f398ae2b Author: David Hicks <hic...@op...> Date: Sat Aug 8 13:50:29 2009 +1000 Fix #10815: hide some internal fields from columns_api It is possible through account_manage_columns_page.php (and elsewhere) to view columns such as '_stats', 'profile_id', 'sticky' and 'loading' which are either just internal bits of data (not intended to be seen by the user) or in the case of 'sticky', are for internal display purposes only. These unnecessary columns should not be exposed through columns_api. diff --git a/core/columns_api.php b/core/columns_api.php index 0efafa5..4d906c3 100644 --- a/core/columns_api.php +++ b/core/columns_api.php @@ -92,7 +92,13 @@ function columns_get_standard() { if( config_get( 'enable_product_build' ) == OFF ) { unset( $t_columns['build'] ); } - + + # The following fields are used internally and don't make sense as columns + unset( $t_columns['_stats'] ); + unset( $t_columns['profile_id'] ); + unset( $t_columns['sticky'] ); + unset( $t_columns['loading'] ); + return array_keys($t_columns); } ----------------------------------------------------------------------- -- Mantis Bug Tracker |