From aa823d1c23ff553957e8a802d1662009f1bd7775 Mon Sep 17 00:00:00 2001 From: sam marshall Date: Wed, 9 Sep 2020 16:04:39 +0100 Subject: [PATCH] MDL-69663 Web services: override_webservice_execution not honoured If two different plugin types (e.g. theme, local) implement override_webservice_execution callbacks, then all of them except the 'last' plugin type do not work correctly. --- lib/externallib.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/externallib.php b/lib/externallib.php index 50cd9da668d..7f33390e564 100644 --- a/lib/externallib.php +++ b/lib/externallib.php @@ -250,7 +250,7 @@ class external_api { foreach ($plugins as $plugin => $callback) { $result = $callback($externalfunctioninfo, $params); if ($result !== false) { - break; + break 2; } } }