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