[Vtigercrm-commits] [vtiger development] #6139: disable PBX not entirly successful

vtiger development vtiger-tickets at trac.vtiger.com
Sun Jul 12 05:44:57 EDT 2009


#6139: disable PBX not entirly successful
-------------------------+--------------------------------------------------
  Reporter:  frankpie    |       Owner:  developer
      Type:  patch       |      Status:  new      
  Priority:  unassigned  |   Milestone:  5.1.0    
 Component:  vtigercrm   |     Version:  5.1.0-rc 
Resolution:              |    Keywords:           
-------------------------+--------------------------------------------------
Changes (by frankpie):

  * type:  defect => patch

Comment:

 this will probably fix the issue:

 see include/utils/ListViewUtils.php
 funktion getValue()

   //added for asterisk integration
  elseif($uitype == 11){
   $value = "<a href='javascript:;'
 onclick='startCall(&quot;$temp_val&quot;,
 &quot;$entity_id&quot;)'>".$temp_val."</a>";
  }
  //asterisk changes end here

 this function does not check whether Asterisc module is active, therefore
 a popup appears if you click the phone number, even if Asterisc is inactiv
 New code:

 elseif($uitype == 11){
    if(vtlib_isModuleActive('PBXManager') {
     $value = "<a href='javascript:;'
 onclick='startCall(&quot;$temp_val&quot;,
 &quot;$entity_id&quot;)'>".$temp_val."</a>";
    }else{
       $value = $temp_val;
     }
 }

-- 
Ticket URL: <http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/6139#comment:1>
vtiger development <http://trac.vtiger.com/>
vtigerCRM




More information about the vtigercrm-commits mailing list