Skip to content

Commit

Permalink
fix: add filter to repeater field API that allows replacing notificat…
Browse files Browse the repository at this point in the history
…ion instance for value resolver
  • Loading branch information
Dartui committed Sep 24, 2024
1 parent d9db69f commit ed4a90f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/Api/Controller/RepeaterController.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,13 @@ public function formFieldData($data = null)
*/
public function getValues($postId, $carrier, $field)
{
$notification = Db::postToNotification($postId);
$notification = apply_filters(
'notification/field/repeater/notification_instance',
Db::postToNotification($postId),
$postId,
$carrier,
$field
);

if (! $notification instanceof Notification) {
return [];
Expand Down

0 comments on commit ed4a90f

Please sign in to comment.