Mwalker has submitted this change and it was merged.

Change subject: Apparently ints cannot be coerced into strings automatically
......................................................................


Apparently ints cannot be coerced into strings automatically

Change-Id: Ia708164e08899a714a4783d8905099021ba800b0
---
M lib/threads/frontend.js
1 file changed, 1 insertion(+), 5 deletions(-)

Approvals:
  Mwalker: Looks good to me, approved



diff --git a/lib/threads/frontend.js b/lib/threads/frontend.js
index e3cf116..58a3fe8 100644
--- a/lib/threads/frontend.js
+++ b/lib/threads/frontend.js
@@ -378,11 +378,7 @@
                                updateChapter(item.items);
                        } else {
                                collectionId.update(item.url || item.title);
-                               if (item.currentVersion) {
-                                       collectionId.update(item.latest);
-                               } else {
-                                       collectionId.update(item.revision);
-                               }
+                               collectionId.update(item.revision.toString());
                        }
                });
        };

-- 
To view, visit https://gerrit.wikimedia.org/r/107827
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ia708164e08899a714a4783d8905099021ba800b0
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Collection/OfflineContentGenerator
Gerrit-Branch: master
Gerrit-Owner: Mwalker <[email protected]>
Gerrit-Reviewer: Mwalker <[email protected]>
Gerrit-Reviewer: jenkins-bot

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to