Rework the listeners so that they are called on the basis of each entitiy rather...
authorSeamus Lee <seamuslee001@gmail.com>
Mon, 10 May 2021 09:26:39 +0000 (19:26 +1000)
committerSeamus Lee <seamuslee001@gmail.com>
Wed, 19 May 2021 09:26:02 +0000 (19:26 +1000)
commit7c0f21b317221e296b8486e34181d8c43b2e90f0
treefe770fe29333c778d518c214f8bb2b7711914be1
parent37bc0f615e1677acfd173a56e4de59cc76597977
Rework the listeners so that they are called on the basis of each entitiy rather than just once. Also extract weight function out and make improvements following Coleman's review and add tests
ext/afform/core/CRM/Afform/Utils.php [new file with mode: 0644]
ext/afform/core/Civi/Afform/Event/AfformSubmitEvent.php
ext/afform/core/Civi/Api4/Action/Afform/Submit.php
ext/afform/core/tests/phpunit/CRM/Afform/UtilTest.php