@@ -33,7 +33,8 @@ |
||
33 | 33 | $reporter_card = new org_openpsa_widgets_contact($reporter); |
34 | 34 | $entry['index_reporter'] = $reporter->rname; |
35 | 35 | $entry['reporter'] = $reporter_card->show_inline(); |
36 | - } catch (midcom_error $e) { |
|
36 | + } |
|
37 | + catch (midcom_error $e) { |
|
37 | 38 | $e->log(); |
38 | 39 | $entry['index_reporter'] = ''; |
39 | 40 | $entry['reporter'] = ''; |
@@ -49,7 +49,7 @@ |
||
49 | 49 | <textarea id="working_description" name="description" rows="3" cols="40">&(workingon.description);</textarea> |
50 | 50 | <div id="working_invoiceable_div" > |
51 | 51 | <label for="working_invoiceable"> |
52 | - <input type="checkbox" name="working_invoiceable" <?php echo $checked;?> id="working_invoiceable"/><?php echo $data['l10n']->get('invoiceable'); ?> |
|
52 | + <input type="checkbox" name="working_invoiceable" <?php echo $checked; ?> id="working_invoiceable"/><?php echo $data['l10n']->get('invoiceable'); ?> |
|
53 | 53 | </label> |
54 | 54 | </div> |
55 | 55 |
@@ -4,7 +4,7 @@ |
||
4 | 4 | $target_person_label = midcom::get()->i18n->get_string('system', 'org.openpsa.projects'); |
5 | 5 | |
6 | 6 | $fallback_creator = midcom_db_person::get_cached(1); |
7 | -if ( $task_status->metadata->creator |
|
7 | +if ($task_status->metadata->creator |
|
8 | 8 | && $task_status->metadata->creator != $fallback_creator->guid) { |
9 | 9 | $status_changer = org_openpsa_widgets_contact::get($task_status->metadata->creator); |
10 | 10 | $status_changer_label = $status_changer->show_inline(); |
@@ -33,7 +33,8 @@ |
||
33 | 33 | $task_label = "<a href=\"{$data['projects_url']}task/{$task->guid}/\">{$task_label}</a>"; |
34 | 34 | } |
35 | 35 | echo $task_label; |
36 | - } catch (midcom_error) {} |
|
36 | + } |
|
37 | + catch (midcom_error) {} |
|
37 | 38 | ?> |
38 | 39 | </td> |
39 | 40 | <td class="multivalue"> |
@@ -19,7 +19,8 @@ |
||
19 | 19 | $customer_html = '<a href="' . $contacts_url . '/group/' . $customer->guid . '/">' . $customer_html . "</a>\n"; |
20 | 20 | } |
21 | 21 | echo $customer_html; |
22 | - } catch (midcom_error $e) { |
|
22 | + } |
|
23 | + catch (midcom_error $e) { |
|
23 | 24 | } |
24 | 25 | |
25 | 26 | if ($project->manager) { |
@@ -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) { |
@@ -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 |
@@ -70,7 +70,8 @@ discard block |
||
70 | 70 | } else { |
71 | 71 | $entry['customer'] = $customer->official; |
72 | 72 | } |
73 | - } catch (midcom_error) { |
|
73 | + } |
|
74 | + catch (midcom_error) { |
|
74 | 75 | } |
75 | 76 | |
76 | 77 | if ($entry['status'] === 'canceled') { |
@@ -82,7 +83,8 @@ discard block |
||
82 | 83 | $entry['index_contact'] = $contact->rname; |
83 | 84 | $contact_card = org_openpsa_widgets_contact::get($invoice->customerContact); |
84 | 85 | $entry['contact'] = $contact_card->show_inline(); |
85 | - } catch (midcom_error) { |
|
86 | + } |
|
87 | + catch (midcom_error) { |
|
86 | 88 | } |
87 | 89 | |
88 | 90 | $entries[] = $entry; |
@@ -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 | } |
@@ -16,9 +16,9 @@ |
||
16 | 16 | <div class="search-form"> |
17 | 17 | <form method='get' name='midcom_helper_imagepopup_search_form' action='&(url);' class='midcom.helper.imagepopup'> |
18 | 18 | <label for="midcom_helper_imagepopup_query"> |
19 | - <?php echo $data['l10n']->get('query');?>: |
|
19 | + <?php echo $data['l10n']->get('query'); ?>: |
|
20 | 20 | <input type='text' size='60' name='query' id='midcom_helper_imagepopup_query' value='&(query);' /> |
21 | 21 | </label> |
22 | - <input type='submit' name='submit' value='<?php echo $data['l10n']->get('search');?>' /> |
|
22 | + <input type='submit' name='submit' value='<?php echo $data['l10n']->get('search'); ?>' /> |
|
23 | 23 | </form> |
24 | 24 | </div> |
25 | 25 | \ No newline at end of file |