Completed
Push — console-installer ( 3d54e5...e2b50d )
by Adam
69:10 queued 48:24
created
modules/Project/metadata/detailviewdefs.php 1 patch
Indentation   +84 added lines, -84 removed lines patch added patch discarded remove patch
@@ -42,176 +42,176 @@
 block discarded – undo
42 42
 
43 43
 $viewdefs ['Project'] =
44 44
 array (
45
-  'DetailView' => 
46
-  array (
45
+    'DetailView' => 
46
+    array (
47 47
     'templateMeta' => 
48 48
     array (
49
-      'maxColumns' => '2',
50
-      'widths' => 
51
-      array (
49
+        'maxColumns' => '2',
50
+        'widths' => 
51
+        array (
52 52
         0 => 
53 53
         array (
54
-          'label' => '10',
55
-          'field' => '30',
54
+            'label' => '10',
55
+            'field' => '30',
56 56
         ),
57 57
         1 => 
58 58
         array (
59
-          'label' => '10',
60
-          'field' => '30',
59
+            'label' => '10',
60
+            'field' => '30',
61
+        ),
61 62
         ),
62
-      ),
63
-      'includes' => 
64
-      array (
63
+        'includes' => 
64
+        array (
65 65
         0 => 
66 66
         array (
67
-          'file' => 'modules/Project/Project.js',
67
+            'file' => 'modules/Project/Project.js',
68 68
         ),
69 69
         1 => 
70 70
         array (
71
-          'file' => 'modules/Project/js/custom_project.js',
71
+            'file' => 'modules/Project/js/custom_project.js',
72
+        ),
72 73
         ),
73
-      ),
74
-      'form' => 
75
-      array (
74
+        'form' => 
75
+        array (
76 76
         'buttons' => 
77 77
         array (
78
-          0 => 
79
-          array (
78
+            0 => 
79
+            array (
80 80
             'customCode' => '<input title="{$APP.LBL_EDIT_BUTTON_TITLE}" accessKey="{$APP.LBL_EDIT_BUTTON_KEY}" class="button" type="submit" name="Edit" id="edit_button" value="{$APP.LBL_EDIT_BUTTON_LABEL}"onclick="{if $IS_TEMPLATE}this.form.return_module.value=\'Project\'; this.form.return_action.value=\'ProjectTemplatesDetailView\'; this.form.return_id.value=\'{$id}\'; this.form.action.value=\'ProjectTemplatesEditView\';{else}this.form.return_module.value=\'Project\'; this.form.return_action.value=\'DetailView\'; this.form.return_id.value=\'{$id}\'; this.form.action.value=\'EditView\'; {/if}"/>',
81 81
             'sugar_html' => 
82 82
             array (
83
-              'type' => 'submit',
84
-              'value' => ' {$APP.LBL_EDIT_BUTTON_LABEL} ',
85
-              'htmlOptions' => 
86
-              array (
83
+                'type' => 'submit',
84
+                'value' => ' {$APP.LBL_EDIT_BUTTON_LABEL} ',
85
+                'htmlOptions' => 
86
+                array (
87 87
                 'id' => 'edit_button',
88 88
                 'class' => 'button',
89 89
                 'accessKey' => '{$APP.LBL_EDIT_BUTTON_KEY}',
90 90
                 'name' => 'Edit',
91 91
                 'onclick' => '{if $IS_TEMPLATE}this.form.return_module.value=\'Project\'; this.form.return_action.value=\'ProjectTemplatesDetailView\'; this.form.return_id.value=\'{$id}\'; this.form.action.value=\'ProjectTemplatesEditView\';{else}this.form.return_module.value=\'Project\'; this.form.return_action.value=\'DetailView\'; this.form.return_id.value=\'{$id}\'; this.form.action.value=\'EditView\'; {/if}',
92
-              ),
92
+                ),
93 93
             ),
94
-          ),
95
-          1 => 
96
-          array (
94
+            ),
95
+            1 => 
96
+            array (
97 97
             'customCode' => '<input title="{$APP.LBL_DELETE_BUTTON_TITLE}" accessKey="{$APP.LBL_DELETE_BUTTON_KEY}" class="button" type="button" name="Delete" id="delete_button" value="{$APP.LBL_DELETE_BUTTON_LABEL}" onclick="project_delete(this);"/>',
98 98
             'sugar_html' => 
99 99
             array (
100
-              'type' => 'button',
101
-              'id' => 'delete_button',
102
-              'value' => '{$APP.LBL_DELETE_BUTTON_LABEL}',
103
-              'htmlOptions' => 
104
-              array (
100
+                'type' => 'button',
101
+                'id' => 'delete_button',
102
+                'value' => '{$APP.LBL_DELETE_BUTTON_LABEL}',
103
+                'htmlOptions' => 
104
+                array (
105 105
                 'title' => '{$APP.LBL_DELETE_BUTTON_TITLE}',
106 106
                 'accessKey' => '{$APP.LBL_DELETE_BUTTON_KEY}',
107 107
                 'id' => 'delete_button',
108 108
                 'class' => 'button',
109 109
                 'onclick' => 'project_delete(this);',
110
-              ),
110
+                ),
111
+            ),
111 112
             ),
112
-          ),
113
-          2 => 
114
-          array (
113
+            2 => 
114
+            array (
115 115
             'customCode' => '<input title="{$APP.LBL_DUPLICATE_BUTTON_TITLE}" accessKey="{$APP.LBL_DUPLICATE_BUTTON_KEY}" class="button" type="submit" name="Duplicate" id="duplicate_button" value="{$APP.LBL_DUPLICATE_BUTTON_LABEL}"onclick="{if $IS_TEMPLATE}this.form.return_module.value=\'Project\'; this.form.return_action.value=\'ProjectTemplatesDetailView\'; this.form.isDuplicate.value=true; this.form.action.value=\'projecttemplateseditview\'; this.form.return_id.value=\'{$id}\';{else}this.form.return_module.value=\'Project\'; this.form.return_action.value=\'DetailView\'; this.form.isDuplicate.value=true; this.form.action.value=\'EditView\'; this.form.return_id.value=\'{$id}\';{/if}""/>',
116 116
             'sugar_html' => 
117 117
             array (
118
-              'type' => 'submit',
119
-              'value' => '{$APP.LBL_DUPLICATE_BUTTON_LABEL}',
120
-              'htmlOptions' => 
121
-              array (
118
+                'type' => 'submit',
119
+                'value' => '{$APP.LBL_DUPLICATE_BUTTON_LABEL}',
120
+                'htmlOptions' => 
121
+                array (
122 122
                 'title' => '{$APP.LBL_DUPLICATE_BUTTON_TITLE}',
123 123
                 'accessKey' => '{$APP.LBL_DUPLICATE_BUTTON_KEY}',
124 124
                 'class' => 'button',
125 125
                 'name' => 'Duplicate',
126 126
                 'id' => 'duplicate_button',
127 127
                 'onclick' => '{if $IS_TEMPLATE}this.form.return_module.value=\'Project\'; this.form.return_action.value=\'ProjectTemplatesDetailView\'; this.form.isDuplicate.value=true; this.form.action.value=\'projecttemplateseditview\'; this.form.return_id.value=\'{$id}\';{else}this.form.return_module.value=\'Project\'; this.form.return_action.value=\'DetailView\'; this.form.isDuplicate.value=true; this.form.action.value=\'EditView\'; this.form.return_id.value=\'{$id}\';{/if}',
128
-              ),
128
+                ),
129 129
             ),
130
-          ),
131
-          3 => 
132
-          array (
130
+            ),
131
+            3 => 
132
+            array (
133 133
             'customCode' => '<input title="{$APP.LBL_VIEW_GANTT_TITLE}" class="button" type="button" name="view_gantt" id="view_gantt" value="{$APP.LBL_GANTT_BUTTON_LABEL}" onclick="javascript:window.location.href=\'index.php?module=Project&action=view_GanttChart&project_id={$id}\'"/>',
134
-          ),
134
+            ),
135
+        ),
135 136
         ),
136
-      ),
137
-      'useTabs' => true,
138
-      'tabDefs' => 
139
-      array (
137
+        'useTabs' => true,
138
+        'tabDefs' => 
139
+        array (
140 140
         'LBL_PROJECT_INFORMATION' => 
141 141
         array (
142
-          'newTab' => true,
143
-          'panelDefault' => 'expanded',
142
+            'newTab' => true,
143
+            'panelDefault' => 'expanded',
144 144
         ),
145 145
         'LBL_PANEL_ASSIGNMENT' => 
146 146
         array (
147
-          'newTab' => true,
148
-          'panelDefault' => 'expanded',
147
+            'newTab' => true,
148
+            'panelDefault' => 'expanded',
149
+        ),
149 150
         ),
150
-      ),
151 151
     ),
152 152
     'panels' => 
153 153
     array (
154
-      'lbl_project_information' => 
155
-      array (
154
+        'lbl_project_information' => 
155
+        array (
156 156
         0 => 
157 157
         array (
158
-          0 => 'name',
159
-          1 => 'status',
158
+            0 => 'name',
159
+            1 => 'status',
160 160
         ),
161 161
         1 => 
162 162
         array (
163
-          0 => 
164
-          array (
163
+            0 => 
164
+            array (
165 165
             'name' => 'estimated_start_date',
166 166
             'label' => 'LBL_DATE_START',
167
-          ),
168
-          1 => 'priority',
167
+            ),
168
+            1 => 'priority',
169 169
         ),
170 170
         2 => 
171 171
         array (
172
-          0 => 
173
-          array (
172
+            0 => 
173
+            array (
174 174
             'name' => 'estimated_end_date',
175 175
             'label' => 'LBL_DATE_END',
176
-          ),
177
-          1 => '',
176
+            ),
177
+            1 => '',
178 178
         ),
179 179
         3 => 
180 180
         array (
181
-          0 => 'description',
181
+            0 => 'description',
182 182
         ),
183
-      ),
184
-      'LBL_PANEL_ASSIGNMENT' => 
185
-      array (
183
+        ),
184
+        'LBL_PANEL_ASSIGNMENT' => 
185
+        array (
186 186
         0 => 
187 187
         array (
188
-          0 => 
189
-          array (
188
+            0 => 
189
+            array (
190 190
             'name' => 'assigned_user_name',
191 191
             'label' => 'LBL_ASSIGNED_TO',
192
-          ),
193
-          1 => 
194
-          array (
192
+            ),
193
+            1 => 
194
+            array (
195 195
             'name' => 'am_projecttemplates_project_1_name',
196
-          ),
196
+            ),
197 197
         ),
198 198
         1 => 
199 199
         array (
200
-          0 => 
201
-          array (
200
+            0 => 
201
+            array (
202 202
             'name' => 'date_entered',
203 203
             'comment' => 'Date record created',
204 204
             'label' => 'LBL_DATE_ENTERED',
205
-          ),
206
-          1 => 
207
-          array (
205
+            ),
206
+            1 => 
207
+            array (
208 208
             'name' => 'date_modified',
209 209
             'comment' => 'Date record last modified',
210 210
             'label' => 'LBL_DATE_MODIFIED',
211
-          ),
211
+            ),
212 212
         ),
213
-      ),
213
+        ),
214
+    ),
214 215
     ),
215
-  ),
216 216
 );
