git-svn-id: https://svn.schokokeks.org/repos/tools/webinterface/trunk@1187 87cf0b9e-d624-0410-a070-f6ee81989793
bernd

bernd commited on 2008-12-18 08:08:27
Zeige 1 geänderte Dateien mit 2 Einfügungen und 0 Löschungen.

... ...
@@ -83,6 +83,8 @@ class Customer extends KeksData
83 83
       if (array_key_exists($key, $data))
84 84
         $this->data[$key] = $data[$key];
85 85
     $this->data['fullname'] = $data['vorname'].' '.$data['nachname'];
86
+    if ($this->data['fullname'] == ' ')
87
+      $this->data['fullname'] = $data['firma'];
86 88
     $this->data['email'] = new ContactMethod();
87 89
     $this->data['email']->loadByCustomer($this->data['id']);
88 90
     $this->data['email_rechnung'] = new ContactMethod();
89 91