Changeset 8389

Show
Ignore:
Timestamp:
09/10/09 13:41:56 (4 years ago)
Author:
p_lindheimer
Message:

fixes #3886 and re #3875 devices were not being deleted from #3875 fixes

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.6/core/functions.inc.php

    r8355 r8389  
    26502650  global $astman; 
    26512651  global $db; 
     2652 
     2653  if ($tech == '' || trim($tech) == 'virtual') { 
     2654    return true; 
     2655  } 
    26522656   
    26532657  $display = isset($_REQUEST['display'])?$_REQUEST['display']:''; 
     
    27782782  global $currentFile; 
    27792783  global $astman; 
    2780    
     2784 
    27812785  //get all info about device 
    27822786  $devinfo = core_devices_get($account); 
    2783    
     2787  if (empty($devinfo)) { 
     2788    return true; 
     2789  } 
     2790 
    27842791  //delete details to astdb 
    27852792  if ($astman) { 
     
    53915398   
    53925399  //create vars from the request 
     5400  $tech = $action = null; 
    53935401  extract($_REQUEST); 
    53945402 
    5395   if (!$_REQUEST['tech'] || $tech == "virtual"){return true;} 
    5396    
     5403  if ($tech == "virtual" || $action == "edit" && $tech == '') { 
     5404    return true; 
     5405  } 
    53975406  $extension = isset($extension)?$extension:null; 
    53985407  $deviceid = isset($deviceid)?$deviceid:null; 
  • modules/branches/2.6/core/module.xml

    r8358 r8389  
    44  <category>Basic</category> 
    55  <name>Core</name> 
    6   <version>2.6.0RC2.0</version> 
     6  <version>2.6.0RC2.1</version> 
    77  <publisher>FreePBX</publisher> 
    88  <license>GPLv2+</license> 
     
    1010  <canuninstall>no</canuninstall> 
    1111  <changelog> 
     12    *2.6.0RC2.1* #3886, #3885, #3875 revisited 
    1213    *2.6.0RC2.0* #3854, #3872, #3871, #3877 
    1314    *2.6.0RC1.1* #3751