217 217
 ?>
Please login to merge, or discard this patch.
modules/Project/metadata/quickcreatedefs.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -40,34 +40,34 @@
 block discarded – undo
40 40
 
41 41
 
42 42
 $viewdefs['Project']['QuickCreate'] = array(
43
-					'templateMeta' => array('maxColumns' => '2', 
43
+                    'templateMeta' => array('maxColumns' => '2', 
44 44
                         'widths' => array(
45 45
                                         array('label' => '10', 'field' => '30'), 
46 46
                                         array('label' => '10', 'field' => '30')
47 47
                                         ),
48
-                       ),
48
+                        ),
49 49
 'panels' =>
50 50
 
51 51
 array (
52 52
   
53
-  array (
53
+    array (
54 54
     'name',
55 55
     'status'
56
-  ),
56
+    ),
57 57
   
58
-  array (
58
+    array (
59 59
     'estimated_start_date',
60 60
     'estimated_end_date'
61
-  ),
61
+    ),
62 62
   
63
-  array('priority',),
64
-  array('assigned_user_name',
65
-  ),
66
-  array (
63
+    array('priority',),
64
+    array('assigned_user_name',
65
+    ),
66
+    array (
67 67
     array (
68
-      'name' => 'description',
68
+        'name' => 'description',
69
+    ),
69 70
     ),
70
-  ),
71 71
 
72 72
 ),
73 73
 
Please login to merge, or discard this patch.
modules/Project/metadata/metafiles.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -38,13 +38,13 @@
 block discarded – undo
38 38
  ********************************************************************************/
39 39
 
40 40
 
41
- $metafiles['Project'] = array(
42
-	'detailviewdefs'  => 	'modules/Project/metadata/detailviewdefs.php', 	
43
-	'editviewdefs'    => 	'modules/Project/metadata/editviewdefs.php',
44
- 	'listviewdefs'    => 	'modules/Project/metadata/listviewdefs.php',
45
- 	'searchdefs'      =>    'modules/Project/metadata/searchdefs.php',
46
- 	'popupdefs'	      =>    'modules/Project/metadata/popupdefs.php',
47
- 	'searchfields'	  =>    'modules/Project/metadata/SearchFields.php',
41
+    $metafiles['Project'] = array(
42
+    'detailviewdefs'  => 	'modules/Project/metadata/detailviewdefs.php', 	
43
+    'editviewdefs'    => 	'modules/Project/metadata/editviewdefs.php',
44
+        'listviewdefs'    => 	'modules/Project/metadata/listviewdefs.php',
45
+        'searchdefs'      =>    'modules/Project/metadata/searchdefs.php',
46
+        'popupdefs'	      =>    'modules/Project/metadata/popupdefs.php',
47
+        'searchfields'	  =>    'modules/Project/metadata/SearchFields.php',
48 48
 
49
- );
49
+    );
50 50
 ?>
Please login to merge, or discard this patch.
modules/Project/metadata/listviewdefs.php 1 patch
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -43,48 +43,48 @@
 block discarded – undo
43 43
 
44 44
 $listViewDefs ['Project'] =
45 45
 array (
46
-  'NAME' => 
47
-  array (
46
+    'NAME' => 
47
+    array (
48 48
     'width' => '25%',
49 49
     'label' => 'LBL_LIST_NAME',
50 50
     'link' => true,
51 51
     'default' => true,
52
-  ),
53
-  'PRIORITY' => 
54
-  array (
52
+    ),
53
+    'PRIORITY' => 
54
+    array (
55 55
     'type' => 'enum',
56 56
     'label' => 'LBL_PRIORITY',
57 57
     'width' => '10%',
58 58
     'default' => true,
59
-  ),
60
-  'STATUS' => 
61
-  array (
59
+    ),
60
+    'STATUS' => 
61
+    array (
62 62
     'width' => '10%',
63 63
     'label' => 'LBL_STATUS',
64 64
     'link' => false,
65 65
     'default' => true,
66
-  ),
67
-  'ESTIMATED_START_DATE' => 
68
-  array (
66
+    ),
67
+    'ESTIMATED_START_DATE' => 
68
+    array (
69 69
     'width' => '10%',
70 70
     'label' => 'LBL_DATE_START',
71 71
     'link' => false,
72 72
     'default' => true,
73
-  ),
74
-  'ASSIGNED_USER_NAME' => 
75
-  array (
73
+    ),
74
+    'ASSIGNED_USER_NAME' => 
75
+    array (
76 76
     'width' => '10%',
77 77
     'label' => 'LBL_LIST_ASSIGNED_USER_ID',
78 78
     'module' => 'Employees',
79 79
     'id' => 'ASSIGNED_USER_ID',
80 80
     'default' => true,
81
-  ),
82
-  'ESTIMATED_END_DATE' => 
83
-  array (
81
+    ),
82
+    'ESTIMATED_END_DATE' => 
83
+    array (
84 84
     'width' => '10%',
85 85
     'label' => 'LBL_DATE_END',
86 86
     'link' => false,
87 87
     'default' => true,
88
-  ),
88
+    ),
89 89
 );
90 90
 ?>
Please login to merge, or discard this patch.
modules/SugarFeed/Dashlets/SugarFeedDashlet/SugarFeedDashlet.meta.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -49,8 +49,8 @@
 block discarded – undo
49 49
 global $app_strings;
50 50
 
51 51
 $dashletMeta['SugarFeedDashlet'] = array('module'		=> 'SugarFeed',
52
-										  'title'       => translate('LBL_HOMEPAGE_TITLE', 'SugarFeed'), 
53
-                                          'description' => 'A customizable view into Sugar_Feed',
54
-                                          'icon'        => 'themes/default/images/icon_SugarFeed_32.gif',
55
-                                          'dynamic_hide' => true,
56
-                                          'category'    => 'Tools');
57 52
\ No newline at end of file
53
+                                            'title'       => translate('LBL_HOMEPAGE_TITLE', 'SugarFeed'), 
54
+                                            'description' => 'A customizable view into Sugar_Feed',
55
+                                            'icon'        => 'themes/default/images/icon_SugarFeed_32.gif',
56
+                                            'dynamic_hide' => true,
57
+                                            'category'    => 'Tools');
58 58
\ No newline at end of file
Please login to merge, or discard this patch.
modules/SugarFeed/Dashlets/SugarFeedDashlet/SugarFeedDashlet.php 1 patch
Indentation   +152 added lines, -152 removed lines patch added patch discarded remove patch
@@ -53,21 +53,21 @@  discard block
 block discarded – undo
