Field Manager:Reload metadata when field is saved

This commit is contained in:
yuri
2015-02-06 10:46:50 +02:00
parent 220c55e9b4
commit 43f1cb9af9
@@ -164,9 +164,10 @@ Espo.define('Views.Admin.FieldManager.Edit', 'View', function (Dep) {
}
this.listenToOnce(this.model, 'sync', function () {
this.getMetadata().data['entityDefs'][this.scope]['fields'][this.model.get('name')] = this.model.toJSON();
this.getMetadata().storeToCache();
this.notify('Saved', 'success');
this.getMetadata().load(function () {
this.getMetadata().storeToCache();
this.notify('Saved', 'success');
}.bind(this));
var data = this.getLanguage().data;
if (this.scope in data) {