From 7f66670a99bc6e1caa14dea612f76dc2ba33aafa Mon Sep 17 00:00:00 2001 From: webchick Date: Wed, 2 Jan 2013 08:36:51 -0800 Subject: [PATCH] Issue #1864944 by Wim Leers: Fixed ajaxPageState does not contain JS files that are in scopes other than 'header' --- core/includes/common.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/includes/common.inc b/core/includes/common.inc index bb14e95fb34..9ec3d0d5fa5 100644 --- a/core/includes/common.inc +++ b/core/includes/common.inc @@ -3827,7 +3827,7 @@ function drupal_get_js($scope = 'header', $javascript = NULL, $skip_alter = FALS // Provide the page with information about the individual JavaScript files // used, information not otherwise available when aggregation is enabled. - $setting['ajaxPageState']['js'] = array_fill_keys(array_keys($items), 1); + $setting['ajaxPageState']['js'] = array_fill_keys(array_keys($javascript), 1); unset($setting['ajaxPageState']['js']['settings']); // Provide the page with information about the individual CSS files used,