Skip to content

Commit 99ed168

Browse files
committed
Import: cleanups.
1 parent 805335d commit 99ed168

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

js/view-action/action-import.js

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -146,16 +146,6 @@ return Backbone.View.extend({
146146
this.model = model;
147147
},
148148

149-
getFields: function (){
150-
if(!this.fields){
151-
this.fields=Evol.Def.getFields(this.uiModel, function(f){
152-
// todo: allow formula fields & provide value in export
153-
return f.type!=fts.formula && (_.isUndefined(f.inImport) || f.inImport);
154-
});
155-
}
156-
return this.fields;
157-
},
158-
159149
getTitle: function(){
160150
//if(this.many){
161151
return i18n.getLabel('import.importMany', this.uiModel.namePlural);
@@ -268,11 +258,6 @@ return Backbone.View.extend({
268258
getFields: function () {
269259
if (!this._fields) {
270260
this._fields = Evol.Def.getFields(this.uiModel);
271-
this._fieldHash = {};
272-
var fh = this._fieldHash;
273-
_.each(this._fields, function (f) {
274-
fh[f.id] = f;
275-
});
276261
}
277262
return this._fields;
278263
}

0 commit comments

Comments
 (0)