Changeset 11523 for trunk

Show
Ignore:
Timestamp:
10/20/08 16:34:47 (3 months ago)
Author:
javier.amor.garcia@…
Message:

Bugfix: validation of General model now works properly

Location:
trunk/client/mailfilter
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/client/mailfilter/ChangeLog

    r11490 r11523  
     10.12.100 
     2        + Bugfix: validation of General model now works properly 
    130.12.99 
    24        + New release 
  • trunk/client/mailfilter/src/EBox/MailFilter/Model/General.pm

    r11107 r11523  
    7171                                __('Notify of non-spam problematic messages'), 
    7272                                subtypes => [ 
    73                                              new EBox::Types::Text( 
     73                                             new EBox::Types::Union::Text( 
    7474                                         'fieldName' => 'disabled', 
    7575                                         'printableName' => __('Disabled'), 
     
    112112 
    113113  my $global  = EBox::Global->getInstance(); 
    114   my @mods = grep {  $_->can('usesPort') } @{ $global->modInstances  }; 
     114  my @mods = grep {   
     115                 $_->can('usesPort') and ($_->name ne 'mailfilter') 
     116             } @{ $global->modInstances  }; 
    115117  foreach my $mod (@mods) { 
    116118    if ($mod->usesPort('tcp', $port)) { 
     119 
    117120      throw EBox::Exceptions::External( 
    118121                                       __x('The port {port} is already used by module {mod}',