Skip to content

Commit

Permalink
fix MANYTOONE relationship data
Browse files Browse the repository at this point in the history
  • Loading branch information
wellingguzman committed Sep 22, 2016
1 parent eb9e6c3 commit 75354ff
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions app/modules/settings/views/TablesView.js
Expand Up @@ -450,21 +450,18 @@ function(app, Backbone, Directus, BasePageView, TableModel, ColumnModel, UIManag
}

switch(value) {
case 'single_file':
data['related_table'] = 'directus_files';
data['data_type'] = 'INT';
data['relationship_type'] = 'MANYTOONE';
data['junction_key_right'] = id;
break;
case 'multiple_files':
data['related_table'] = 'directus_files';
case 'many_to_many':
data['junction_key_right'] = id;
data['data_type'] = 'ALIAS';
data['relationship_type'] = 'MANYTOMANY';
break;
case 'single_file':
data['related_table'] = 'directus_files';
case 'many_to_one':
case 'many_to_one_typeahead':
data['data_type'] = 'INT';
data['relationship_type'] = 'MANYTOONE';
data['junction_key_right'] = id;
break;
Expand Down

0 comments on commit 75354ff

Please sign in to comment.