Afform - Fix prefill action to return correct index when using af-repeat
authorcolemanw <coleman@civicrm.org>
Tue, 22 Aug 2023 17:45:21 +0000 (13:45 -0400)
committercolemanw <coleman@civicrm.org>
Tue, 22 Aug 2023 18:46:00 +0000 (14:46 -0400)
commit08f845b794cb92804a978457301f2d804f7461db
tree0d23101f160dde020c0787b5e5e3fa3a4eb37f0d
parent68108b0a1dd4ea65d213030ed0b17d58cdf3cfc9
Afform - Fix prefill action to return correct index when using af-repeat

Before: Index was ignored so only the first entity in an af-repeat set could be autofilled
After: Index handled correctly
ext/afform/core/Civi/Api4/Action/Afform/AbstractProcessor.php
ext/afform/mock/tests/phpunit/api/v4/AfformPrefillUsageTest.php [new file with mode: 0644]