Changeset 665 for trunk


Ignore:
Timestamp:
12/30/14 16:22:29 (10 years ago)
Author:
Kris Deugau
Message:

/trunk

Patch up a few glitches in the "automatic" assignment process

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/cgi-bin/main.cgi

    r654 r665  
    388388  return if !validateInput();
    389389
     390  # make sure this is defined
     391  $webvar{fbassign} = 'n' if !$webvar{fbassign};
     392
    390393# Several different cases here.
    391394# Static IP vs netblock
     
    394397
    395398  if ($webvar{alloctype} =~ /^.i$/ && $webvar{fbassign} ne 'y') {
     399    if (!$webvar{pop}) {
     400      $page->param(err => "Please select a location/POP site to allocate from.");
     401      return;
     402    }
    396403    my $plist = getPoolSelect($ip_dbh, $webvar{alloctype}, $webvar{pop});
    397404    $page->param(staticip => 1);
Note: See TracChangeset for help on using the changeset viewer.