[Vtigercrm-developers] Custom UItype (upload file field) working well except on Calendar/Events
apcloic
apcloic at gmail.com
Wed Jan 28 09:18:55 GMT 2015
Hi,
Ok, I've had to modify /modules/Calendar/models/Field.php to include my
custom UItype (201) like below :
/**
* Function to get the Webservice Field data type
* @return <String> Data type of the field
*/
public function getFieldDataType() {
if($this->getName() == 'date_start' || $this->getName() == 'due_date') {
return 'datetime';
} else if($this->get('uitype') == '30') {
return 'reminder';
} else if($this->get('uitype') == '201') {
return 'File';
} else if($this->getName() == 'recurringtype') {
return 'recurrence';
}
$webserviceField = $this->getWebserviceFieldObject();
return $webserviceField->getFieldDataType();
}
That's it, works great ! ;)
Thanks !
Regards,
--
View this message in context: http://vtiger-crm.2324883.n4.nabble.com/Custom-UItype-upload-file-field-working-well-except-on-Calendar-Events-tp15047p15060.html
Sent from the vtigercrm-developers mailing list archive at Nabble.com.
More information about the vtigercrm-developers
mailing list