What is the problem?
In the Insert template dialog, if I favourite or unfavourite more than one template, only the last template that you (un)favourited will actually be (un)favourited.
It seems to be related to the API request, which does not remember the ID of previously favourited templates in subsequent requests.
Moreover, the templates in the Favourites tab have an empty icon.
Steps to reproduce problem
- Login to https://en.wikipedia.beta.wmcloud.org
- Open any article and edit
- Open the Insert template dialog
- Either search for templates in the Search input or go to the Featured tab
- Favourite two or more templates
- Go to the Favourites tab and see the templates you favourited (although their favourite icon is empty)
- Refresh the page and open the Insert template dialog again
- See that only one template is in the Favourites tab
A similar thing happens if you unfavourite two or more templates, only the last template will be unfavourited.
Environment
Wiki(s): https://en.wikipedia.beta.wmflabs.org TemplateData 0.2.0 (8b2177c) 08:05, 14 August 2025.
Editor:
Screenshots
Example of attempting to favourite two templates. Notice that the API request only has one ID each time, the ID of the first favourited template is not included in the second API request: