Skip to content
Snippets Groups Projects
Commit b2cf5cc9 authored by Angie Byron's avatar Angie Byron
Browse files

Issue #996240 by David_Rothstein: Fixed Javascript error in node preview when...

Issue #996240 by David_Rothstein: Fixed Javascript error in node preview when there are unlimited value fields in overlay.
parent 252b7472
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -832,11 +832,14 @@ function overlay_render_region($region) { ...@@ -832,11 +832,14 @@ function overlay_render_region($region) {
// on the final rendered page. // on the final rendered page.
$original_js = drupal_add_js(); $original_js = drupal_add_js();
$original_css = drupal_add_css(); $original_css = drupal_add_css();
$original_libraries = drupal_static('drupal_add_library');
$js = &drupal_static('drupal_add_js'); $js = &drupal_static('drupal_add_js');
$css = &drupal_static('drupal_add_css'); $css = &drupal_static('drupal_add_css');
$libraries = &drupal_static('drupal_add_library');
$markup = drupal_render_page($page); $markup = drupal_render_page($page);
$js = $original_js; $js = $original_js;
$css = $original_css; $css = $original_css;
$libraries = $original_libraries;
// Indicate that the main page content has not, in fact, been displayed, so // Indicate that the main page content has not, in fact, been displayed, so
// that future calls to drupal_render_page() will be able to render it // that future calls to drupal_render_page() will be able to render it
// correctly. // correctly.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment