From 5a0351612ae8ed0c83521b9b714624356eeac7d4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Fri, 22 Feb 2008 15:23:48 +0000 Subject: [PATCH] Ansprechpartner Dropdownboxen zeigen jetzt auch in Auftraegen den Vornamen an. --- bin/mozilla/is.pl | 2 +- bin/mozilla/oe.pl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/mozilla/is.pl b/bin/mozilla/is.pl index b632b389f..f5f77974c 100644 --- a/bin/mozilla/is.pl +++ b/bin/mozilla/is.pl @@ -337,7 +337,7 @@ sub form_header { my @values = (undef); foreach my $item (@{ $form->{"ALL_CONTACTS"} }) { push(@values, $item->{"cp_id"}); - $labels{$item->{"cp_id"}} = $item->{"cp_name"} . ($item->{"cp_abteilung"} ? " ($item->{cp_abteilung})" : ""); + $labels{$item->{"cp_id"}} = join(',', $item->{"cp_name"}, $item->{"cp_givenname"}) . ($item->{"cp_abteilung"} ? " ($item->{cp_abteilung})" : ""); } my $contact; if (scalar @values > 1) { diff --git a/bin/mozilla/oe.pl b/bin/mozilla/oe.pl index a5170d11e..aea613faa 100644 --- a/bin/mozilla/oe.pl +++ b/bin/mozilla/oe.pl @@ -321,7 +321,7 @@ sub form_header { # label subs $TMPL_VAR{sales_employee_labels} = sub { $_[0]->{name} || $_[0]->{login} }; $TMPL_VAR{shipto_labels} = sub { join "; ", grep { $_ } map { $_[0]->{"shipto${_}" } } qw(name department_1 street city) }; - $TMPL_VAR{contact_labels} = sub { $_[0]->{"cp_name"} . ($_[0]->{cp_abteilung} ? " ($_[0]->{cp_abteilung})" : "") }; + $TMPL_VAR{contact_labels} = sub { join(', ', $_[0]->{"cp_name"}, $_[0]->{"cp_givenname"}) . ($_[0]->{cp_abteilung} ? " ($_[0]->{cp_abteilung})" : "") }; $TMPL_VAR{department_labels} = sub { "$_[0]->{description}--$_[0]->{id}" }; # vendor/customer -- 2.20.1