Using 'categroy_id' instead of 'cid' in the preferences Backbone.Model,

as it is used by the Backbone.Collection to get the object by id.
This commit is contained in:
Ashesh Vashi
2017-10-24 18:47:31 +05:30
parent 8adf005ef8
commit c53c6d2f48
2 changed files with 3 additions and 2 deletions

View File

@@ -292,7 +292,8 @@ define('pgadmin.preferences', [
if (d.preferences && _.isArray(d.preferences)) {
_.each(d.preferences, function(p) {
preferences.add({
'id': p.id, 'value': p.value, 'cid': d.id, 'mid': d.mid
'id': p.id, 'value': p.value, 'category_id': d.id,
'mid': d.mid, 'name': p.name,
});
/*
* We don't know until now, how to render the control for