Changeset 11206

Show
Ignore:
Timestamp:
08/15/08 11:44:32 (5 months ago)
Author:
/C=ES/O=Warp Networks S.L./CN=juruen@…
Message:

Merging r11205 from trunk into intrepid branches

Location:
branches/juruen
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/juruen/intrepid-alpha4/client/dns/src/EBox/DNS.pm.in

    r10728 r11206  
    299299    my ($self, $mailExchangers) = @_; 
    300300 
     301    my $hostnames =  
    301302    my @mailExchangers; 
    302303    foreach my $mx (@{$mailExchangers}) { 
    303304        my $hostName = $mx->valueByName('hostName'); 
    304         if ($mx->elementByName('hostName')->value() eq 'custom') { 
     305        if ($mx->elementByName('hostName')->selectedType() eq 'custom') { 
    305306            unless ( $hostName =~ m:\.$: ) { 
    306307                $hostName .= '.'; 
    307308            } 
     309        } else { 
     310            $hostName = $mx->parentRow() 
     311               ->subModel('hostnames') 
     312               ->row($hostName) 
     313               ->valueByName('hostname'); 
    308314        } 
    309315        push (@mailExchangers, {  
  • branches/juruen/intrepid-packages/client/dns/src/EBox/DNS.pm.in

    r10728 r11206  
    299299    my ($self, $mailExchangers) = @_; 
    300300 
     301    my $hostnames =  
    301302    my @mailExchangers; 
    302303    foreach my $mx (@{$mailExchangers}) { 
    303304        my $hostName = $mx->valueByName('hostName'); 
    304         if ($mx->elementByName('hostName')->value() eq 'custom') { 
     305        if ($mx->elementByName('hostName')->selectedType() eq 'custom') { 
    305306            unless ( $hostName =~ m:\.$: ) { 
    306307                $hostName .= '.'; 
    307308            } 
     309        } else { 
     310            $hostName = $mx->parentRow() 
     311               ->subModel('hostnames') 
     312               ->row($hostName) 
     313               ->valueByName('hostname'); 
    308314        } 
    309315        push (@mailExchangers, {