Bug #22958 Bug Fixed

Unable to edit existing Grid field groups

Version: 3.5.2 Reporter: TAG Communications

I can create new Grid field groups, but whenever I go in to edit or update setting, or add more columns, it says updates are saved but none actually are.

  • Hi TAG, sorry for the trouble. You might have a misconfigured PDO environment. We’ve put in a workaround for this in the next release, can you try it out and see if it gets you going again?

    Open system/ee/EllisLab/ExpressionEngine/Controller/Channels/Fields/Fields.php and find this code on line 266:

    $field->site_id = ee()->config->item('site_id');
    $field->group_id = ($field->group_id) ?: 0;
    $field->field_list_items = ($field->field_list_items) ?: '';
    $field->field_order = ($field->field_order) ?: 0;
    
    $field->set($_POST);

    And REPLACE it with this:

    $field->site_id = (int) ee()->config->item('site_id');
    $field->group_id = ($field->group_id) ?: 0;
    $field->field_list_items = ($field->field_list_items) ?: '';
    $field->field_order = ($field->field_order) ?: 0;
    
    unset($_POST['site_id']);
    $field->set($_POST);
    Kevin Cupp
    13th February, 2017 at 2:52pm
  • This fixed it for me, thanks!

    TAG Communications
    13th February, 2017 at 3:04pm
  • This fixed it for me too!.. Thanks!

    benoitlemay
    15th February, 2017 at 2:28pm
  • Yes this fixed this issue for me too.

    impart
    20th February, 2017 at 5:27am

You must be signed in to comment on a bug report.

ExpressionEngine News

#eecms, #events, #releases