assign the policy.feedFieldName later in the save process to get the changes to the structured tables
@@ -490,10 +490,6 @@ define(['angular','feed-mgr/module-name'], function (angular,moduleName) {
var feedField = angular.copy(columnDef);
sourceField.name = columnDef.origName;
- if (angular.isDefined(policy)) {
- policy.feedFieldName = feedField.name;
- policy.name = columnDef.name;
- }
// structured files must use the original names
if (model.table.structured == true) {
@@ -502,6 +498,10 @@ define(['angular','feed-mgr/module-name'], function (angular,moduleName) {
} else if (model.table.method == 'EXISTING_TABLE') {
sourceField.name = columnDef.origName;
}
+ if (angular.isDefined(policy)) {
+ policy.feedFieldName = feedField.name;
+ policy.name = columnDef.name;
+ }
if (!columnDef.deleted) {
newFields.push(columnDef);
