Skip to content

Commit

Permalink
fix relationship type on the view
Browse files Browse the repository at this point in the history
  • Loading branch information
wellingguzman committed Apr 19, 2017
1 parent 418c02a commit eaec64e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/modules/settings/views/ColumnFormView.js
Expand Up @@ -126,6 +126,8 @@ define([
hideColumnName: this.hideColumnName
};

this.isAlias = false;

if (_.isFunction(this.uiFilter)) {
_.each(uis, function(value, key) {
if (this.uiFilter(value) !== true) {
Expand Down Expand Up @@ -212,7 +214,7 @@ define([

if (['many_to_one', 'single_file', 'many_to_one_typeahead'].indexOf(this.selectedUI) > -1) {
data.MANYTOONE = true;
data.selectedRelationshipType = 'MANYTOONE';
this.selectedRelationshipType = data.selectedRelationshipType = 'MANYTOONE';
tableRelated = this.getRelatedTable();//this.model.get('related_table');
this.model.set({junction_key_right: this.columnName});

Expand Down Expand Up @@ -354,7 +356,7 @@ define([
this.model.set({junction_key_right: junctionKeyRight});
}

this.model.set({relationship_type: this.selectedDataType});
this.model.set({relationship_type: this.selectedRelationshipType});
}

var dataType = this.selectedDataType;
Expand Down

0 comments on commit eaec64e

Please sign in to comment.