From 92d1d600aec840f3416572bd59be0855c2ea27c5 Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Tue, 21 Jun 2016 14:23:24 +0100 Subject: [PATCH] SubGroupListWidget: use timestamp from model, not from listWidget This ensures that the fallback timestamp is used if the list is still empty. Not doing this causes the wikis in the cross-wiki bundle to appear in the wrong order. Also, it makes more sense to use the model as the source of truth regardless. Bug: T138115 Change-Id: Icbfdc7e7c7f67179e50f0f692aef1a54568265e6 --- modules/ui/mw.echo.ui.SubGroupListWidget.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ui/mw.echo.ui.SubGroupListWidget.js b/modules/ui/mw.echo.ui.SubGroupListWidget.js index 1ccd13f83..2ea91d575 100644 --- a/modules/ui/mw.echo.ui.SubGroupListWidget.js +++ b/modules/ui/mw.echo.ui.SubGroupListWidget.js @@ -206,7 +206,7 @@ * @return {number} Timestamp */ mw.echo.ui.SubGroupListWidget.prototype.getTimestamp = function () { - return this.listWidget.getTimestamp(); + return this.model.getTimestamp(); }; /**