mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 06:25:50 +01:00
upon saving, copy over route properties from defaults
This commit is contained in:
@@ -40,6 +40,12 @@ define('admin/general/navigation', function() {
|
||||
data[input.name] = input.value;
|
||||
});
|
||||
|
||||
available.forEach(function(item) {
|
||||
if (item.route.match(data.route)) {
|
||||
data.properties = item.properties;
|
||||
}
|
||||
});
|
||||
|
||||
nav.push(data);
|
||||
});
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ var db = require('./database'),
|
||||
schemaDate, thisSchemaDate,
|
||||
|
||||
// IMPORTANT: REMEMBER TO UPDATE VALUE OF latestSchema
|
||||
latestSchema = Date.UTC(2015, 1, 25, 1);
|
||||
latestSchema = Date.UTC(2015, 1, 25, 2);
|
||||
|
||||
Upgrade.check = function(callback) {
|
||||
db.get('schemaDate', function(err, value) {
|
||||
@@ -943,7 +943,7 @@ Upgrade.upgrade = function(callback) {
|
||||
}
|
||||
},
|
||||
function(next) {
|
||||
thisSchemaDate = Date.UTC(2015, 1, 25, 1);
|
||||
thisSchemaDate = Date.UTC(2015, 1, 25, 2);
|
||||
if (schemaDate < thisSchemaDate) {
|
||||
updatesMade = true;
|
||||
winston.info('[2015/02/25] Upgrading menu items to dynamic navigation system');
|
||||
|
||||
Reference in New Issue
Block a user