The image does not get attached in a normal node load/save code operation. I had to visit the edit page and save the node through the form for the image to get updated. Need to find a way to bulk update content.

Comments

danielphenry’s picture

Version: 7.x-1.0-alpha2 » 7.x-1.0-beta1
Component: Feature Request » Code
Issue summary: View changes

I think the best method for this is to add a "randomize" button that goes through all nodes with image field random set and store a new random photo against them.

Thoughts?

miechiel’s picture

In #2696517: Update Profile2 I re-factored the module to work on hook_entity_presave instead of the hook_field_attach_submit.

miechiel’s picture

Status: Active » Needs review
danielphenry’s picture

This is indeed fixed by @miechiel patch. It is available on the latest 7.x-1.x branch. Will spin up a beta2 release as soon as someone confirms it works for them.

danielphenry’s picture

Status: Needs review » Fixed
danielphenry’s picture

Status: Fixed » Closed (fixed)