[Vtigercrm-developers] display type =2 fields are getting displayed in Events edit view

Appu apparao at vtiger.com
Fri Jun 21 06:32:31 UTC 2013


Lajeesh,

This issue was fixed in vtiger6.

Please download vtiger6 codebase :
http://trac.vtiger.com/svn/vtiger/vtigercrm/branches/6.0.0

**
Thanks,
Apparao G


On Tue, Jun 18, 2013 at 3:09 PM, Lajeesh K <lajeesh at practicesuite.com>wrote:

>  Hi,****
>
> ** **
>
> I have created a field using vtlib. The field is set as non editable by
> setting displaytype=2. But this field is displaying in edit view.****
>
> ** **
>
> Below is the code****
>
> ** **
>
> include_once('vtlib/Vtiger/Module.php');****
>
> ** **
>
> $module = Vtiger_Module::getInstance('Events');****
>
> $blockInstance =
> Vtiger_Block::getInstance('LBL_CUSTOM_INFORMATION',$module);****
>
> echo "<p> Create Field for PM APPT KEY</p>";****
>
> ** **
>
> $fieldInstance=new Vtiger_Field();****
>
> $fieldInstance->name='test1';****
>
> $fieldInstance->label='test1';****
>
> $fieldInstance->table='vtiger_activity';****
>
> $fieldInstance->column='test1';****
>
> $fieldInstance->columntype='int(10)';****
>
> $fieldInstance->uitype=1;****
>
> $fieldInstance->typeofdata='V~O';****
>
> $fieldInstance->displaytype=2;****
>
> echo "<p> Add Field to Block</p>";****
>
> $blockInstance->addField($fieldInstance);****
>
> ** **
>
> ** **
>
> echo "<p> End... </p>";****
>
> ** **
>
> I have created non editable fields in accounts and contacts and it is
> working fine.  This issue is only in events module****
>
> ** **
>
> ** **
>
> Thanks and regards,****
>
> Lajeesh****
>
> ** **
>
> ** **
>
> _______________________________________________
> http://www.vtiger.com/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20130621/b66c6975/attachment-0001.html>


More information about the vtigercrm-developers mailing list