53 53
 
54 54
 
55 55
     function SugarFeedDashlet($id, $def = null) {
56
-		global $current_user, $app_strings, $app_list_strings;
56
+        global $current_user, $app_strings, $app_list_strings;
57 57
 
58
-		require_once('modules/SugarFeed/metadata/dashletviewdefs.php');
59
-		$this->myItemsOnly = false;
58
+        require_once('modules/SugarFeed/metadata/dashletviewdefs.php');
59
+        $this->myItemsOnly = false;
60 60
         parent::DashletGeneric($id, $def);
61
-		$this->myItemsOnly = false;
62
-		$this->isConfigurable = true;
63
-		$this->hasScript = true;
64
-		$pattern = array();
65
-		$pattern[] = "/-/";
66
-		$pattern[] = "/[0-9]/";
67
-		$replacements = array();
68
-		$replacements[] = '';
69
-		$replacements[] = '';
70
-		$this->idjs = preg_replace($pattern,$replacements,$this->id);
61
+        $this->myItemsOnly = false;
62
+        $this->isConfigurable = true;
63
+        $this->hasScript = true;
64
+        $pattern = array();
65
+        $pattern[] = "/-/";
66
+        $pattern[] = "/[0-9]/";
67
+        $replacements = array();
68
+        $replacements[] = '';
69
+        $replacements[] = '';
70
+        $this->idjs = preg_replace($pattern,$replacements,$this->id);
71 71
         // Add in some default categories.
72 72
         $this->categories['ALL'] = translate('LBL_ALL','SugarFeed');
73 73
         // Need to get the rest of the active SugarFeed modules
@@ -93,9 +93,9 @@  discard block
 block discarded – undo
93 93
 
94 94
 
95 95
         if(empty($def['title'])) $this->title = translate('LBL_HOMEPAGE_TITLE', 'SugarFeed');
96
-		if(!empty($def['rows']))$this->displayRows = $def['rows'];
97
-		if(!empty($def['categories']))$this->selectedCategories = $def['categories'];
98
-		if(!empty($def['userfeed_created'])) $this->userfeed_created = $def['userfeed_created'];
96
+        if(!empty($def['rows']))$this->displayRows = $def['rows'];
97
+        if(!empty($def['categories']))$this->selectedCategories = $def['categories'];
98
+        if(!empty($def['userfeed_created'])) $this->userfeed_created = $def['userfeed_created'];
99 99
         $this->searchFields = $dashletData['SugarFeedDashlet']['searchFields'];
100 100
         $this->columns = $dashletData['SugarFeedDashlet']['columns'];
101 101
 
@@ -110,20 +110,20 @@  discard block
 block discarded – undo
110 110
             $this->categories["Twitter"] = "Twitter";
111 111
         }
