Skip to content

Commit

Permalink
Translation Select Bug Fix (#1249)
Browse files Browse the repository at this point in the history
Fixed the comparison that sets the selected language for translation
fields.

Previous comparison would always return false, since the value types
being compared were different.
  • Loading branch information
iLama authored and wellingguzman committed Sep 1, 2016
1 parent f3c665c commit 6ee2ca8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/modules/tables/views/TranslationView.js
Expand Up @@ -107,7 +107,7 @@ function(app, Backbone, Handlebars, Directus, EntriesManager) {

if(this.languageCollection) {
data.languages = this.languageCollection.map(function(item) {
return {val: item.id, name: item.get(that.translateSettings.languages_name_column), active: (item.id === that.activeLanguageId)};
return {val: item.id, name: item.get(that.translateSettings.languages_name_column), active: (item.id == that.activeLanguageId)};
});
}

Expand Down

0 comments on commit 6ee2ca8

Please sign in to comment.