X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=sql%2FPg-upgrade2-auth%2Fclients.pl;h=4288546d3cece38fb10d0bf8fe4d1274eeba6006;hb=c79f44bee8d013144776eceab99e947e881cc8b3;hp=eac69dd68b736c245f1013473677a080c2e95ecc;hpb=8993832dc3201be4cc800c377b776c041d15c379;p=kivitendo-erp.git diff --git a/sql/Pg-upgrade2-auth/clients.pl b/sql/Pg-upgrade2-auth/clients.pl index eac69dd68..4288546d3 100644 --- a/sql/Pg-upgrade2-auth/clients.pl +++ b/sql/Pg-upgrade2-auth/clients.pl @@ -95,7 +95,6 @@ sub _group_into_clients { push @clients, { map({ $_ => $user->{$_} } @copy_fields), - name => $::locale->text('Client #1', scalar(@clients) + 1), users => [ $user->{id} ], groups => [ map { $_->{id} } @{ $self->groups } ], enabled => 1, @@ -113,6 +112,7 @@ sub _group_into_clients { my $num = 0; foreach my $client (@clients) { $num += 1; + $client->{name} ||= $::locale->text('Client #1', $num); $client->{dbhost} ||= 'localhost'; $client->{dbport} ||= 5432; $client->{templates} =~ s:templates/::;