Hello,
I have a repeater field with an image (single) field. I would like to attach a hook when the repeater item has changed. But the change event is not triggered, when uploading an image. When removing an image the repeater item shows as changed.
Here's my hook
$this->addHookAfter('Pages::saveReady', function(HookEvent $event) {
$page = $event->arguments[0];
if($page->template != 'member') return;
$historyItems = $page->get('history'); // repeater field
foreach ($historyItems as $key => $item) {
if($item->isChanged()) bardump('CHANGED');
}
});
This looks like a bug to me. Can anybody reproduce this? PW 3.0.61