Changeset 1704

Show
Ignore:
Timestamp:
04/25/06 02:19:41 (7 years ago)
Author:
qldrob
Message:

Wups. We were still allowing users to create a '0' xtn.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/trunk/amp_conf/htdocs/admin/modules/core/page.extensions.php

    r1689 r1704  
    167167    <tr <?php echo ($extdisplay ? 'style="display:none"':'') ?>> 
    168168      <td> 
    169         <a href="#" class="info"><?php echo _("Extension Number")?><span><?php echo _('Use a unique number.  The device will use this number to authenicate to the system, and users will dial it to ring the device.')?></span></a>: 
     169        <a href="#" class="info"><?php echo _("Extension Number")?><span><?php echo _('Use a unique number.  The device will use this number to authenicate to the system, and users will dial it to ring the device.').' '._('You can not use 0')?></span></a>: 
    170170      </td> 
    171171      <td> 
     
    423423 
    424424  defaultEmptyOK = false; 
    425   if (!isInteger(theForm.extension.value)
     425  if (!isInteger(theForm.extension.value) || (theForm.extension.value == '0')
    426426    return warnInvalid(theForm.extension, msgInvalidExtNum); 
    427427