Needs review
Project:
UUID Features Integration
Version:
7.x-1.x-dev
Component:
uuid_node
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Aug 2015 at 13:38 UTC
Updated:
7 Nov 2015 at 05:52 UTC
Jump to comment: Most recent, Most recent file

Comments
Comment #2
sdstyles commentedComment #3
sdstyles commentedComment #4
hussainwebI encountered the same error but the patch in #2 only solved some of the warnings. The patch would work fine if the version id's on the nodes don't change. If the feature is deployed on another machine, the id's change and the patch no longer works, as workbench_moderation can't find the vid.
I have changed the patch to use workbench_moderation to load correct states into the node object. Not only does it fix the array problem that the patch in #2 fixes, but it also loads correct vid, making sure everything else goes well.
I tested this on my site and it is working well. I am hoping to see this committed soon.
--
PS I am not entirely sure about this approach but it works. This implies that uuid_features has to worry about converting each and every item in the node object which shouldn't be an array. That makes sense considering that it is features that converts objects to arrays in the first place. Still, I am wondering if it makes more sense to handle this in workbench_moderation module itself. I am leaning towards a no considering that it is features module's responsibility to make sure the node object is back in it's original form. This fix might appear hacky but it seems the best we can do until features writes better support to serialize objects in code.
Comment #5
hussainwebThe previous patch generated a warning. The attached patch fixes the warning. The warning was about the node object not having a changed property: