From 0bfb242eccac53f48cebae5a6332ece6425d28f8 Mon Sep 17 00:00:00 2001 From: Thiemo Kreuz Date: Thu, 10 Jun 2021 14:46:11 +0200 Subject: [PATCH] Fix TemplateData API not properly working with a generator All API modules that are a submodule of the action=query API do this already. What this method does is to forward all additional information from the "generator" module to the module that uses the generator as input. Without this line only the list of pages is forwarded, but all metadata is lost. The thing is: The templatedata API is not an action=query API, but a separate action. But it's largly compatible. It might even be possible to turn it into an action=query API, but this is beyond our capacity at the moment. Bug: T274907 Change-Id: I3c3c684109688c112ec15424119d4d30430ffd86 --- includes/api/ApiTemplateData.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/api/ApiTemplateData.php b/includes/api/ApiTemplateData.php index 5ae8cf2b..b66bf3b8 100644 --- a/includes/api/ApiTemplateData.php +++ b/includes/api/ApiTemplateData.php @@ -183,6 +183,7 @@ class ApiTemplateData extends ApiBase { } } + $pageSet->populateGeneratorData( $resp ); ApiResult::setArrayType( $resp, 'kvp', 'id' ); ApiResult::setIndexedTagName( $resp, 'page' );