[Vtigercrm-developers] Custom UItype (upload file field) working well except on Calendar/Events

Uma S uma.s at vtiger.com
Wed Jan 28 09:33:30 GMT 2015


Great!

On Wed, Jan 28, 2015 at 2:48 PM, apcloic <apcloic at gmail.com> wrote:

> 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.
> _______________________________________________
> http://www.vtiger.com/
>



-- 
With
Best Regards
Uma.S
Vtiger Team
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20150128/753a6325/attachment.html>


More information about the vtigercrm-developers mailing list