AfformScanner - Allow loading bare forms
authorTim Otten <totten@civicrm.org>
Sat, 9 Feb 2019 02:43:46 +0000 (21:43 -0500)
committerCiviCRM <info@civicrm.org>
Wed, 16 Sep 2020 02:13:17 +0000 (19:13 -0700)
commita87c70cea7cc9ab96e79c1fe010e53a93713265d
treec6ae30f8dae3427e2c28c0a1be27ae63eb4bbeab
parent0991d162ca4519b1d7f7d0b0a46da45ae5fdcdbf
AfformScanner - Allow loading bare forms

__Before__: To create an afform, you *must* create both the HTML and JSON file.

__After__: To create an afform, you *must* create the HTML file. You *may* create JSON file.

__Comments__: This enhances developer usability.
ext/afform/core/CRM/Afform/AfformScanner.php
ext/afform/core/Civi/Api4/Action/Afform/Revert.php
ext/afform/mock/ang/afformExamplepage.aff.html
ext/afform/mock/ang/afformExamplepage.aff.json
ext/afform/mock/ang/fakelibBareFile.aff.html [new file with mode: 0644]
ext/afform/mock/ang/fakelibFoo.aff.html
ext/afform/mock/tests/phpunit/api/v4/AfformTest.php