Needs review
Project:
Private Number
Version:
6.x-1.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
23 Apr 2010 at 02:13 UTC
Updated:
12 Mar 2012 at 15:25 UTC
Jump to comment: Most recent
There seems to be some sort of incompatibility issue when using Private Number in conjunction with the Workflow module. When a user changes workflow state (from the tab page) the private number value will be encrypt the already encrypted value. This process continues for every subsequent workflow change.
The fix involved hardcoding the private number decryption method into the workflow module prior to node_save(). I'm not sure if it's possible to hook into it.
Comments
Comment #1
john.money commentedInvestigating...
Comment #2
Anonymous (not verified) commentedWhat's the status on this?
Comment #3
adnasa commentedI fixed this.
On lin 92 in private_number.module
previously the 'presave' operation doesn't check if the node actually already existed or not.
Since workflow again saves the node when changing a state,
somehow it doesn't go through the CCK fields and re-evaluate values.
But we could change that just by encrypting the fields only if the
$node->niddoesn't exist and if it is new contentEnjoy!