From 8c31ac57ce140b334cc4265bd5142f8887d4fe91 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Tue, 26 Jul 2016 12:03:16 +0200 Subject: [PATCH] create an operation based on the correct model --- apps/workflowengine/js/admin.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/apps/workflowengine/js/admin.js b/apps/workflowengine/js/admin.js index a29ad82ab8..f51352c45e 100644 --- a/apps/workflowengine/js/admin.js +++ b/apps/workflowengine/js/admin.js @@ -341,18 +341,13 @@ this._initialize('OCA\\WorkflowEngine\\Operation'); }, _initialize: function(classname) { - var data = {}; - if (this.operationsClass !== null) { - data['class'] = this.operationsClass; - } this.collection.fetch({data: { 'class': classname }}); this.collection.once('sync', this.render, this); }, add: function() { - var operation = new OCA.WorkflowEngine.Operation(); - this.collection.add(operation); + var operation = this.collection.create(); this.renderOperation(operation); }, renderOperation: function(operation){