Last modified: 2014-01-30 03:54:00 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T62548, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 60548 - wgRevisionId is 0 for edit page
wgRevisionId is 0 for edit page
Status: NEW
Product: MediaWiki
Classification: Unclassified
JavaScript (Other open bugs)
1.23.0
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-01-28 23:57 UTC by Matthew Flaschen
Modified: 2014-01-30 03:54 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Matthew Flaschen 2014-01-28 23:57:36 UTC
The JavaScript variable wgRevisionId is 0 when editing with the wikitext editor.

It seems that logically, it should be the revision used as the basis of the edit (the latest, or an oldid if that was used in the URL).

wgCurRevisionId (which is always the latest) is set.
Comment 1 Bartosz Dziewoński 2014-01-29 18:37:26 UTC
In fact, looking at the code, it's only set when action=view (by calling $outputPage->setRevisionId() in Article.php).

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links