Revision 582df936
Von Bernd Bleßmann vor mehr als 7 Jahren hinzugefügt
SL/Controller/CsvImport.pm | ||
---|---|---|
502 | 502 |
|
503 | 503 |
$self->track_progress(phase => 'building report', progress => 0); |
504 | 504 |
|
505 |
my $clone_profile = $self->profile->clone_and_reset_deep; |
|
506 |
$clone_profile->save; # weird bug. if this isn't saved before adding it to the report, it will default back to the last profile. |
|
507 |
|
|
508 | 505 |
my $report = SL::DB::CsvImportReport->new( |
509 | 506 |
session_id => $params{session_id}, |
510 |
profile => $clone_profile,
|
|
507 |
profile_id => $self->profile->id,
|
|
511 | 508 |
type => $self->type, |
512 | 509 |
file => '', |
513 | 510 |
numrows => scalar @{ $self->data }, |
... | ... | |
573 | 570 |
|
574 | 571 |
$self->track_progress(phase => 'building report', progress => 0); |
575 | 572 |
|
576 |
my $clone_profile = $self->profile->clone_and_reset_deep; |
|
577 |
$clone_profile->save; # weird bug. if this isn't saved before adding it to the report, it will default back to the last profile. |
|
578 |
|
|
579 | 573 |
my $report = SL::DB::CsvImportReport->new( |
580 | 574 |
session_id => $params{session_id}, |
581 |
profile => $clone_profile,
|
|
575 |
profile_id => $self->profile->id,
|
|
582 | 576 |
type => $self->type, |
583 | 577 |
file => '', |
584 | 578 |
numrows => scalar @{ $self->data }, |
Auch abrufbar als: Unified diff
CsvImport: temporäres Profil nicht beim Report speichern, …
… denn das passiert schon beim Anlegen des Hintergrund-Jobs.