mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #29331
[Bug 1499583] Re: get_string_ajax() doesn't work properly with arguments
** Changed in: mahara
Milestone: None => 15.10.0
** Changed in: mahara
Status: In Progress => Fix Committed
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1499583
Title:
get_string_ajax() doesn't work properly with arguments
Status in Mahara:
Fix Committed
Bug description:
When getting a string with AJAX, arguments to be substituted into the
string are passed to the server and are substituted before the
response is sent back. This causes problems when a string is used
twice with different arguments - the response with the first arguments
substituted is cached, and is reused the second time (therefore
ignoring the second set of arguments).
It would be much more robust to return a string from the server with
"%s"s intact so that interpolation can happen each time it is used on
the client.
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1499583/+subscriptions
References