diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 1ec86a69c24a06e60cb7119978a5c2c45ab7dfda..6d2dffe9ca73cce38e3793d8dfef25fa094d0769 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -24,3 +24,4 @@ Fix the naked style to support content that needs to be rendered. #980870 by das-peter: CSS handling during caching broken. #970076: Remove old hook_update functions. #978768 by linclark: Fix notice with panel fields. +#977296: Regions with _ such as with two column bricks would not save content. diff --git a/js/display_editor.js b/js/display_editor.js index 376cffb10200555c14e8015545f45bd11feba0e2..d7113d90c10d0ef70fd7c96ac9779ab4fe0e8d40 100644 --- a/js/display_editor.js +++ b/js/display_editor.js @@ -220,9 +220,7 @@ Drupal.Panels.Draggable = { val += this.id.replace(draggable.draggableId, ''); }); - // Note: _ is replaced with - because Drupal automatically does this - // with form ids. - var region = this.id.replace(/_/g, '-').replace('panel-pane-', ''); + var region = this.id.replace('panel-pane-', ''); $('input[name="panel[pane][' + region + ']"]').val(val); }); return false;