Skip to content
Snippets Groups Projects
Commit 8055460c authored by catch's avatar catch
Browse files

Issue #2160597 by vijaycs85: Remove drupal_add_js() from simpletest.theme.inc.

parent a0152d5c
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
......@@ -132,7 +132,12 @@ function theme_simpletest_test_table($variables) {
}
// Add js array of settings.
drupal_add_js(array('simpleTest' => $js), 'setting');
$attached = array();
$attached['#attached']['js'][] = array(
'data' => array('simpleTest' => $js),
'type' => 'setting',
);
drupal_render($attached);
if (empty($rows)) {
return '<strong>' . t('No tests to display.') . '</strong>';
......
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