Changeset 2426


Ignore:
Timestamp:
06/26/20 10:44:08 (4 years ago)
Author:
nanardon
Message:

Fix: use id when listing selected objects

Location:
trunk/LATMOS-Accounts/lib/LATMOS/Accounts
Files:
2 edited

Legend:

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

    r2418 r2426  
    854854            $data{$attr} = $self->_get_c_field($source); 
    855855        } 
    856         $res += $self->set_fields(%data); 
     856        $res += $self->set_fields(%data) || 0; 
    857857    } 
    858858 
  • trunk/LATMOS-Accounts/lib/LATMOS/Accounts/Cli.pm

    r2423 r2426  
    223223                    push(@objs, $obj); 
    224224                } 
    225                 $self->print("Selecting $otype " . join(', ', @objs) . "\n"); 
     225                $self->print("Selecting $otype " . join(', ', map { $_->id } @objs) . "\n"); 
    226226                LATMOS::Accounts::Cli::Object->new( 
    227227                    Parent  => $self, 
Note: See TracChangeset for help on using the changeset viewer.