Ignore:
Timestamp:
09/28/12 08:08:47 (12 years ago)
Author:
nanardon
Message:

fix conflict

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LATMOS-Accounts-Web/lib/LATMOS/Accounts/Web/Controller/NetHosts.pm

    r1087 r1162  
    6969            $base->rollback; 
    7070        } 
    71     } elsif ($c->req->param('delete')) { 
    72         if ($base->delete_object('nethost', $nethostname)) { 
    73             $base->commit; 
    74             $c->res->redirect('/nethosts'); 
    75         } else { 
    76             $base->rollback; 
    77         } 
     71    } elsif ($c->req->param('make_active')) { 
     72        $c->stash->{nethost}->set_c_fields('exported' => 1); 
     73        $base->commit; 
     74    } 
     75    elsif ($c->req->param('make_inactive')) { 
     76        $c->stash->{nethost}->set_c_fields('exported' => 0); 
     77        $base->commit; 
     78    } 
     79    elsif ($c->req->param('delete')) { 
     80        $base->delete_object('nethost', $nethostname); 
     81        $base->commit; 
     82        $c->res->redirect('/nethosts'); 
     83 
    7884    } else { 
    7985        $c->stash->{form}->set_attrs; 
Note: See TracChangeset for help on using the changeset viewer.