X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/1f9b0c55e2288183a36b9026f1758a3921967811..b98b8e3f73a399d2d4df7be4962b56bd4ad8c82b:/SL/Controller/CsvImport/Part.pm?ds=sidebyside diff --git a/SL/Controller/CsvImport/Part.pm b/SL/Controller/CsvImport/Part.pm index 7dd4d83e3..a78ab8c1e 100644 --- a/SL/Controller/CsvImport/Part.pm +++ b/SL/Controller/CsvImport/Part.pm @@ -442,7 +442,9 @@ sub handle_makemodel { } } - $entry->{part}->makemodel($object->makemodel); + # reindex makemodels + my $i = 0; + $_->sortorder(++$i) for @{ $entry->{part}->makemodels }; $self->save_with_cascade(1) if $found_any; }