Changeset 4976

Show
Ignore:
Timestamp:
08/25/07 21:06:53 (6 years ago)
Author:
p_lindheimer
Message:

#2313 fix from #2172 did not account for explode statement using '|' instead of ','

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.3/queues/functions.inc.php

    r4901 r4976  
    135135function queues_add($account,$name,$password,$prefix,$goto,$agentannounce,$members,$joinannounce,$maxwait) { 
    136136  global $db; 
    137    
     137 
    138138  //add to extensions table 
    139   if (!empty($agentannounce) && $agentannounce != 'None') 
    140     $agentannounce="$agentannounce"; 
    141   else 
     139  if (empty($agentannounce) || $agentannounce == 'None') { 
    142140    $agentannounce=""; 
     141  } 
    143142 
    144143  $addarray = array('ext-queues',$account,'1','Answer',''.'','','0'); 
     
    305304  $sql = "SELECT args,descr FROM extensions WHERE extension = '$account' AND context = 'ext-queues' AND application = 'Queue'"; 
    306305  list($args, $descr) = $db->getRow($sql); 
    307   $maxwait = explode('|',$args);  //in table like queuenum|t|||maxwait 
     306  $maxwait = explode(',',$args);  //in table like queuenum,t,,,maxwait 
    308307  $results['agentannounce'] = $maxwait[3]; 
    309308  $results['maxwait'] = $maxwait[4]; 
  • modules/branches/2.3/queues/module.xml

    r4908 r4976  
    22  <rawname>queues</rawname> 
    33  <name>Queues</name> 
    4   <version>2.2.13.1</version> 
     4  <version>2.2.13.2</version> 
    55  <type>setup</type> 
    66  <category>Inbound Call Control</category> 
     
    99  </description> 
    1010  <changelog> 
     11    *2.2.13.2* #2313 fix error introduced by #2172, Agent Announce not being saved 
    1112    *2.2.13.1* #2172 deprecated use of |, #2193 hard coded moh path 
    1213    *2.2.13* #2277 fix periodic announce message and hold time