https://bugzilla.wikimedia.org/show_bug.cgi?id=50983

--- Comment #2 from Addshore <[email protected]> ---
To reproduce:
* Load [[Q358687]] and open the js console
* Post the code below (this essentially gets the json for the entity and then
sends it back to the api)

var data = JSON.parse(wbEntity);
data.id = undefined;
data.type = undefined;
data.claims = undefined;
new mw.Api().post({
  action: 'wbeditentity',
  id: wbEntityId,
  data: JSON.stringify(data),
  token: mw.user.tokens.get('editToken'),
  summary: ''
}).always(function (m, d) { console.log(m, d); })

This should be a null edit but instead removes the 2 aliases listed above.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to