So I have a configuration where i'm using the Draggable Views CCK handler. I have to use CCK handler because i want to Prepouplate the ParentID from the new node form.

This functionality it important so I cant use the Native Handler.

I found that Draggable View CCK Handler uses the node_save() function. This gives the node a new "changed" value. Therefore it would trigger the notification emails, as well as mark the node as recently updated.

D6 node_save() doesn't allow for bypassing the "created" value being set. The D7 function does.

Therefore the only work around is to create a new CCK handler that operates directly with the content_field_parentid table and set the new parentid without using the node_save method.

Attached is the CCKNoUpdate Handler. I have tested this and it seems to work.

Greg

Comments

msielski’s picture

StatusFileSize
new1.04 KB

Thank you for working on a solution to this problem! I have had the same issue with DraggableViews and Open Atrium and your module seems like a reasonable solution to me.

My only issue is that it appears you're using an integer field for the DraggableViews parent CCK field and both an integer or a node reference are supported. If integer fields are used then the field name ends in _value as your module uses, but if a node reference field is used it ends in _nid. Fortunately this data is available in the field data and the query can dynamically use it.

I've attached a patch which so far seems to work for me.

Thank you again.

Shadlington’s picture

Subscribing

discipolo’s picture

StatusFileSize
new4.31 KB

here it is as a patch

discipolo’s picture

Status: Active » Needs review
StatusFileSize
new4.28 KB

sorry, wrong one
here it is with comment #1

istryker’s picture

Issue summary: View changes
Status: Needs review » Closed (won't fix)

Thank you for the patch, however 6.x in now unsupport. Closing this issue.