Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Besenreuther <timo.besenreuther@gmail.com>2013-03-21 16:40:58 +0400
committerTimo Besenreuther <timo.besenreuther@gmail.com>2013-03-21 16:40:58 +0400
commit725ef8772cc8994ca0b405611ea383056c5fe5ac (patch)
tree23d6c164b3ab67e387f98e3caf45e49bc185f444 /plugins/Transitions
parent485f537862e5d306b24141ebcc2b2a6014b8b24b (diff)
refs #3332 fixing regression related to using ajaxHelper in transitions: use regular transitions callback when PHP throws an exception (e.g. NoDataForAction) to let transitions handle the error and show a message in the popover.
Diffstat (limited to 'plugins/Transitions')
-rw-r--r--plugins/Transitions/templates/transitions.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/Transitions/templates/transitions.js b/plugins/Transitions/templates/transitions.js
index 72d96e795d..3f2d63db99 100644
--- a/plugins/Transitions/templates/transitions.js
+++ b/plugins/Transitions/templates/transitions.js
@@ -1408,6 +1408,7 @@ Piwik_Transitions_Ajax.prototype.callApi = function(method, params, callback) {
var ajaxRequest = new ajaxHelper();
ajaxRequest.addParams(params, 'get');
+ ajaxRequest.useCallbackInCaseOfError();
ajaxRequest.setCallback(
function (result) {
if (typeof result.result != 'undefined' && result.result == 'error') {