[Vtigercrm-developers] Lazy question on webservices.

Alan Lord alanslists at gmail.com
Fri Sep 21 08:20:16 PDT 2012



On 21/09/12 16:07, Alan Lord wrote:
>
> Ewwww - I think I'd rather try and hack the Webservices code so we can
> write to type 2 fields ;-)
>

Shame. Thought I'd found it in 
include/Webservices/WebserviceEntityOperation.php line 96

function isEditable($webserviceField){
		if(((int)$webserviceField->getDisplayType()) === 2 || 
strcasecmp($webserviceField->getFieldDataType(),"autogenerated")
			===0 || strcasecmp($webserviceField->getFieldDataType(),"id")===0 || 
$webserviceField->isReadOnly() == true){
			return false;
}

I removed the (int)$webserviceField->getDisplayType()) === 2 || bit from 
the test, but it didn't work (again, no difference) :-(.

That would have been just too easy ;-)

Al




More information about the vtigercrm-developers mailing list