@@ -35,7 +35,8 @@ discard block |
||
35 | 35 | if ($data['contacts_url']) { |
36 | 36 | $row['customer'] = "<a href=\"{$data['contacts_url']}group/{$customer->guid}/\">{$label}</a>"; |
37 | 37 | } |
38 | - } catch (midcom_error $e) { |
|
38 | + } |
|
39 | + catch (midcom_error $e) { |
|
39 | 40 | $e->log(); |
40 | 41 | } |
41 | 42 | } |
@@ -51,7 +52,8 @@ discard block |
||
51 | 52 | if ($data['contacts_url']) { |
52 | 53 | $row['customerContact'] = "<a href=\"{$data['contacts_url']}person/{$customer->guid}/\">{$label}</a>"; |
53 | 54 | } |
54 | - } catch (midcom_error $e) { |
|
55 | + } |
|
56 | + catch (midcom_error $e) { |
|
55 | 57 | $e->log(); |
56 | 58 | } |
57 | 59 | } |
@@ -63,7 +65,8 @@ discard block |
||
63 | 65 | $owner_widget = org_openpsa_widgets_contact::get($salesproject->owner); |
64 | 66 | $row['index_owner'] = $owner->rname; |
65 | 67 | $row['owner'] = $owner_widget->show_inline(); |
66 | - } catch (midcom_error $e) { |
|
68 | + } |
|
69 | + catch (midcom_error $e) { |
|
67 | 70 | $row['index_owner'] = ''; |
68 | 71 | $row['owner'] = ''; |
69 | 72 | } |
@@ -138,7 +138,7 @@ |
||
138 | 138 | created: '<?php echo $data['l10n']->get('created'); ?>', |
139 | 139 | index_title: '<?php echo $data['l10n']->get('title'); ?>', |
140 | 140 | <?php |
141 | - if ($data['mode'] != 'customer') { |
|
141 | + if ($data['mode'] != 'customer') { |
|
142 | 142 | ?> |
143 | 143 | index_customer: '<?php echo $data['l10n']->get('customer'); ?>', |
144 | 144 | <?php |
@@ -17,7 +17,8 @@ |
||
17 | 17 | try { |
18 | 18 | $group = org_openpsa_products_product_group_dba::get_cached($product['productGroup']); |
19 | 19 | $desc .= $group->title . ', '; |
20 | - } catch (midcom_error $e) { |
|
20 | + } |
|
21 | + catch (midcom_error $e) { |
|
21 | 22 | $e->log(); |
22 | 23 | } |
23 | 24 | if ($product['delivery'] == org_openpsa_products_product_dba::DELIVERY_SINGLE) { |
@@ -52,14 +52,14 @@ |
||
52 | 52 | data: entries, |
53 | 53 | colNames: ["id", |
54 | 54 | <?php |
55 | - //index is needed for sorting |
|
56 | - echo "'index_name',"; |
|
57 | - echo "'" . $data['l10n']->get('entry title') ."',"; |
|
58 | - echo "'" . $data['l10n']->get('entry text') . "',"; |
|
59 | - echo "'" . $data['l10n']->get('entry created') . "',"; |
|
60 | - echo "'index_creator', '" . $data['l10n_midcom']->get('creator') . "',"; |
|
61 | - echo "'" . $data['l10n']->get('status') . "'"; |
|
62 | - ?> |
|
55 | + //index is needed for sorting |
|
56 | + echo "'index_name',"; |
|
57 | + echo "'" . $data['l10n']->get('entry title') ."',"; |
|
58 | + echo "'" . $data['l10n']->get('entry text') . "',"; |
|
59 | + echo "'" . $data['l10n']->get('entry created') . "',"; |
|
60 | + echo "'index_creator', '" . $data['l10n_midcom']->get('creator') . "',"; |
|
61 | + echo "'" . $data['l10n']->get('status') . "'"; |
|
62 | + ?> |
|
63 | 63 | ], |
64 | 64 | colModel: [ |
65 | 65 | {name:'id',index:'id', hidden: true, key: true }, |
@@ -54,7 +54,7 @@ |
||
54 | 54 | <?php |
55 | 55 | //index is needed for sorting |
56 | 56 | echo "'index_name',"; |
57 | - echo "'" . $data['l10n']->get('entry title') ."',"; |
|
57 | + echo "'" . $data['l10n']->get('entry title') . "',"; |
|
58 | 58 | echo "'" . $data['l10n']->get('entry text') . "',"; |
59 | 59 | echo "'" . $data['l10n']->get('entry created') . "',"; |
60 | 60 | echo "'index_creator', '" . $data['l10n_midcom']->get('creator') . "',"; |
@@ -28,7 +28,8 @@ |
||
28 | 28 | $row['creator_index'] = $creator->rname; |
29 | 29 | $creator_card = org_openpsa_widgets_contact::get($entry->metadata->creator); |
30 | 30 | $row['creator'] = $creator_card->show_inline(); |
31 | - } catch (midcom_error $e) { |
|
31 | + } |
|
32 | + catch (midcom_error $e) { |
|
32 | 33 | $row['creator_index'] = ''; |
33 | 34 | $row['creator'] = ''; |
34 | 35 | } |
@@ -21,7 +21,8 @@ |
||
21 | 21 | $original = new midcom_db_attachment($image->attachment); |
22 | 22 | $original_url = midcom_db_attachment::get_url($original); |
23 | 23 | $name = $original->name; |
24 | - } catch (midcom_error $e) { |
|
24 | + } |
|
25 | + catch (midcom_error $e) { |
|
25 | 26 | $url = MIDCOM_STATIC_URL . '/stock-icons/mime/gnome-text-blank.png'; |
26 | 27 | $name = $data['l10n']->get('attachment missing'); |
27 | 28 | $original_url = ''; |
@@ -120,13 +120,13 @@ |
||
120 | 120 | $grid->set_option('loadonce', true) |
121 | 121 | ->set_option('grouping', true) |
122 | 122 | ->set_option('groupingView', [ |
123 | - 'groupField' => ['status'], |
|
124 | - 'groupColumnShow' => [false], |
|
125 | - 'groupText' => ['<strong>{0}</strong> ({1})'], |
|
126 | - 'groupOrder' => ['asc'], |
|
127 | - 'groupSummary' => [true], |
|
128 | - 'showSummaryOnHide' => true |
|
129 | - ]) |
|
123 | + 'groupField' => ['status'], |
|
124 | + 'groupColumnShow' => [false], |
|
125 | + 'groupText' => ['<strong>{0}</strong> ({1})'], |
|
126 | + 'groupOrder' => ['asc'], |
|
127 | + 'groupSummary' => [true], |
|
128 | + 'showSummaryOnHide' => true |
|
129 | + ]) |
|
130 | 130 | ->set_option('sortname', $sortname) |
131 | 131 | ->set_option('sortorder', $sortorder); |
132 | 132 |
@@ -73,7 +73,8 @@ discard block |
||
73 | 73 | } else { |
74 | 74 | $entry['customer'] = $customer->official; |
75 | 75 | } |
76 | - } catch (midcom_error $e) { |
|
76 | + } |
|
77 | + catch (midcom_error $e) { |
|
77 | 78 | } |
78 | 79 | |
79 | 80 | if ($entry['status'] === 'canceled') { |
@@ -85,7 +86,8 @@ discard block |
||
85 | 86 | $entry['index_contact'] = $contact->rname; |
86 | 87 | $contact_card = org_openpsa_widgets_contact::get($invoice->customerContact); |
87 | 88 | $entry['contact'] = $contact_card->show_inline(); |
88 | - } catch (midcom_error $e) { |
|
89 | + } |
|
90 | + catch (midcom_error $e) { |
|
89 | 91 | } |
90 | 92 | |
91 | 93 | $entries[] = $entry; |
@@ -11,7 +11,7 @@ |
||
11 | 11 | <dl class="midgard_admin_asgard_rcs_diff"> |
12 | 12 | <?php |
13 | 13 | foreach ($preview as $attribute => $value) { |
14 | - if ( $value == '' |
|
14 | + if ($value == '' |
|
15 | 15 | || $value == '0000-00-00' |
16 | 16 | || !midcom_services_rcs::is_field_showable($attribute) |
17 | 17 | || is_array($value)) { |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php echo $data['renderer']->block($data['form'], 'form_start'); ?> |
2 | 2 | <div class="maa_permissions_assignees"> |
3 | 3 | <?php |
4 | - if (empty($data['form']->children['add_assignee']->vars['value'])) { |
|
5 | - echo $data['renderer']->label($data['form']->children['add_assignee']); |
|
4 | + if (empty($data['form']->children['add_assignee']->vars['value'])) { |
|
5 | + echo $data['renderer']->label($data['form']->children['add_assignee']); |
|
6 | 6 | echo $data['renderer']->widget($data['form']->children['add_assignee']); |
7 | - } |
|
8 | - ?> |
|
7 | + } |
|
8 | + ?> |
|
9 | 9 | </div> |
10 | 10 | <table class="maa_permissions_items"> |
11 | 11 | <thead> |
@@ -21,7 +21,7 @@ |
||
21 | 21 | $workflow = new midcom\workflow\delete(['object' => $file, 'label' => $file->name]); |
22 | 22 | $revisor = midcom::get()->auth->get_user($file->metadata->revisor); |
23 | 23 | $class = ''; |
24 | - if ( isset($data['file']) |
|
24 | + if (isset($data['file']) |
|
25 | 25 | && $file->name == $data['file']->name) { |
26 | 26 | $class = ' class="selected"'; |
27 | 27 | } |
@@ -61,7 +61,8 @@ |
||
61 | 61 | try { |
62 | 62 | ?>&(data['code']:p);<?php |
63 | 63 | |
64 | - } catch (Exception $e) { |
|
64 | + } |
|
65 | + catch (Exception $e) { |
|
65 | 66 | echo '<div class="shell-error">' . $e->getMessage() . '</div>'; |
66 | 67 | echo htmlentities($e->getTraceAsString()); |
67 | 68 | } |