112 112
 
113
-		$catCount = count($this->categories);
114
-		ACLController::filterModuleList($this->categories, false);
115
-		if(count($this->categories) < $catCount){
116
-			if(!empty($this->selectedCategories)){
117
-				ACLController::filterModuleList($this->selectedCategories, true);
118
-			}else{
119
-				$this->selectedCategories = array_keys($this->categories);
120
-				unset($this->selectedCategories[0]);
121
-			}
122
-		}
113
+        $catCount = count($this->categories);
114
+        ACLController::filterModuleList($this->categories, false);
115
+        if(count($this->categories) < $catCount){
116
+            if(!empty($this->selectedCategories)){
117
+                ACLController::filterModuleList($this->selectedCategories, true);
118
+            }else{
119
+                $this->selectedCategories = array_keys($this->categories);
120
+                unset($this->selectedCategories[0]);
121
+            }
122
+        }
123 123
         $this->seedBean = new SugarFeed();
124 124
     }
125 125
 
126
-	function process($lvsParams = array()) {
126
+    function process($lvsParams = array()) {
127 127
         global $current_user;
128 128
 
129 129
         $currentSearchFields = array();
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
 
140 140
         $this->lvs->export = false;
141 141
         $this->lvs->multiSelect = false;
142
-		$this->lvs->quickViewLinks = false;
142
+        $this->lvs->quickViewLinks = false;
143 143
         // columns
144 144
     foreach($this->columns as $name => $val) {
145 145
                 if(!empty($val['default']) && $val['default']) {
@@ -170,11 +170,11 @@  discard block
 block discarded – undo
170 170
         $owner_modules = array();
171 171
         $regular_modules = array();
172 172
         foreach($mod_list as $module => $ignore) {
173
-			// Handle the UserFeed differently
174
-			if ( $module == 'UserFeed') {
175
-				$regular_modules[] = 'UserFeed';
176
-				continue;
177
-			}
173
+            // Handle the UserFeed differently
174
+            if ( $module == 'UserFeed') {
175
+                $regular_modules[] = 'UserFeed';
176
+                continue;
177
+            }
178 178
             if($module == 'Facebook'){
179 179
                 $regular_modules[] = "Facebook";
180 180
                 continue;
@@ -187,12 +187,12 @@  discard block
 block discarded – undo
187 187
             if ( in_array($module,$this->externalAPIList) ) {
188 188
                 $external_modules[] = $module;
189 189
             }
190
-			if (ACLAction::getUserAccessLevel($current_user->id,$module,'view') <= ACL_ALLOW_NONE ) {
191
-				// Not enough access to view any records, don't add it to any lists
192
-				continue;
193
-			}
194
-			if ( ACLAction::getUserAccessLevel($current_user->id,$module,'view') == ACL_ALLOW_OWNER ) {
195
-				$owner_modules[] = $module;
190
+            if (ACLAction::getUserAccessLevel($current_user->id,$module,'view') <= ACL_ALLOW_NONE ) {
191
+                // Not enough access to view any records, don't add it to any lists
192
+                continue;
193
+            }
194
+            if ( ACLAction::getUserAccessLevel($current_user->id,$module,'view') == ACL_ALLOW_OWNER ) {
195
+                $owner_modules[] = $module;
196 196
             } else {
197 197
                 $regular_modules[] = $module;
198 198
             }
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
 
204 204
         if(!empty($this->displayTpl))
205 205
         {
206
-        	//MFH BUG #14296
206
+            //MFH BUG #14296
207 207
             $where = '';
208 208
             if(!empty($whereArray)){
209 209
                 $where = '(' . implode(') AND (', $whereArray) . ')';
@@ -213,35 +213,35 @@  discard block
 block discarded – undo
213 213
             $additional_where = '';
214 214
 
215 215
 
216
-			$module_limiter = " sugarfeed.related_module in ('" . implode("','", $regular_modules) . "')";
216
+            $module_limiter = " sugarfeed.related_module in ('" . implode("','", $regular_modules) . "')";
217 217
 
218
-			if( is_admin($GLOBALS['current_user'] ) )
218
+            if( is_admin($GLOBALS['current_user'] ) )
219 219
             {
220 220
                 $all_modules = array_merge($regular_modules, $owner_modules, $admin_modules);
221 221
                 $module_limiter = " sugarfeed.related_module in ('" . implode("','", $all_modules) . "')";
222 222
             }
223 223
             else if ( count($owner_modules) > 0
224
-				) {
224
+                ) {
225 225
                 $module_limiter = " ((sugarfeed.related_module IN ('".implode("','", $regular_modules)."') "
226
-					.") ";
227
-				if ( count($owner_modules) > 0 ) {
228
-					$module_limiter .= "OR (sugarfeed.related_module IN('".implode("','", $owner_modules)."') AND sugarfeed.assigned_user_id = '".$current_user->id."' "
229
-						.") ";
230
-				}
231
-				$module_limiter .= ")";
226
+                    .") ";
227
+                if ( count($owner_modules) > 0 ) {
228
+                    $module_limiter .= "OR (sugarfeed.related_module IN('".implode("','", $owner_modules)."') AND sugarfeed.assigned_user_id = '".$current_user->id."' "
229
+                        .") ";
230
+                }
231
+                $module_limiter .= ")";
232 232
             }
233
-			if(!empty($where)) { $where .= ' AND '; }
233
+            if(!empty($where)) { $where .= ' AND '; }
234 234
 
235 235
 
236
-			$where .= $module_limiter;
236
+            $where .= $module_limiter;
237 237
 
238 238
             $this->lvs->setup($this->seedBean, $this->displayTpl, $where , $lvsParams, 0, $this->displayRows,
239
-                              array('name',
239
+                                array('name',
240 240
                                     'description',
241 241
                                     'date_entered',
242 242
                                     'created_by',
243 243
                                     /* BEGIN - SECURITY GROUPS */
244
-									//related_module now included but keep this here just in case
244
+                                    //related_module now included but keep this here just in case
245 245
                                     'related_module', 
246 246
                                     'related_id', 
247 247
                                     /* END - SECURITY GROUPS */
@@ -277,7 +277,7 @@  discard block
 block discarded – undo
277 277
 
278 278
             // assign a baseURL w/ the action set as DisplayDashlet
279 279
             foreach($this->lvs->data['pageData']['urls'] as $type => $url) {
280
-            	// awu Replacing action=DisplayDashlet with action=DynamicAction&DynamicAction=DisplayDashlet
280
+                // awu Replacing action=DisplayDashlet with action=DynamicAction&DynamicAction=DisplayDashlet
281 281
                 $this->lvs->data['pageData']['urls'][$type] = $url.'&action=DynamicAction&DynamicAction=displayDashlet';
282 282
                 if($type != 'orderBy')
283 283
                     $this->lvs->data['pageData']['urls'][$type] = $url.'&action=DynamicAction&DynamicAction=displayDashlet&sugar_body_only=1&id=' . $this->id;
@@ -335,58 +335,58 @@  discard block
 block discarded – undo
335 335
         $this->lvs->data['data'] = $resortQueue;
336 336
     }
337 337
 
338
-	  function deleteUserFeed() {
339
-    	if(!empty($_REQUEST['record'])) {
340
-			$feed = new SugarFeed();
341
-			$feed->retrieve($_REQUEST['record']);
342
-			if(is_admin($GLOBALS['current_user']) || $feed->created_by == $GLOBALS['current_user']->id){
343
-            	$feed->mark_deleted($_REQUEST['record']);
338
+        function deleteUserFeed() {
339
+        if(!empty($_REQUEST['record'])) {
340
+            $feed = new SugarFeed();
341
+            $feed->retrieve($_REQUEST['record']);
342
+            if(is_admin($GLOBALS['current_user']) || $feed->created_by == $GLOBALS['current_user']->id){
343
+                $feed->mark_deleted($_REQUEST['record']);
344 344
 
345
-			}
345
+            }
346 346
         }
347 347
     }
348
-	 function pushUserFeed() {
349
-    	if(!empty($_REQUEST['text']) || (!empty($_REQUEST['link_url']) && !empty($_REQUEST['link_type']))) {
350
-			$text = htmlspecialchars($_REQUEST['text']);
351
-			//allow for bold and italic user tags
352
-			$text = preg_replace('/&amp;lt;(\/*[bi])&amp;gt;/i','<$1>', $text);
348
+        function pushUserFeed() {
349
+        if(!empty($_REQUEST['text']) || (!empty($_REQUEST['link_url']) && !empty($_REQUEST['link_type']))) {
350
+            $text = htmlspecialchars($_REQUEST['text']);
351
+            //allow for bold and italic user tags
352
+            $text = preg_replace('/&amp;lt;(\/*[bi])&amp;gt;/i','<$1>', $text);
353 353
             SugarFeed::pushFeed($text, 'UserFeed', $GLOBALS['current_user']->id,
354
-								$GLOBALS['current_user']->id,
354
+                                $GLOBALS['current_user']->id,
355 355
                                 $_REQUEST['link_type'], $_REQUEST['link_url']
356 356
                                 );
357 357
         }
358 358
 
359 359
     }
360 360
 
361
-	 function pushUserFeedReply( ) {
362
-         if(!empty($_REQUEST['text'])&&!empty($_REQUEST['parentFeed'])) {
363
-			$text = htmlspecialchars($_REQUEST['text']);
364
-			//allow for bold and italic user tags
365
-			$text = preg_replace('/&amp;lt;(\/*[bi])&amp;gt;/i','<$1>', $text);
361
+        function pushUserFeedReply( ) {
362
+            if(!empty($_REQUEST['text'])&&!empty($_REQUEST['parentFeed'])) {
363
+            $text = htmlspecialchars($_REQUEST['text']);
364
+            //allow for bold and italic user tags
365
+            $text = preg_replace('/&amp;lt;(\/*[bi])&amp;gt;/i','<$1>', $text);
366 366
             SugarFeed::pushFeed($text, 'SugarFeed', $_REQUEST['parentFeed'],
367
-								$GLOBALS['current_user']->id,
367
+                                $GLOBALS['current_user']->id,
368 368
                                 '', ''
369 369
                                 );
370 370
         }
371 371
 
372 372
     }
373 373
 
374
-	  function displayOptions() {
374
+        function displayOptions() {
375 375
         global $app_strings;
376 376
         global $app_list_strings;
377 377
         $ss = new Sugar_Smarty();
378 378
         $ss->assign('titleLBL', translate('LBL_TITLE', 'SugarFeed'));
379
-		$ss->assign('categoriesLBL', translate('LBL_CATEGORIES', 'SugarFeed'));
380
-		$ss->assign('autenticationPendingLBL', translate('LBL_AUTHENTICATION_PENDING', 'SugarFeed'));
379
+        $ss->assign('categoriesLBL', translate('LBL_CATEGORIES', 'SugarFeed'));
380
+        $ss->assign('autenticationPendingLBL', translate('LBL_AUTHENTICATION_PENDING', 'SugarFeed'));
381 381
         $ss->assign('rowsLBL', translate('LBL_ROWS', 'SugarFeed'));
382 382
         $ss->assign('saveLBL', $app_strings['LBL_SAVE_BUTTON_LABEL']);
383 383
         $ss->assign('clearLBL', $app_strings['LBL_CLEAR_BUTTON_LABEL']);
384 384
         $ss->assign('title', $this->title);
385
-		$ss->assign('categories', $this->categories);
385
+        $ss->assign('categories', $this->categories);
386 386
         if ( empty($this->selectedCategories) ) {
387 387
             $this->selectedCategories['ALL'] = 'ALL';
388 388
         }
389
-		$ss->assign('selectedCategories', $this->selectedCategories);
389
+        $ss->assign('selectedCategories', $this->selectedCategories);
390 390
         $ss->assign('rows', $this->displayRows);
391 391
         $externalApis = array();
392 392
         foreach ( $this->externalAPIList as $apiObj => $apiName ) {
@@ -399,58 +399,58 @@  discard block
 block discarded – undo
399 399
         $ss->assign('authenticateLBL', translate('LBL_AUTHENTICATE', 'SugarFeed'));
400 400
         $ss->assign('id', $this->id);
401 401
         if($this->isAutoRefreshable()) {
402
-       		$ss->assign('isRefreshable', true);
403
-			$ss->assign('autoRefresh', $GLOBALS['app_strings']['LBL_DASHLET_CONFIGURE_AUTOREFRESH']);
404
-			$ss->assign('autoRefreshOptions', $this->getAutoRefreshOptions());
405
-			$ss->assign('autoRefreshSelect', $this->autoRefresh);
406
-		}
402
+                $ss->assign('isRefreshable', true);
403
+            $ss->assign('autoRefresh', $GLOBALS['app_strings']['LBL_DASHLET_CONFIGURE_AUTOREFRESH']);
404
+            $ss->assign('autoRefreshOptions', $this->getAutoRefreshOptions());
405
+            $ss->assign('autoRefreshSelect', $this->autoRefresh);
406
+        }
407 407
 
408 408
         return  $ss->fetch('custom/modules/SugarFeed/Dashlets/SugarFeedDashlet/Options.tpl');
409 409
     }
410 410
 
411
-	/**
412
-	 * creats the values
413
-	 * @return
414
-	 * @param $req Object
415
-	 */
416
-	  function saveOptions($req) {
411
+    /**
412
+     * creats the values
413
+     * @return
414
+     * @param $req Object
415
+     */
416
+        function saveOptions($req) {
417 417
         global $sugar_config, $timedate, $current_user, $theme;
418 418
         $options = array();
419 419
         $options['title'] = $req['title'];
420
-		$rows = intval($_REQUEST['rows']);
420
+        $rows = intval($_REQUEST['rows']);
421 421
         if($rows <= 0) {
422 422
             $rows = 15;
423 423
         }
424
-		if($rows > 100){
425
-			$rows = 100;
426
-		}
424
+        if($rows > 100){
425
+            $rows = 100;
426
+        }
427 427
         if ( isset($req['autoRefresh']) )
428 428
             $options['autoRefresh'] = $req['autoRefresh'];
429 429
         $options['rows'] = $rows;
430
-		$options['categories'] = $req['categories'];
431
-		foreach($options['categories'] as $cat){
432
-			if($cat == 'ALL'){
433
-				unset($options['categories']);
434
-			}
435
-		}
430
+        $options['categories'] = $req['categories'];
431
+        foreach($options['categories'] as $cat){
432
+            if($cat == 'ALL'){
433
+                unset($options['categories']);
434
+            }
435
+        }
436 436
 
437 437
 
438 438
         return $options;
439 439
     }
440 440
 
441 441
 
442
-      function sugarFeedDisplayScript() {
443
-          // Forces the quicksearch to reload anytime the dashlet gets refreshed
444
-          return '<script type="text/javascript">
442
+        function sugarFeedDisplayScript() {
443
+            // Forces the quicksearch to reload anytime the dashlet gets refreshed
444
+            return '<script type="text/javascript">
445 445
 enableQS(false);
446 446
 </script>';
447
-      }
448
-	/**
449
-	 *
450
-	 * @return javascript including QuickSearch for SugarFeeds
451
-	 */
452
-	 function displayScript() {
453
-	 	require_once('include/QuickSearchDefaults.php');
447
+        }
448
+    /**
449
+     *
450
+     * @return javascript including QuickSearch for SugarFeeds
451
+     */
452
+        function displayScript() {
453
+            require_once('include/QuickSearchDefaults.php');
454 454
         $ss = new Sugar_Smarty();
455 455
         $ss->assign('saving', translate('LBL_SAVING', 'SugarFeed'));
456 456
         $ss->assign('saved', translate('LBL_SAVED', 'SugarFeed'));
@@ -461,15 +461,15 @@  discard block
 block discarded – undo
461 461
         return $str; // return parent::display for title and such
462 462
     }
463 463
 
464
-	/**
465
-	 *
466
-	 * @return the fully rendered dashlet
467
-	 */
468
-	function display(){
464
+    /**
465
+     *
466
+     * @return the fully rendered dashlet
467
+     */
468
+    function display(){
469 469
 
470
-		$listview = parent::display();
471
-		$GLOBALS['current_sugarfeed'] = $this;
472
-		$listview = preg_replace_callback('/\{([^\^ }]+)\.([^\}]+)\}/', create_function(
470
+        $listview = parent::display();
471
+        $GLOBALS['current_sugarfeed'] = $this;
472
+        $listview = preg_replace_callback('/\{([^\^ }]+)\.([^\}]+)\}/', create_function(
473 473
             '$matches',
474 474
             'if($matches[1] == "this"){$var = $matches[2]; return $GLOBALS[\'current_sugarfeed\']->$var;}else{return translate($matches[2], $matches[1]);}'
475 475
         ),$listview);
@@ -479,7 +479,7 @@  discard block
 block discarded – undo
479 479
         preg_match_all('/\[(\w+)\:/', $listview, $alt_modules);
480 480
 
481 481
         //now process each token to create the proper url and image tags in feed, leaving a string for the alt to be replaced in next step
482
-		$listview = preg_replace('/\[(\w+)\:([\w\-\d]*)\:([^\]]*)\]/', '<a href="index.php?module=$1&action=DetailView&record=$2"><img src="themes/default/images/$1.gif" border=0 REPLACE_ALT>$3</a>', $listview); /*SKIP_IMAGE_TAG*/
482
+        $listview = preg_replace('/\[(\w+)\:([\w\-\d]*)\:([^\]]*)\]/', '<a href="index.php?module=$1&action=DetailView&record=$2"><img src="themes/default/images/$1.gif" border=0 REPLACE_ALT>$3</a>', $listview); /*SKIP_IMAGE_TAG*/
483 483
 
484 484
 
485 485
         //process each module for the singular version so we can populate the alt tag on the image
@@ -493,25 +493,25 @@  discard block
 block discarded – undo
493 493
 
494 494
 
495 495
 
496
-		return $listview.'</div></div>';
497
-	}
496
+        return $listview.'</div></div>';
497
+    }
498 498
 
499 499
 
500
-	/**
501
-	 *
502
-	 * @return the title and the user post form
503
-	 * @param $text Object
504
-	 */
505
-	function getHeader($text='') {
506
-		return parent::getHeader($text) . $this->getPostForm().$this->getDisabledWarning().$this->sugarFeedDisplayScript().'<div class="sugarFeedDashlet"><div id="contentScroller'.$this->idjs.'">';
507
-	}
500
+    /**
501
+     *
502
+     * @return the title and the user post form
503
+     * @param $text Object
504
+     */
505
+    function getHeader($text='') {
506
+        return parent::getHeader($text) . $this->getPostForm().$this->getDisabledWarning().$this->sugarFeedDisplayScript().'<div class="sugarFeedDashlet"><div id="contentScroller'.$this->idjs.'">';
507
+    }
508 508
 
509 509
 
510
-	/**
511
-	 *
512
-	 * @return a warning message if the sugar feed system is not enabled currently
513
-	 */
514
-	function getDisabledWarning(){
510
+    /**
511
+     *
512
+     * @return a warning message if the sugar feed system is not enabled currently
513
+     */
514
+    function getDisabledWarning(){
515 515
         /* Check to see if the sugar feed system is enabled */
516 516
         if ( ! $this->shouldDisplay() ) {
517 517
             // The Sugar Feeds are disabled, populate the warning message
@@ -521,29 +521,29 @@  discard block
 block discarded – undo
521 521
         }
522 522
     }
523 523
 
524
-	/**
525
-	 *
526
-	 * @return the form for users posting custom messages to the feed stream
527
-	 */
528
-	function getPostForm(){
524
+    /**
525
+     *
526
+     * @return the form for users posting custom messages to the feed stream
527
+     */
528
+    function getPostForm(){
529 529
         global $current_user;
530 530
 
531 531
         if ( (!empty($this->selectedCategories) && !in_array('UserFeed',$this->selectedCategories))
532
-			) {
532
+            ) {
533 533
             // The user feed system isn't enabled, don't let them post notes
534 534
             return '';
535 535
         }
536
-		$user_name = ucfirst($GLOBALS['current_user']->user_name);
537
-		$moreimg = SugarThemeRegistry::current()->getImage('advanced_search' , 'onclick="toggleDisplay(\'more_' . $this->id . '\'); toggleDisplay(\'more_img_'.$this->id.'\'); toggleDisplay(\'less_img_'.$this->id.'\');"',null,null,'.gif',translate('LBL_SHOW_MORE_OPTIONS','SugarFeed'));
538
-		$lessimg = SugarThemeRegistry::current()->getImage('basic_search' , 'onclick="toggleDisplay(\'more_' . $this->id . '\'); toggleDisplay(\'more_img_'.$this->id.'\'); toggleDisplay(\'less_img_'.$this->id.'\');"',null,null,'.gif',translate('LBL_HIDE_OPTIONS','SugarFeed'));
539
-		$ss = new Sugar_Smarty();
540
-		$ss->assign('LBL_TO', translate('LBL_TO', 'SugarFeed'));
541
-		$ss->assign('LBL_POST', translate('LBL_POST', 'SugarFeed'));
542
-		$ss->assign('LBL_SELECT', translate('LBL_SELECT', 'SugarFeed'));
543
-		$ss->assign('LBL_IS', translate('LBL_IS', 'SugarFeed'));
544
-		$ss->assign('id', $this->id);
545
-		$ss->assign('more_img', $moreimg);
546
-		$ss->assign('less_img', $lessimg);
536
+        $user_name = ucfirst($GLOBALS['current_user']->user_name);
537
+        $moreimg = SugarThemeRegistry::current()->getImage('advanced_search' , 'onclick="toggleDisplay(\'more_' . $this->id . '\'); toggleDisplay(\'more_img_'.$this->id.'\'); toggleDisplay(\'less_img_'.$this->id.'\');"',null,null,'.gif',translate('LBL_SHOW_MORE_OPTIONS','SugarFeed'));
538
+        $lessimg = SugarThemeRegistry::current()->getImage('basic_search' , 'onclick="toggleDisplay(\'more_' . $this->id . '\'); toggleDisplay(\'more_img_'.$this->id.'\'); toggleDisplay(\'less_img_'.$this->id.'\');"',null,null,'.gif',translate('LBL_HIDE_OPTIONS','SugarFeed'));
539
+        $ss = new Sugar_Smarty();
540
+        $ss->assign('LBL_TO', translate('LBL_TO', 'SugarFeed'));
541
+        $ss->assign('LBL_POST', translate('LBL_POST', 'SugarFeed'));
542
+        $ss->assign('LBL_SELECT', translate('LBL_SELECT', 'SugarFeed'));
543
+        $ss->assign('LBL_IS', translate('LBL_IS', 'SugarFeed'));
544
+        $ss->assign('id', $this->id);
545
+        $ss->assign('more_img', $moreimg);
546
+        $ss->assign('less_img', $lessimg);
547 547
 
548 548
         include_once("include/social/get_feed_data.php");
549 549
         $ss->assign('facebook', $html );
@@ -559,12 +559,12 @@  discard block
 block discarded – undo
559 559
         foreach ( $linkTypesIn as $key => $value ) {
560 560
             $linkTypes[$key] = translate('LBL_LINK_TYPE_'.$value,'SugarFeed');
561 561
         }
562
-		$ss->assign('link_types', $linkTypes);
562
+        $ss->assign('link_types', $linkTypes);
563 563
 
564 564
         $userPostFormTplFile = 'modules/SugarFeed/Dashlets/SugarFeedDashlet/UserPostForm.tpl';
565 565
         $fetch = $ss->fetch(get_custom_file_if_exists($userPostFormTplFile));
566 566
         return $fetch;
567
-	}
567
+    }
568 568
 
569 569
     // This is called from the include/MySugar/DashletsDialog/DashletsDialog.php and determines if we should display the SugarFeed dashlet as an option or not
570 570
     static function shouldDisplay() {
Please login to merge, or discard this patch.
modules/ProjectTask/ProjectTaskQuickCreate.php 1 patch
Indentation   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -75,29 +75,29 @@
 block discarded – undo
75 75
 ///
76 76
 /// SETUP PARENT POPUP
77 77
 
78
-	$popup_request_data = array(
79
-		'call_back_function' => 'set_return',
80
-		'form_name' => 'projectTypeQuickCreate',
81
-		'field_to_name_array' => array(
82
-			'id' => 'parent_id',
83
-			'name' => 'parent_name',
84
-			),
85
-		);
78
+    $popup_request_data = array(
79
+        'call_back_function' => 'set_return',
80
+        'form_name' => 'projectTypeQuickCreate',
81
+        'field_to_name_array' => array(
82
+            'id' => 'parent_id',
83
+            'name' => 'parent_name',
84
+            ),
85
+        );
86 86
 
87
-	$encoded_parent_popup_request_data = $json->encode($popup_request_data);
88
-	$this->ss->assign('encoded_parent_popup_request_data', $encoded_parent_popup_request_data);        
87
+    $encoded_parent_popup_request_data = $json->encode($popup_request_data);
88
+    $this->ss->assign('encoded_parent_popup_request_data', $encoded_parent_popup_request_data);        
89 89
         
90
-		$popup_request_data = array(
91
-			'call_back_function' => 'set_return',
92
-			'form_name' => 'projectTaskQuickCreate',
93
-			'field_to_name_array' => array(
94
-				'id' => 'account_id',
95
-				'name' => 'account_name',
96
-			),
97
-		);
90
+        $popup_request_data = array(
91
+            'call_back_function' => 'set_return',
92
+            'form_name' => 'projectTaskQuickCreate',
93
+            'field_to_name_array' => array(
94
+                'id' => 'account_id',
95
+                'name' => 'account_name',
96
+            ),
97
+        );
98 98
 	
99
-		$encoded_popup_request_data = $json->encode($popup_request_data);
100
-		$this->ss->assign('encoded_popup_request_data', $encoded_popup_request_data);        
99
+        $encoded_popup_request_data = $json->encode($popup_request_data);
100
+        $this->ss->assign('encoded_popup_request_data', $encoded_popup_request_data);        
101 101
 
102 102
         
103 103
     }   
Please login to merge, or discard this patch.
modules/ProjectTask/MyProjectTasks.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -59,19 +59,19 @@
 block discarded – undo
59 59
 $ListView = new ListView();
60 60
 $seedProjectTask = new ProjectTask();
61 61
 $where = "project_task.assigned_user_id='{$current_user->id}'"
62
-	. " AND (project_task.status IS NULL OR (project_task.status!='Completed' AND project_task.status!='Deferred'))"
63
-	. " AND (project_task.date_start IS NULL OR project_task.date_start <= '$today')";
62
+    . " AND (project_task.status IS NULL OR (project_task.status!='Completed' AND project_task.status!='Deferred'))"
63
+    . " AND (project_task.date_start IS NULL OR project_task.date_start <= '$today')";
64 64
 $ListView->initNewXTemplate('modules/ProjectTask/MyProjectTasks.html',
65
-	$current_module_strings);
65
+    $current_module_strings);
66 66
 $header_text = '';
67 67
 
68 68
 if(is_admin($current_user)
69
-	&& $_REQUEST['module'] != 'DynamicLayout'
70
-	&& !empty($_SESSION['editinplace']))
69
+    && $_REQUEST['module'] != 'DynamicLayout'
70
+    && !empty($_SESSION['editinplace']))
71 71
 {	
72
-	$header_text = "&nbsp;<a href='index.php?action=index&module=DynamicLayout&from_action=MyTasks&from_module=Tasks'>"
73
-		. SugarThemeRegistry::current()->getImage("EditLayout","border='0' align='bottom'",null,null,'.gif',$mod_strings['LBL_EDITLAYOUT'])
74
-		. '</a>';
72
+    $header_text = "&nbsp;<a href='index.php?action=index&module=DynamicLayout&from_action=MyTasks&from_module=Tasks'>"
73
+        . SugarThemeRegistry::current()->getImage("EditLayout","border='0' align='bottom'",null,null,'.gif',$mod_strings['LBL_EDITLAYOUT'])
74
+        . '</a>';
75 75
 }
76 76
 $ListView->setHeaderTitle($current_module_strings['LBL_LIST_MY_PROJECT_TASKS'].$header_text);
77 77
 $ListView->setQuery($where, "", "date_due,priority desc", "PROJECT_TASK");
Please login to merge, or discard this patch.
modules/ProjectTask/metadata/additionalDetails.php 1 patch
Indentation   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -42,31 +42,31 @@
 block discarded – undo
42 42
 
43 43
 
44 44
 function additionalDetailsProjectTask($fields) {
45
-	static $mod_strings;
46
-	if(empty($mod_strings)) {
47
-		global $current_language;
48
-		$mod_strings = return_module_language($current_language, 'ProjectTask');
49
-	}
45
+    static $mod_strings;
46
+    if(empty($mod_strings)) {
47
+        global $current_language;
48
+        $mod_strings = return_module_language($current_language, 'ProjectTask');
49
+    }
50 50
 		
51
-	$overlib_string = '';
52
-	if(!empty($fields['PRIORITY'])) $overlib_string .= '<b>' . $mod_strings['LBL_PRIORITY'] . '</b> ' . $fields['PRIORITY'] . '<br>';
53
-	if(!empty($fields['PERCENT_COMPLETE'])) $overlib_string .= '<b>' . $mod_strings['LBL_PERCENT_COMPLETE'] . '</b> ' . $fields['PERCENT_COMPLETE'] . '%<br>';	
54
-	if(!empty($fields['ESTIMATED_EFFORT'])) $overlib_string .= '<b>' . $mod_strings['LBL_ESTIMATED_EFFORT'] . '</b> ' . $fields['ESTIMATED_EFFORT'] . '<br>';	
55
-	if(!empty($fields['ACTUAL_EFFORT'])) $overlib_string .= '<b>' . $mod_strings['LBL_ACTUAL_EFFORT'] . '</b> ' . $fields['ACTUAL_EFFORT'] . '<br>';
56
-	if(!empty($fields['TASK_NUMBER'])) $overlib_string .= '<b>' . $mod_strings['LBL_TASK_NUMBER'] . '</b> ' . $fields['TASK_NUMBER'] . '<br>';
57
-	if(!empty($fields['DATE_START'])) $overlib_string .= '<b>' . $mod_strings['LBL_DATE_START'] . '</b> ' . $fields['DATE_START'] . ' ' . $fields['TIME_START'] . '<br>';
51
+    $overlib_string = '';
52
+    if(!empty($fields['PRIORITY'])) $overlib_string .= '<b>' . $mod_strings['LBL_PRIORITY'] . '</b> ' . $fields['PRIORITY'] . '<br>';
53
+    if(!empty($fields['PERCENT_COMPLETE'])) $overlib_string .= '<b>' . $mod_strings['LBL_PERCENT_COMPLETE'] . '</b> ' . $fields['PERCENT_COMPLETE'] . '%<br>';	
54
+    if(!empty($fields['ESTIMATED_EFFORT'])) $overlib_string .= '<b>' . $mod_strings['LBL_ESTIMATED_EFFORT'] . '</b> ' . $fields['ESTIMATED_EFFORT'] . '<br>';	
55
+    if(!empty($fields['ACTUAL_EFFORT'])) $overlib_string .= '<b>' . $mod_strings['LBL_ACTUAL_EFFORT'] . '</b> ' . $fields['ACTUAL_EFFORT'] . '<br>';
56
+    if(!empty($fields['TASK_NUMBER'])) $overlib_string .= '<b>' . $mod_strings['LBL_TASK_NUMBER'] . '</b> ' . $fields['TASK_NUMBER'] . '<br>';
57
+    if(!empty($fields['DATE_START'])) $overlib_string .= '<b>' . $mod_strings['LBL_DATE_START'] . '</b> ' . $fields['DATE_START'] . ' ' . $fields['TIME_START'] . '<br>';
58 58
 		
59
-	if(!empty($fields['DESCRIPTION'])) {
60
-		$overlib_string .= '<b>'. $mod_strings['LBL_DESCRIPTION'] . '</b> ' . substr($fields['DESCRIPTION'], 0, 300);
61
-		if(strlen($fields['DESCRIPTION']) > 300) $overlib_string .= '...';
62
-	}	
59
+    if(!empty($fields['DESCRIPTION'])) {
60
+        $overlib_string .= '<b>'. $mod_strings['LBL_DESCRIPTION'] . '</b> ' . substr($fields['DESCRIPTION'], 0, 300);
61
+        if(strlen($fields['DESCRIPTION']) > 300) $overlib_string .= '...';
62
+    }	
63 63
 
64
-	return array('fieldToAddTo' => 'NAME', 
65
-				 'string' => $overlib_string, 
66
-				 'editLink' => "index.php?action=EditView&module=ProjectTask&return_module=ProjectTask&record={$fields['ID']}", 
67
-				 'viewLink' => "index.php?action=DetailView&module=ProjectTask&return_module=ProjectTask&record={$fields['ID']}");
64
+    return array('fieldToAddTo' => 'NAME', 
65
+                    'string' => $overlib_string, 
66
+                    'editLink' => "index.php?action=EditView&module=ProjectTask&return_module=ProjectTask&record={$fields['ID']}", 
67
+                    'viewLink' => "index.php?action=DetailView&module=ProjectTask&return_module=ProjectTask&record={$fields['ID']}");
68 68
 }
69 69
  
70
- ?>
70
+    ?>
71 71
  
72 72
  
73 73
\ No newline at end of file
Please login to merge, or discard this patch.