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

8.0.x
Nathaniel Catchpole 2014-02-11 10:35:09 +00:00
parent 1cce8991af
commit c65c886651
1 changed files with 2 additions and 1 deletions

View File

@ -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));
}
}