Skip to content

Commit

Permalink
set data for active translation (Closes #1766)
Browse files Browse the repository at this point in the history
  • Loading branch information
wellingguzman committed Aug 25, 2017
1 parent 9f19567 commit 3c4fbd6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/modules/tables/views/TranslationView.js
Expand Up @@ -85,7 +85,12 @@ function(app, Backbone, Handlebars, Directus, EntriesManager) {
data[this.translateSettings.left_column_name] = this.activeLanguageId;
data[this.translateRelationship.junction_key_right] = this.model.id;

this.translateModel = new this.translateCollection.model({}, {collection: this.translateCollection, parse: true});
this.translateModel = new this.translateCollection.model(data, {
collection: this.translateCollection,
parse: true
});

this.translateCollection.add(this.translateModel);
}

if (!this.translateModel.isTracking()) {
Expand Down

0 comments on commit 3c4fbd6

Please sign in to comment.