Commit b0de171a authored by colemanw's avatar colemanw
Browse files

Merge branch 'master' into 'master'

Reinstate parsing of data from the form

See merge request extensions/afform!26
parents 4d9c02cd d31206f9
......@@ -22,7 +22,7 @@ if you already have a basic understanding of CiviCRM API and AngularJS. It is l
## Requirements
* PHP v7.0+
* CiviCRM v5.7+
* CiviCRM v5.22+
<!--
## Installation (Web UI)
......
......@@ -20,7 +20,10 @@
this.registerEntity = function registerEntity(entity) {
schema[entity.modelName] = entity;
data[entity.modelName] = [];
// 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 || {};
};
this.getEntity = function getEntity(name) {
return schema[name];
......
......@@ -73,4 +73,4 @@ cv open 'civicrm/contact?cid=100'
What does this buy us? It means that a downstream admin (using APIs/GUIs) can fork `ang/myContactName.aff.html` --
but all the other components can cleanly track the canonical release. This significantly reduces the costs and risks
of manging upgrades and changes.
of managing upgrades and changes.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment