projects
/
kivitendo-erp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
AccountingPeriod - Methode an get_balance_starting_date übergeben
[kivitendo-erp.git]
/
sql
/
Pg-upgrade2-auth
/
clients.pl
diff --git
a/sql/Pg-upgrade2-auth/clients.pl
b/sql/Pg-upgrade2-auth/clients.pl
index
074a15b
..
4791823
100644
(file)
--- a/
sql/Pg-upgrade2-auth/clients.pl
+++ b/
sql/Pg-upgrade2-auth/clients.pl
@@
-1,8
+1,8
@@
# @tag: clients
# @tag: clients
-# @description: Einführung von Mandaten
+# @description: Einführung von Manda
n
ten
# @depends: release_3_0_0
# @ignore: 0
# @depends: release_3_0_0
# @ignore: 0
-package SL::DBUpgrade2::clients;
+package SL::DBUpgrade2::
Auth::
clients;
use strict;
use utf8;
use strict;
use utf8;
@@
-95,7
+95,6
@@
sub _group_into_clients {
push @clients, {
map({ $_ => $user->{$_} } @copy_fields),
push @clients, {
map({ $_ => $user->{$_} } @copy_fields),
- name => $::locale->text('Client #1', scalar(@clients) + 1),
users => [ $user->{id} ],
groups => [ map { $_->{id} } @{ $self->groups } ],
enabled => 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;
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/::;
$client->{dbhost} ||= 'localhost';
$client->{dbport} ||= 5432;
$client->{templates} =~ s:templates/::;