|
Murali K
|
Sunday 30 April 2006 6:21:15 am
Comment45932
When Denied, the item is not going to Drafts, it still remains under Pending Items. I was trying to debug, and comparing the core WorkFlow and EzApprove2 workflow, when a item is denied, following sql update statements were being executed. Core Workflow (working as desired) SQL:
UPDATE ezcollab_item_status SET is_active='0'
WHERE collaboration_id='18' AND user_id='14'
UPDATE ezcollab_item
SET type_identifier='ezapprove', creator_id='104', status='2',
data_text1='', data_text2='', data_text3='', data_int1='121', data_int2='1',
data_int3='2', data_float1='0.000000', data_float2='0.000000',
data_float3='0.000000', created='1146401128', modified='1146401153'
WHERE id='18'
EZApprove2 (not working as desired) SQL:
UPDATE ezx_approve_status_user_link
SET approve_id='19', approve_status='2', approve_role='1', hash='',
user_id='14', message_link_created='1', action='0'
WHERE id='36'
UPDATE ezcollab_item
SET type_identifier='ezapprove2', creator_id='104', status='1',
data_text1='', data_text2='', data_text3='', data_int1='123', data_int2='1',
data_int3='0', data_float1='0.000000', data_float2='0.000000',
data_float3='0.000000', created='1146402003', modified='1146402037'
WHERE id='20'
I can see differences with status and a table not being updated. can one tell me how to fix this?
|