Index: branches/5.2.x/core/units/admin/admin_events_handler.php =================================================================== diff -u -N -r15145 -r15261 --- branches/5.2.x/core/units/admin/admin_events_handler.php (.../admin_events_handler.php) (revision 15145) +++ branches/5.2.x/core/units/admin/admin_events_handler.php (.../admin_events_handler.php) (revision 15261) @@ -1,6 +1,6 @@ 'la_col_' . $field_info['Field'], - 'filter_block' => 'grid_like_filter', - ); + if ( $field_info['Key'] == 'PRI' ) { + $grid_col_options = Array ('title' => 'column:la_fld_Id', 'filter_block' => 'grid_range_filter', 'width' => 80); + } + else { + $grid_col_options = Array ('filter_block' => 'grid_like_filter'); + } + // 1. get php field type by mysql field type foreach ($types_hash as $php_type => $db_types) { if ( preg_match('/' . $db_types . '/', $field_info['Type']) ) { @@ -418,8 +421,13 @@ // numeric null field if ( preg_match('/(On|Date)$/', $field_info['Field']) || $field_info['Field'] == 'Modified' ) { $field_options['formatter'] = 'kDateFormatter'; - $grid_col_options['filter_block'] = 'grid_date_rage_filter'; + $grid_col_options['filter_block'] = 'grid_date_range_filter'; + $grid_col_options['width'] = 120; } + else { + $grid_col_options['filter_block'] = 'grid_range_filter'; + $grid_col_options['width'] = 80; + } } if ( $php_type == 'int' && ($not_null || is_numeric($default_value)) ) {