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
No related merge requests found
......@@ -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