1 <% encode_json(\@regions) %>\
4 my( $state, $svcpart ) = $cgi->param('arg');
6 my $part_svc = qsearchs('part_svc', { 'svcpart'=>$svcpart } );
7 die "unknown svcpart $svcpart" unless $part_svc;
12 my @exports = $part_svc->part_export_did;
13 if ( scalar(@exports) > 1 ) {
14 die "more than one DID-providing export attached to svcpart $svcpart";
15 } elsif ( ! @exports ) {
16 die "no DID providing export attached to svcpart $svcpart";
18 my $export = $exports[0];
20 my $something = $export->get_dids('state'=>$state);
22 @regions = @{ $something };