From eb3f4e1d6fd7e1777e5e00030ac73099d63de284 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Thu, 16 Jan 2020 19:49:47 -0500 Subject: [PATCH] Revert "Reinstate parsing of data from the form" This reverts commit d31206f9e08703ae4f11b7e34673d7ece92b1630. --- ext/afform/core/ang/af/Form.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ext/afform/core/ang/af/Form.js b/ext/afform/core/ang/af/Form.js index e97a40e9df..06f3b9d183 100644 --- a/ext/afform/core/ang/af/Form.js +++ b/ext/afform/core/ang/af/Form.js @@ -20,10 +20,7 @@ this.registerEntity = function registerEntity(entity) { schema[entity.modelName] = entity; - // Permitting entity.data allows the afform to specify variables like - // that has been passing into the afform with the directive that initiates it. - // This is an advanced usage & afJoin is more normal. - data[entity.modelName] = entity.data || {}; + data[entity.modelName] = []; }; this.getEntity = function getEntity(name) { return schema[name]; -- 2.25.1