Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision eeb07c16

Von Sven Schöling vor fast 17 Jahren hinzugefügt

  • ID eeb07c164e0c3398f14372308b404fb07e2102cf
  • Vorgänger 69b5b918
  • Nachfolger f7150766

Bugfix zu Bug 789: Ansprechpartner zeigen jetzt auch den Vornamen an

Unterschiede anzeigen:

SL/CT.pm
160 160
  $form->{SHIPTO} = selectall_hashref_query($form, $dbh, $query, $form->{id});
161 161

  
162 162
  # get contacts
163
  $query  = qq|SELECT cp_id, cp_name FROM contacts WHERE cp_cv_id = ?|;
163
  $query  = qq|SELECT cp_id, cp_name, cp_givenname FROM contacts WHERE cp_cv_id = ?|;
164 164
  $form->{CONTACTS} = selectall_hashref_query($form, $dbh, $query, $form->{id});
165 165

  
166 166
  # get languages
bin/mozilla/ct.pl
267 267
  $form->{is_customer}    = $form->{db}     eq 'customer';
268 268
  $form->{salesman_label} = sub { $_[0]->{name} ne "" ? $_[0]->{name} : $_[0]->{login} };
269 269
  $form->{shipto_label}   = sub { "$_[0]->{shiptoname} $_[0]->{shiptodepartment_1}" };
270
  $form->{contacts_label} = sub { "$_[0]->{cp_givenname} $_[0]->{cp_name}" };
270 271
  $form->{taxzone_id}     = 0                                                               if !$form->{id};
271 272
  $form->{jsscript}       = 1;
272 273
  $form->{fokus}          = "ct.greeting";
templates/webpages/ct/form_header_de.html
317 317
             DATA       = CONTACTS,
318 318
             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'])",
319 319
             id_key     = 'cp_id',
320
             label_key  = 'cp_name',
320
             label_sub  = 'contacts_label',
321 321
       -%]
322 322
      </td>
323 323
     </tr>
templates/webpages/ct/form_header_master.html
317 317
             DATA       = CONTACTS,
318 318
             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'])",
319 319
             id_key     = 'cp_id',
320
             label_key  = 'cp_name',
320
             label_sub  = 'contacts_label',
321 321
       -%]
322 322
      </td>
323 323
     </tr>

Auch abrufbar als: Unified diff