Changeset 1974


Ignore:
Timestamp:
03/17/17 17:23:36 (7 years ago)
Author:
nanardon
Message:

Fix attribute internal evaluation at object creation

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LATMOS-Accounts-Web/root/html/login/index.tt

    r1632 r1974  
    1313</form> 
    1414 
    15 [% IF sslid %] 
     15[% IF sslid AND sslid != 'NULL' %] 
    1616<form action="[% c.uri_for('/login') %]" method="POST"> 
    1717<p style="text-align: center;">Ou s'authentifier via SSL en tant que: [% sslid | html %] 
  • trunk/LATMOS-Accounts/Changes

    r1965 r1974  
     15.2.14 
     2 
     3    Allow to set manager at user creation 
     4 
    155.2.13 
    26 
  • trunk/LATMOS-Accounts/lib/LATMOS/Accounts/Bases.pm

    r1973 r1974  
    379379        my $attribute = $self->attribute($otype, $cfield) or next; 
    380380        $attribute->ro and next; 
    381         $data{$attribute->iname} = $cdata{$cfield}; 
     381        $data{$cfield} = $cdata{$cfield}; 
    382382    } 
    383383    $self->create_object($otype, $id, %data) or return; 
     
    409409sub create_object { 
    410410    my ($self, $otype, $id, %data) = @_; 
     411 
    411412    "$id" or do { 
    412413        $self->log(LA_ERR, l("Cannot create %s object with empty id"), 
  • trunk/LATMOS-Accounts/lib/LATMOS/Accounts/Bases/Sql/objects.pm

    r1972 r1974  
    311311            : $attr->input($data{$_}); 
    312312        if ($attr->{inline} && ! $attr->{delayed}) { 
    313             $first{$_} = $formatted; 
     313            my $iname = $attr->iname; 
     314            $first{$iname} = $formatted; 
    314315        } else { 
     316            # the real internal name will be translate by _set_c_field 
    315317            $second{$_} = $formatted if(defined($formatted)); 
    316318        } 
Note: See TracChangeset for help on using the changeset viewer.