[Vtigercrm-developers] Thunderbird Extension

Alan Lord (News) alanslists at gmail.com
Tue Nov 17 04:18:59 PST 2009


I think I have noticed a problem in the returned data in this part of 
the code (importab.js)

client.query("select * from Contacts;",
   handleError(function(contactResult){
     try {
       if(contactResult.length != 0){
         var itemLength = contactResult.length;

// alertMessage(itemLength); Seems OK - Get "36" Back.

         var accountIds = [];
         for(var i = 0; i < itemLength; i++){
           var accountId = contactResult[i]['account_id'];

//alertMessage(accountId); Is this OK? All accountId start with "3x"

           if(accountId!=null){
             accountIds[accountIds.length] = accountId;

//alertMessage(accountIds[accountIds.length]);  This is returning 36 
nulls...

   }
}

So I guess my question is this I guess.

Should the accountId that are returned *all* begin with '3x' (even the 
empty ones) and if not, where is that likely to be coming from?

TIA

Alan




More information about the vtigercrm-developers mailing list