Changeset 3349

Show
Ignore:
Timestamp:
12/18/06 01:06:42 (6 years ago)
Author:
qldrob
Message:

Apply naftali5's custom-dest fixes, thanks! Ref #1549.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/trunk/amp_conf/htdocs/admin/functions.inc.php

    r3224 r3349  
    649649                ($checked? 'CHECKED=CHECKED' : '').' /> '; 
    650650        $selectHtml .= '<label for="'.$radioid.'">'._($displayname['displayname']).':</label> '; 
    651         if ($checked) { $goto = $mod; } 
     651        if ($checked) { $gotomod = $mod; } 
    652652        $selectHtml .=  '<select name="'.$mod.$i.'" onfocus="document.getElementById(\''.$radioid.'\').checked = true; this.form.goto'.$i.'.value=\''.$mod.'\';">'; 
    653653        $selectHtml .= $options;   
     
    664664  $selectHtml .= '<a href="#" class="info"> '._("Custom App<span><br>ADVANCED USERS ONLY<br><br>Uses Goto() to send caller to a custom context.<br><br>The context name <b>MUST</b> contain the word 'custom' and should be in the format custom-context , extension , priority. Example entry:<br><br><b>custom-myapp,s,1</b><br><br>The <b>[custom-myapp]</b> context would need to be created and included in extensions_custom.conf</span>").'</a>:'; 
    665665  $selectHtml .= '<input type="text" size="15" name="custom'.$i.'" value="'.(strpos($goto,'custom') === false ? '' : $goto).'" onfocus="document.getElementById(\''.$radioid.'\').checked = true;" />'; 
    666   $selectHtml .= "\n<input type='hidden' name='goto$i' value='$goto'>"; 
     666  $gotomod = isset($gotomod)?$gotomod:'custom'; 
     667  $selectHtml .= "\n<input type='hidden' name='goto$i' value='$gotomod'>"; 
    667668 
    668669  //close off our row