I have a Pod (let's call it 'main') which has a related field to an extended Media Pod.
After saving the 'main' pod, I use the pods_api_post_save_pod_item_{podname} action to do some validation, and potentially delete the related media item.
It seems that after deleting the related media item when in pods_api_post_save_pod_item_{podname} action, subsequent calls to pods->display() or pods->field() which used to link to the 'now deleted' media object still returns the same payload, instead, it should now be returning empty (because the related media is gone).
I wonder if it's caching, we found and fixed a similar issue here but not specific to extended Media objects) - #3917
I have a Pod (let's call it 'main') which has a related field to an extended Media Pod.
After saving the 'main' pod, I use the
pods_api_post_save_pod_item_{podname}action to do some validation, and potentially delete the related media item.It seems that after deleting the related media item when in
pods_api_post_save_pod_item_{podname}action, subsequent calls topods->display()orpods->field()which used to link to the 'now deleted' media object still returns the same payload, instead, it should now be returning empty (because the related media is gone).I wonder if it's caching, we found and fixed a similar issue here but not specific to extended Media objects) - #3917