Changeset 2359


Ignore:
Timestamp:
05/26/20 18:00:56 (4 years ago)
Author:
nanardon
Message:

Ask for template first at object creation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LATMOS-Accounts/lib/LATMOS/Accounts/Bases/OCHelper.pm

    r2286 r2359  
    6969sub step { 
    7070    my ($self, $info) = @_; 
     71    my $otype = $self->otype; 
    7172    $info ||= {}; 
    7273    $info->{step} ||= 0; 
    7374    $info->{ask} = []; 
     75 
     76    push(@{ $info->{ask} }, 'template') unless ( $otype eq 'templates' ); 
     77 
    7478    $info->{name}{ask} = 0; 
    75     my $otype = $self->otype; 
    7679    foreach (keys %{ $self->base->{defattr} || {} }) { 
    7780        /^$otype\.(.*)/ or next; 
     
    9598        foreach ($self->base->list_canonical_fields($self->otype, 'w')) { 
    9699            /^oalias$/ and next; 
     100            /^template$/ and next; 
    97101            push(@{$info->{ask}}, $_); 
    98102        } 
Note: See TracChangeset for help on using the changeset viewer.