| Lucas_Werkmeister_WMDE added a comment. |
The current revision ID isn’t synced back to the config, but stored in the RevisionStore – per claim. That’s why you get that warning even during normal editing when adding new statements: the RevisionStore doesn’t have a revision ID for that claim yet (it’s new), so it falls back to the base revision, which was initialized from wgCurRevisionId. When you e. g. add a reference to an existing statement, on the other hand, the RevisionStore knows that statement’s revision ID, so it can make the edit with the correct ID and there’s no warning.
The gadget currently creates its own RevisionStore, which of course isn’t updated when the main UI adds statements. If I instead set its model._revisionStore to the main UI’s RevisionStore, pasting the reference works. The question is just – how do we get that RevisionStore? It’s somewhere deeply buried…
Cc: Lucas_Werkmeister_WMDE, 2015.ww, Jonas, Sjoerddebruin, Aklapper, Nikki, Jrbranaa, QZanden, dachary, Salgo60, D3r1ck01, Izno, Wikidata-bugs, aude, Ricordisamoa, Mbch331
_______________________________________________ Wikidata-bugs mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs
