Ignore:
Timestamp:
01/05/16 18:02:38 (9 years ago)
Author:
nanardon
Message:

Refuse object creation if post-setting attribute failed

File:
1 edited

Legend:

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

    r1420 r1594  
    6262            'Erreur lors de la création de l\'objet: ' . 
    6363            LATMOS::Accounts::Log::lastmessage(LA_ERR); 
     64        $base->rollback; 
    6465        foreach my $attr (@{$info->{ask} || []}) { 
    6566            my $field = $form->field($attr); 
     
    7374            $c->req->params->{$field->attr_field_name()} = $info->{contents}{$attr}; 
    7475        } 
     76        $base->rollback; 
    7577    } 
    7678    $c->stash->{form} = $form; 
Note: See TracChangeset for help on using the changeset viewer.