disabled parents no longer show up as parents of a category, re: #2080

v1.18.x
Julian Lam 10 years ago
parent 9cba8d7ecb
commit 6e21b7a830

@ -366,7 +366,7 @@ var db = require('./database'),
if (categories[i]) { if (categories[i]) {
categories[i]['unread-class'] = (parseInt(categories[i].topic_count, 10) === 0 || (hasRead[i] && uid !== 0)) ? '' : 'unread'; categories[i]['unread-class'] = (parseInt(categories[i].topic_count, 10) === 0 || (hasRead[i] && uid !== 0)) ? '' : 'unread';
categories[i].children = results.children[i]; categories[i].children = results.children[i];
categories[i].parent = results.parents[i]; categories[i].parent = results.parents[i] && !results.parents[i].disabled ? results.parents[i] : null;
} }
} }

Loading…
Cancel
Save