I'm using a current version of Views-6.x-3.x-dev and I'm unable to save any settings in a Group By Fields field. I hit update, save, and then go back to the field and I see nothing is selected for "Fields to group on", etc.

Comments

ziomizar’s picture

subscribe!

mmironenko’s picture

I solve this problem by adding

  function option_definition() {
    $options = parent::option_definition();
    $options['views_groupby_fields_to_group'] = array('default' => TRUE);
    $options['views_groupby_sql_function'] = array('default' => TRUE);
    $options['views_groupby_fields_to_aggregate'] = array('default' => TRUE);
    $options['views_groupby_field_sortby'] = array('default' => TRUE);
    $options['views_groupby_sortby_direction'] = array('default' => TRUE);
    return $options;
  }

to the \views_groupby\handlers\views_groupby_handler_field_groupfields.inc file. Sorry, but I have no time to make a patch now. Hope this will help.