From dec3d0e25481e0392fa35bca6b10b315022220cd Mon Sep 17 00:00:00 2001 From: Moritz Bunkus Date: Tue, 25 Jun 2013 12:00:19 +0200 Subject: [PATCH] Neuen Mandantennamen erst nach letztem Filtern erstellen --- sql/Pg-upgrade2-auth/clients.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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/::; -- 2.20.1