[Vtigercrm-developers] Creating empty picklists when import Module

Prasad prasad at vtiger.com
Wed Aug 27 12:02:52 GMT 2014


We need at least one value in picklist for its existence (atleast
--None--).
This is an assumption made by LayoutEditor as well.

*Connect with us on: *Twitter <http://twitter.com/vtigercrm> *I* Facebook
<http://www.facebook.com/pages/vtiger/226866697333578?sk=wall> *I* Blog
<https://blogs.vtiger.com/>* I* Wiki
<http://wiki.vtiger.com/index.php/Main_Page> *I *Forums
<https://discussions.vtiger.com>*I* Website <https://www.vtiger.com/>


On Wed, Aug 27, 2014 at 5:00 PM, PlaymaN Tepes <sshhocckk at gmail.com> wrote:

> Hi vTiger Team,
>
> In this file:
> http://trac.vtiger.com/svn/vtiger/vtigercrm/branches/6.0.0/vtlib/Vtiger/PackageImport.php
> line: if(!empty($fieldnode->picklistvalues) &&
> !empty($fieldnode->picklistvalues->picklistvalue)) {
>
> I cant get why I cant import a Module with an empty picklist. In my
> module, for example, you feed the picklist after installing the module (via
> webservice to another service).
>
> The thing is we should check if uitype is 15,16,33 and not if
> picklistvalues are empty. In this way, with empty values, the table will
> create (now, the table is not created). By the way, I want to know if I can
> change the algorythm by myself and which consequences will bring (Maybe
> zero). Thanks in advance.
>
>
> _______________________________________________
> http://www.vtiger.com/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.vtigercrm.com/pipermail/vtigercrm-developers/attachments/20140827/659dce2b/attachment.html>


More information about the vtigercrm-developers mailing list