[MCR] Revision::newFromArchiveRow convert overrides for rows
authoraddshore <addshorewiki@gmail.com>
Fri, 22 Dec 2017 16:39:00 +0000 (16:39 +0000)
committeraddshore <addshorewiki@gmail.com>
Fri, 22 Dec 2017 16:39:00 +0000 (16:39 +0000)
commite85046bb4a37f8c06464c2dfa50fd474695d3ae3
tree8c59e17222fdd0580701b25f537d1ba5b68b8e0f
parentdf015f95c9c86cbff8c8be0e2a7fbfd51b0ff3c0
[MCR] Revision::newFromArchiveRow convert overrides for rows

This method used to overwrite attributes, then passed to
Revision::__construct
RevisionStore::newRevisionFromArchiveRow instead overrides row field
names

This patch adds a conversion for the one field that we need to care
about which is 'page' -> 'page_id'.

After looking through the usages in core and extensions it looks
like this will also fix a bug in the following classes which also
passes in 'page'.
 - RevDelArchivedRevisionItem
 - RevDelArchiveItem

Bug: T183564
Change-Id: I6a472b93663a0599abb55453c6939463ff56275d
includes/Revision.php
includes/Storage/RevisionStoreRecord.php