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

Issue #2192809 by andrejsmuzikovs: Drupal.formatString() doesn't properly replace all placeholders.

parent 1cce8991
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
......@@ -276,7 +276,8 @@ if (window.jQuery) {
if (keys.length) {
for (var i = 0; i < fragments.length; i++) {
fragments[i] = Drupal.stringReplace(fragments[i], args, keys);
// Process each fragment with a copy of remaining keys.
fragments[i] = Drupal.stringReplace(fragments[i], args, keys.slice(0));
}
}
......
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