From eeb07c164e0c3398f14372308b404fb07e2102cf Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Mon, 4 Feb 2008 16:37:56 +0000 Subject: [PATCH] Bugfix zu Bug 789: Ansprechpartner zeigen jetzt auch den Vornamen an --- SL/CT.pm | 2 +- bin/mozilla/ct.pl | 1 + templates/webpages/ct/form_header_de.html | 2 +- templates/webpages/ct/form_header_master.html | 2 +- 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/SL/CT.pm b/SL/CT.pm index 7ccccadcc..e25e41cd9 100644 --- a/SL/CT.pm +++ b/SL/CT.pm @@ -160,7 +160,7 @@ sub populate_drop_down_boxes { $form->{SHIPTO} = selectall_hashref_query($form, $dbh, $query, $form->{id}); # get contacts - $query = qq|SELECT cp_id, cp_name FROM contacts WHERE cp_cv_id = ?|; + $query = qq|SELECT cp_id, cp_name, cp_givenname FROM contacts WHERE cp_cv_id = ?|; $form->{CONTACTS} = selectall_hashref_query($form, $dbh, $query, $form->{id}); # get languages diff --git a/bin/mozilla/ct.pl b/bin/mozilla/ct.pl index bc4f42829..76d9fb71f 100644 --- a/bin/mozilla/ct.pl +++ b/bin/mozilla/ct.pl @@ -267,6 +267,7 @@ sub form_header { $form->{is_customer} = $form->{db} eq 'customer'; $form->{salesman_label} = sub { $_[0]->{name} ne "" ? $_[0]->{name} : $_[0]->{login} }; $form->{shipto_label} = sub { "$_[0]->{shiptoname} $_[0]->{shiptodepartment_1}" }; + $form->{contacts_label} = sub { "$_[0]->{cp_givenname} $_[0]->{cp_name}" }; $form->{taxzone_id} = 0 if !$form->{id}; $form->{jsscript} = 1; $form->{fokus} = "ct.greeting"; diff --git a/templates/webpages/ct/form_header_de.html b/templates/webpages/ct/form_header_de.html index 99cc45520..d622913c4 100644 --- a/templates/webpages/ct/form_header_de.html +++ b/templates/webpages/ct/form_header_de.html @@ -317,7 +317,7 @@ DATA = CONTACTS, onChange = "get_contact(['cp_id__' + this.value], ['cp_name', 'cp_greeting', 'cp_title', 'cp_givenname', 'cp_phone1', 'cp_phone2', 'cp_email', 'cp_abteilung', 'cp_fax', 'cp_mobile1', 'cp_mobile2', 'cp_satphone', 'cp_satfax', 'cp_project', 'cp_privatphone', 'cp_privatemail', 'cp_birthday'])", id_key = 'cp_id', - label_key = 'cp_name', + label_sub = 'contacts_label', -%] diff --git a/templates/webpages/ct/form_header_master.html b/templates/webpages/ct/form_header_master.html index ea2fbc37f..fdb122bbf 100644 --- a/templates/webpages/ct/form_header_master.html +++ b/templates/webpages/ct/form_header_master.html @@ -317,7 +317,7 @@ DATA = CONTACTS, onChange = "get_contact(['cp_id__' + this.value], ['cp_name', 'cp_greeting', 'cp_title', 'cp_givenname', 'cp_phone1', 'cp_phone2', 'cp_email', 'cp_abteilung', 'cp_fax', 'cp_mobile1', 'cp_mobile2', 'cp_satphone', 'cp_satfax', 'cp_project', 'cp_privatphone', 'cp_privatemail', 'cp_birthday'])", id_key = 'cp_id', - label_key = 'cp_name', + label_sub = 'contacts_label', -%] -- 2.20.1