Download & Extend

Node saving not 100% perfect

Project:Edit section
Version:6.x-1.1
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

Hi, I've started using your module at it seems to work fine except one bug when saving nodes.

I'm using cck computed field wich is a cck field created from certain calculations you decide when saving a node. In my case I use it for creating a numeric year field that can be used to arrange nodes using views. In sort I convert year term string to numeric year data.

If I edit and save my nodes through your module the computed field is reset to zero. I think the reason could be that cck computed field needs information from full node wich is not loaded when you only edit one section.

If you fully edit and save the node the field is recalculated perfectly.

Regards and thanks in advance.

Comments

#1

I found a little workaround to avoid data erasing when saving through section-edit. Simply check if your computed variable is empty before overwriting the old one.

It's not perfect for any case but it works for me.

nobody click here