@@ -96,7 +96,8 @@ discard block |
||
| 96 | 96 | $customer = org_openpsa_contacts_group_dba::get_cached($invoice->customer); |
| 97 | 97 | $entry['customer'] = "<a href=\"{$this->router->generate('list_customer_all', ['guid' => $customer->guid])}\">" . $customer->get_label() . "</a>"; |
| 98 | 98 | $entry['index_customer'] = $customer->get_label(); |
| 99 | - } catch (midcom_error $e) { |
|
| 99 | + } |
|
| 100 | + catch (midcom_error $e) { |
|
| 100 | 101 | $entry['customer'] = ''; |
| 101 | 102 | $entry['index_customer'] = ''; |
| 102 | 103 | } |
@@ -110,7 +111,8 @@ discard block |
||
| 110 | 111 | $entry['contact'] = "<a href=\"{$this->router->generate('list_customer_all', ['guid' => $contact->guid])}\">" . $contact->get_label() . "</a>"; |
| 111 | 112 | $entry['contact'] = $contact_widget->show_inline(); |
| 112 | 113 | $entry['index_contact'] = $contact->get_label(); |
| 113 | - } catch (midcom_error $e) { |
|
| 114 | + } |
|
| 115 | + catch (midcom_error $e) { |
|
| 114 | 116 | $entry['contact'] = ''; |
| 115 | 117 | $entry['index_contact'] = ''; |
| 116 | 118 | } |
@@ -257,7 +259,8 @@ discard block |
||
| 257 | 259 | { |
| 258 | 260 | try { |
| 259 | 261 | $this->_customer = new org_openpsa_contacts_group_dba($guid); |
| 260 | - } catch (midcom_error $e) { |
|
| 262 | + } |
|
| 263 | + catch (midcom_error $e) { |
|
| 261 | 264 | $this->_customer = new org_openpsa_contacts_person_dba($guid); |
| 262 | 265 | } |
| 263 | 266 | $data['customer'] = $this->_customer; |
@@ -31,7 +31,8 @@ discard block |
||
| 31 | 31 | if ($data['contacts_url']) { |
| 32 | 32 | $row['customer'] = "<a href=\"{$data['contacts_url']}group/{$customer->guid}/\">{$label}</a>"; |
| 33 | 33 | } |
| 34 | - } catch (midcom_error $e) { |
|
| 34 | + } |
|
| 35 | + catch (midcom_error $e) { |
|
| 35 | 36 | $e->log(); |
| 36 | 37 | } |
| 37 | 38 | } |
@@ -44,7 +45,8 @@ discard block |
||
| 44 | 45 | $contact_widget = org_openpsa_widgets_contact::get($salesproject->customerContact); |
| 45 | 46 | $row['index_customerContact'] = $customer->get_label(); |
| 46 | 47 | $row['customerContact'] = $contact_widget->show_inline(); |
| 47 | - } catch (midcom_error $e) { |
|
| 48 | + } |
|
| 49 | + catch (midcom_error $e) { |
|
| 48 | 50 | $e->log(); |
| 49 | 51 | } |
| 50 | 52 | } |
@@ -56,7 +58,8 @@ discard block |
||
| 56 | 58 | $owner_widget = org_openpsa_widgets_contact::get($salesproject->owner); |
| 57 | 59 | $row['index_owner'] = $owner->rname; |
| 58 | 60 | $row['owner'] = $owner_widget->show_inline(); |
| 59 | - } catch (midcom_error $e) { |
|
| 61 | + } |
|
| 62 | + catch (midcom_error $e) { |
|
| 60 | 63 | $row['index_owner'] = ''; |
| 61 | 64 | $row['owner'] = ''; |
| 62 | 65 | } |