FIX: Clicking on "view latest topics" in a forum with few topics was
broken.
This commit is contained in:
parent
d29822e4cb
commit
4366ae43d6
|
@ -210,6 +210,15 @@ Discourse.TopicList.reopenClass({
|
||||||
}
|
}
|
||||||
session.setProperties({topicList: null, topicListScrollPosition: null});
|
session.setProperties({topicList: null, topicListScrollPosition: null});
|
||||||
|
|
||||||
|
// Clean up any string parameters that might slip through
|
||||||
|
params = params || {};
|
||||||
|
Ember.keys(params).forEach(function(k) {
|
||||||
|
var val = params[k];
|
||||||
|
if (val === "undefined" || val === "null" || val === 'false') {
|
||||||
|
params[k] = undefined;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
var findParams = {};
|
var findParams = {};
|
||||||
Discourse.SiteSettings.top_menu.split('|').forEach(function (i) {
|
Discourse.SiteSettings.top_menu.split('|').forEach(function (i) {
|
||||||
if (i.indexOf(filter) === 0) {
|
if (i.indexOf(filter) === 0) {
|
||||||
|
|
Loading…
Reference in New Issue