[Vtigercrm-developers] Function vtws_revise creates an incorrect history entry

MrJingles paddy at renaissancegroup.co.uk
Tue Jun 7 11:12:36 GMT 2016


Thanks for your help with this issue - I finally think I am making progress.

This is the issue that I am not sure how to fix:

I prepare the data for the vtws_revise function as follows:

	$updateparameters = array( 
	'cf_1083' => NULL,			// Contact ID
	'cf_852' => 'For Sale',		        // Apartment Status
	'cf_868' => 0,				// Sold Price
	'id' => $previous_aptid		// Previous Apartment ID
	);

The top variable of the array is the issue!! I am trying to remove a value
in a field using the revise function. I've tried the following:

'cf_1083' => NULL, - no error, but the value is not removed.
'cf_1083' => '', - no error, but the value is not removed.
'cf_1083' => , - errors and function doesn't run.
'cf_1083' => 0, - errors and function doesn't run.(diff error to above).
'cf_1083' => '0' -errors and function doesn't run. (same as above). 

So after all of this, any idea how I can code the above so that the existing
value is remove for the field specified. (This field is a related to field
that contains a contact ID).

Any help as always is greatly appreciated.

Thanks, Paddy



--
View this message in context: http://vtiger-crm.2324883.n4.nabble.com/Function-vtws-revise-creates-an-incorrect-history-entry-tp19167p19179.html
Sent from the vtigercrm-developers mailing list archive at Nabble.com.


More information about the vtigercrm-developers mailing list