Allow cloning of feeds, clone input processor settings
@@ -113,6 +113,7 @@ define(['angular','feed-mgr/feeds/define-feed/module-name'], function (angular,m
* @param {Object} template the template with properties
*/
function initializeProperties(template) {
+ if(angular.isUndefined(self.model.cloned) || self.model.cloned == false) {
RegisterTemplateService.initializeProperties(template, 'create', self.model.properties);
self.inputProcessors = RegisterTemplateService.removeNonUserEditableProperties(template.inputProcessors, true);
self.model.allowPreconditions = template.allowPreconditions;
@@ -150,6 +151,7 @@ define(['angular','feed-mgr/feeds/define-feed/module-name'], function (angular,m
return angular.isObject(property.propertyDescriptor) && angular.isString(property.propertyDescriptor.identifiesControllerService);
})
.each(findControllerServicesForProperty);
+ }
self.loading = false;
validate();
}
