Completed
Push — console-installer ( 3d54e5...e2b50d )
by Adam
69:10 queued 48:24
created
modules/Prospects/metadata/SearchFields.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
2
+if (!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
3 3
 /*********************************************************************************
4 4
  * SugarCRM Community Edition is a customer relationship management program developed by
5 5
  * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc.
@@ -39,12 +39,12 @@  discard block
 block discarded – undo
39 39
  ********************************************************************************/
40 40
 
41 41
 $searchFields['Prospects'] = 
42
-	array (
43
-		'first_name' => array( 'query_type'=>'default'),
42
+	array(
43
+		'first_name' => array('query_type'=>'default'),
44 44
 		'last_name'=> array('query_type'=>'default'),
45
-		'search_name'=> array('query_type'=>'default','db_field'=>array('first_name','last_name'),'force_unifiedsearch'=>true),
45
+		'search_name'=> array('query_type'=>'default', 'db_field'=>array('first_name', 'last_name'), 'force_unifiedsearch'=>true),
46 46
 		'do_not_call'=> array('query_type'=>'default', 'operator'=>'='),
47
-		'phone'=> array('query_type'=>'default','db_field'=>array('phone_mobile','phone_work','phone_other','phone_fax','phone_home')),
47
+		'phone'=> array('query_type'=>'default', 'db_field'=>array('phone_mobile', 'phone_work', 'phone_other', 'phone_fax', 'phone_home')),
48 48
 		'email'=> array(
49 49
 			'query_type' => 'default',
50 50
 			'operator' => 'subquery',
@@ -54,20 +54,20 @@  discard block
 block discarded – undo
54 54
 			),
55 55
 		),
56 56
 		'assistant'=> array('query_type'=>'default'),
57
-		'address_street'=> array('query_type'=>'default','db_field'=>array('primary_address_street','alt_address_street')),
58
-		'address_city'=> array('query_type'=>'default','db_field'=>array('primary_address_city','alt_address_city')),
59
-		'address_state'=> array('query_type'=>'default','db_field'=>array('primary_address_state','alt_address_state')),
60
-		'address_postalcode'=> array('query_type'=>'default','db_field'=>array('primary_address_postalcode','alt_address_postalcode')),
61
-		'address_country'=> array('query_type'=>'default','db_field'=>array('primary_address_country','alt_address_country')),
62
-		'current_user_only'=> array('query_type'=>'default','db_field'=>array('assigned_user_id'),'my_items'=>true, 'vname' => 'LBL_CURRENT_USER_FILTER', 'type' => 'bool'),
57
+		'address_street'=> array('query_type'=>'default', 'db_field'=>array('primary_address_street', 'alt_address_street')),
58
+		'address_city'=> array('query_type'=>'default', 'db_field'=>array('primary_address_city', 'alt_address_city')),
59
+		'address_state'=> array('query_type'=>'default', 'db_field'=>array('primary_address_state', 'alt_address_state')),
60
+		'address_postalcode'=> array('query_type'=>'default', 'db_field'=>array('primary_address_postalcode', 'alt_address_postalcode')),
61
+		'address_country'=> array('query_type'=>'default', 'db_field'=>array('primary_address_country', 'alt_address_country')),
62
+		'current_user_only'=> array('query_type'=>'default', 'db_field'=>array('assigned_user_id'), 'my_items'=>true, 'vname' => 'LBL_CURRENT_USER_FILTER', 'type' => 'bool'),
63 63
 		'assigned_user_id'=> array('query_type'=>'default'),
64 64
 	   //Range Search Support 
65
-	   'range_date_entered' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
66
-	   'start_range_date_entered' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
67
-	   'end_range_date_entered' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
68
-	   'range_date_modified' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
69
-	   'start_range_date_modified' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
70
-       'end_range_date_modified' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),	
65
+	   'range_date_entered' => array('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
66
+	   'start_range_date_entered' => array('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
67
+	   'end_range_date_entered' => array('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
68
+	   'range_date_modified' => array('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
69
+	   'start_range_date_modified' => array('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
70
+       'end_range_date_modified' => array('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),	
71 71
 	   //Range Search Support
72 72
 	);
73 73
 ?>
Please login to merge, or discard this patch.
modules/Prospects/metadata/detailviewdefs.php 1 patch
Spacing   +42 added lines, -42 removed lines patch added patch discarded remove patch
@@ -38,27 +38,27 @@  discard block
 block discarded – undo
38 38
  ********************************************************************************/
39 39
 
40 40
 $viewdefs ['Prospects'] = 
41
-array (
41
+array(
42 42
   'DetailView' => 
43
-  array (
43
+  array(
44 44
     'templateMeta' => 
45
-    array (
45
+    array(
46 46
       'form' => 
47
-      array (
47
+      array(
48 48
         'buttons' => 
49
-        array (
49
+        array(
50 50
           0 => 'EDIT',
51 51
           1 => 'DUPLICATE',
52 52
           2 => 'DELETE',
53 53
           3 => 
54
-          array (
54
+          array(
55 55
             'customCode' => '<input title="{$MOD.LBL_CONVERT_BUTTON_TITLE}" class="button" onclick="this.form.return_module.value=\'Prospects\'; this.form.return_action.value=\'DetailView\'; this.form.return_id.value=\'{$fields.id.value}\';this.form.module.value=\'Leads\';this.form.action.value=\'EditView\';" type="submit" name="CONVERT_LEAD_BTN" value="{$MOD.LBL_CONVERT_BUTTON_LABEL}"/>',
56 56
             'sugar_html' => 
57
-            array (
57
+            array(
58 58
               'type' => 'submit',
59 59
               'value' => '{$MOD.LBL_CONVERT_BUTTON_LABEL}',
60 60
               'htmlOptions' => 
61
-              array (
61
+              array(
62 62
                 'class' => 'button',
63 63
                 'name' => 'CONVERT_LEAD_BTN',
64 64
                 'id' => 'convert_target_button',
@@ -68,14 +68,14 @@  discard block
 block discarded – undo
68 68
             ),
69 69
           ),
70 70
           4 => 
71
-          array (
71
+          array(
72 72
             'customCode' => '<input title="{$APP.LBL_MANAGE_SUBSCRIPTIONS}" class="button" onclick="this.form.return_module.value=\'Prospects\'; this.form.return_action.value=\'DetailView\'; this.form.return_id.value=\'{$fields.id.value}\'; this.form.action.value=\'Subscriptions\'; this.form.module.value=\'Campaigns\';" type="submit" name="Manage Subscriptions" value="{$APP.LBL_MANAGE_SUBSCRIPTIONS}"/>',
73 73
             'sugar_html' => 
74
-            array (
74
+            array(
75 75
               'type' => 'submit',
76 76
               'value' => '{$APP.LBL_MANAGE_SUBSCRIPTIONS}',
77 77
               'htmlOptions' => 
78
-              array (
78
+              array(
79 79
                 'class' => 'button',
80 80
                 'id' => 'manage_subscriptions_button',
81 81
                 'name' => 'Manage Subscriptions',
@@ -86,134 +86,134 @@  discard block
 block discarded – undo
86 86
           ),
87 87
         ),
88 88
         'hidden' => 
89
-        array (
89
+        array(
90 90
           0 => '<input type="hidden" name="prospect_id" value="{$fields.id.value}">',
91 91
         ),
92 92
         'headerTpl' => 'modules/Prospects/tpls/DetailViewHeader.tpl',
93 93
       ),
94 94
       'maxColumns' => '2',
95 95
       'widths' => 
96
-      array (
96
+      array(
97 97
         0 => 
98
-        array (
98
+        array(
99 99
           'label' => '10',
100 100
           'field' => '30',
101 101
         ),
102 102
         1 => 
103
-        array (
103
+        array(
104 104
           'label' => '10',
105 105
           'field' => '30',
106 106
         ),
107 107
       ),
108 108
       'useTabs' => true,
109 109
       'tabDefs' => 
110
-      array (
110
+      array(
111 111
         'LBL_PROSPECT_INFORMATION' => 
112
-        array (
112
+        array(
113 113
           'newTab' => true,
114 114
           'panelDefault' => 'expanded',
115 115
         ),
116 116
         'LBL_MORE_INFORMATION' => 
117
-        array (
117
+        array(
118 118
           'newTab' => true,
119 119
           'panelDefault' => 'expanded',
120 120
         ),
121 121
         'LBL_PANEL_ASSIGNMENT' => 
122
-        array (
122
+        array(
123 123
           'newTab' => true,
124 124
           'panelDefault' => 'expanded',
125 125
         ),
126 126
       ),
127 127
     ),
128 128
     'panels' => 
129
-    array (
129
+    array(
130 130
       'lbl_prospect_information' => 
131
-      array (
131
+      array(
132 132
         0 => 
133
-        array (
133
+        array(
134 134
           0 => 
135
-          array (
135
+          array(
136 136
             'name' => 'full_name',
137 137
           ),
138 138
         ),
139 139
         1 => 
140
-        array (
140
+        array(
141 141
           0 => 'title',
142 142
           1 => 
143
-          array (
143
+          array(
144 144
             'name' => 'phone_work',
145 145
             'label' => 'LBL_OFFICE_PHONE',
146 146
           ),
147 147
         ),
148 148
         2 => 
149
-        array (
149
+        array(
150 150
           0 => 'department',
151 151
           1 => 'phone_mobile',
152 152
         ),
153 153
         3 => 
154
-        array (
154
+        array(
155 155
           0 => 
156
-          array (
156
+          array(
157 157
             'name' => 'account_name',
158 158
           ),
159 159
           1 => 'phone_fax',
160 160
         ),
161 161
         4 => 
162
-        array (
162
+        array(
163 163
           0 => 
164
-          array (
164
+          array(
165 165
             'name' => 'primary_address_street',
166 166
             'label' => 'LBL_PRIMARY_ADDRESS',
167 167
             'type' => 'address',
168 168
             'displayParams' => 
169
-            array (
169
+            array(
170 170
               'key' => 'primary',
171 171
             ),
172 172
           ),
173 173
           1 => 
174
-          array (
174
+          array(
175 175
             'name' => 'alt_address_street',
176 176
             'label' => 'LBL_ALTERNATE_ADDRESS',
177 177
             'type' => 'address',
178 178
             'displayParams' => 
179
-            array (
179
+            array(
180 180
               'key' => 'alt',
181 181
             ),
182 182
           ),
183 183
         ),
184 184
         5 => 
185
-        array (
185
+        array(
186 186
           0 => 'email1',
187 187
         ),
188 188
         6 => 
189
-        array (
189
+        array(
190 190
           0 => 'description',
191 191
         ),
192 192
         7 => 
193
-        array (
193
+        array(
194 194
           0 => 'assigned_user_name',
195 195
         ),
196 196
       ),
197 197
       'LBL_MORE_INFORMATION' => 
198
-      array (
198
+      array(
199 199
         0 => 
200
-        array (
200
+        array(
201 201
           0 => 'email_opt_out',
202 202
           1 => 'do_not_call',
203 203
         ),
204 204
       ),
205 205
       'LBL_PANEL_ASSIGNMENT' => 
206
-      array (
206
+      array(
207 207
         0 => 
208
-        array (
208
+        array(
209 209
           0 => 
210
-          array (
210
+          array(
211 211
             'name' => 'modified_by_name',
212 212
             'customCode' => '{$fields.date_modified.value} {$APP.LBL_BY} {$fields.modified_by_name.value}&nbsp;',
213 213
             'label' => 'LBL_DATE_MODIFIED',
214 214
           ),
215 215
           1 =>
216
-          array (
216
+          array(
217 217
             'name' => 'created_by_name',
218 218
             'customCode' => '{$fields.date_entered.value} {$APP.LBL_BY} {$fields.created_by_name.value}&nbsp;',
219 219
             'label' => 'LBL_DATE_ENTERED',
Please login to merge, or discard this patch.
modules/Prospects/metadata/quickcreatedefs.php 1 patch
Spacing   +34 added lines, -34 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
2
+if (!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
3 3
 /*********************************************************************************
4 4
  * SugarCRM Community Edition is a customer relationship management program developed by
5 5
  * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc.
@@ -45,116 +45,116 @@  discard block
 block discarded – undo
45 45
  * Contributor(s): ______________________________________..
46 46
  ********************************************************************************/
47 47
 
48
-$viewdefs = array (
48
+$viewdefs = array(
49 49
   'Prospects' => 
50
-  array (
50
+  array(
51 51
     'QuickCreate' => 
52
-    array (
52
+    array(
53 53
       'templateMeta' => 
54
-      array (
54
+      array(
55 55
         'maxColumns' => '2',
56 56
         'widths' => 
57
-        array (
57
+        array(
58 58
           0 => 
59
-          array (
59
+          array(
60 60
             'label' => '10',
61 61
             'field' => '30',
62 62
           ),
63 63
           1 => 
64
-          array (
64
+          array(
65 65
             'label' => '10',
66 66
             'field' => '30',
67 67
           ),
68 68
         ),
69 69
       ),
70 70
       'panels' => 
71
-      array (
71
+      array(
72 72
         'LBL_PROSPECT_INFORMATION' => 
73
-        array (
73
+        array(
74 74
           0 => 
75
-          array (
75
+          array(
76 76
             0 => 
77
-            array (
77
+            array(
78 78
               'name' => 'first_name',
79 79
             ),
80 80
             1 => 
81
-            array (
81
+            array(
82 82
               'name' => 'phone_work',
83 83
             ),
84 84
           ),
85 85
           1 => 
86
-          array (
86
+          array(
87 87
             0 => 
88
-            array (
88
+            array(
89 89
               'name' => 'last_name',
90 90
               'displayParams'=>array('required'=>true)
91 91
             ),
92 92
             1 => 
93
-            array (
93
+            array(
94 94
               'name' => 'phone_mobile',
95 95
             ),
96 96
           ),
97 97
           2 => 
98
-          array (
98
+          array(
99 99
             0 => 
100
-            array (
100
+            array(
101 101
               'name' => 'account_name',
102 102
             ),
103 103
             1 => 
104
-            array (
104
+            array(
105 105
               'name' => 'phone_fax',
106 106
             ),
107 107
           ),
108 108
           3 => 
109
-          array (
109
+          array(
110 110
             0 => 
111
-            array (
111
+            array(
112 112
               'name' => 'title',
113 113
             ),
114 114
             1 => 
115
-            array (
115
+            array(
116 116
               'name' => 'department',
117 117
             ),
118 118
           ),
119 119
           4 => 
120
-          array (
120
+          array(
121 121
             0 => 
122
-            array (
122
+            array(
123 123
               'name' => 'team_name',
124 124
             ),
125 125
             1 => 
126
-            array (
126
+            array(
127 127
               'name' => 'do_not_call',
128 128
             ),
129 129
           ),
130 130
           5 => 
131
-          array (
131
+          array(
132 132
             0 => 
133
-            array (
133
+            array(
134 134
               'name' => 'assigned_user_name',
135 135
             ),
136 136
           ),
137 137
         ),
138 138
         'lbl_email_addresses' => 
139
-        array (
139
+        array(
140 140
           0 => 
141
-          array (
141
+          array(
142 142
             0 => 
143
-            array (
143
+            array(
144 144
               'name' => 'email1',
145 145
             ),
146 146
           ),
147 147
         ),
148 148
         'LBL_ADDRESS_INFORMATION' => 
149
-        array (
149
+        array(
150 150
           0 => 
151
-          array (
151
+          array(
152 152
             0 => 
153
-            array (
153
+            array(
154 154
               'name' => 'primary_address_street',
155 155
             ),
156 156
             1 => 
157
-            array (
157
+            array(
158 158
               'name' => 'alt_address_street',
159 159
             ),
160 160
           ),
Please login to merge, or discard this patch.
modules/Documents/GetLatestRevision.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
2
+if (!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
3 3
 /*********************************************************************************
4 4
  * SugarCRM Community Edition is a customer relationship management program developed by
5 5
  * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc.
@@ -47,8 +47,8 @@  discard block
 block discarded – undo
47 47
 
48 48
 	$document = new Document();
49 49
 	$document->retrieve($_REQUEST['record']);
50
-	if (!empty($document->document_revision_id) && !empty($_REQUEST['get_latest_for_id']))  {
51
-		$query="update linked_documents set document_revision_id='{$document->document_revision_id}', date_modified='".TimeDate::getInstance()->nowDb()."' where id ='{$_REQUEST['get_latest_for_id']}' ";
50
+	if (!empty($document->document_revision_id) && !empty($_REQUEST['get_latest_for_id'])) {
51
+		$query = "update linked_documents set document_revision_id='{$document->document_revision_id}', date_modified='".TimeDate::getInstance()->nowDb()."' where id ='{$_REQUEST['get_latest_for_id']}' ";
52 52
 		$document->db->query($query);
53 53
 	}	
54 54
 }
Please login to merge, or discard this patch.
modules/Documents/DocumentExternalApiDropDown.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-if(!defined('sugarEntry') || !sugarEntry)
2
+if (!defined('sugarEntry') || !sugarEntry)
3 3
 	die('Not A Valid Entry Point');
4 4
 /*********************************************************************************
5 5
  * SugarCRM Community Edition is a customer relationship management program developed by
@@ -44,8 +44,8 @@  discard block
 block discarded – undo
44 44
 
45 45
     $apiList = ExternalAPIFactory::getModuleDropDown('Documents');
46 46
 
47
-    $apiList = array_merge(array('Sugar'=>$GLOBALS['app_list_strings']['eapm_list']['Sugar']),$apiList);
48
-    if(!empty($value) && empty($apiList[$value])){
47
+    $apiList = array_merge(array('Sugar'=>$GLOBALS['app_list_strings']['eapm_list']['Sugar']), $apiList);
48
+    if (!empty($value) && empty($apiList[$value])) {
49 49
         $apiList[$value] = $value;
50 50
     }
51 51
     return $apiList;
Please login to merge, or discard this patch.
modules/Documents/metadata/editviewdefs.php 1 patch
Spacing   +31 added lines, -31 removed lines patch added patch discarded remove patch
@@ -1,29 +1,29 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 $viewdefs ['Documents'] = 
3
-array (
3
+array(
4 4
   'EditView' => 
5
-  array (
5
+  array(
6 6
     'templateMeta' => 
7
-    array (
7
+    array(
8 8
       'form' => 
9
-      array (
9
+      array(
10 10
         'enctype' => 'multipart/form-data',
11 11
         'hidden' => 
12
-        array (
12
+        array(
13 13
           0 => '<input type="hidden" name="old_id" value="{$fields.document_revision_id.value}">',
14 14
           1 => '<input type="hidden" name="contract_id" value="{$smarty.request.contract_id}">',
15 15
         ),
16 16
       ),
17 17
       'maxColumns' => '2',
18 18
       'widths' => 
19
-      array (
19
+      array(
20 20
         0 => 
21
-        array (
21
+        array(
22 22
           'label' => '10',
23 23
           'field' => '30',
24 24
         ),
25 25
         1 => 
26
-        array (
26
+        array(
27 27
           'label' => '10',
28 28
           'field' => '30',
29 29
         ),
@@ -33,93 +33,93 @@  discard block
 block discarded – undo
33 33
 {sugar_getscript file="modules/Documents/documents.js"}',
34 34
       'useTabs' => false,
35 35
       'tabDefs' => 
36
-      array (
36
+      array(
37 37
         'LBL_DOCUMENT_INFORMATION' => 
38
-        array (
38
+        array(
39 39
           'newTab' => false,
40 40
           'panelDefault' => 'expanded',
41 41
         ),
42 42
       ),
43 43
     ),
44 44
     'panels' => 
45
-    array (
45
+    array(
46 46
       'lbl_document_information' => 
47
-      array (
47
+      array(
48 48
         0 => 
49
-        array (
49
+        array(
50 50
           0 => 
51
-          array (
51
+          array(
52 52
             'name' => 'filename',
53 53
             'displayParams' => 
54
-            array (
54
+            array(
55 55
               'onchangeSetFileNameTo' => 'document_name',
56 56
             ),
57 57
           ),
58 58
           1 => 
59
-          array (
59
+          array(
60 60
             'name' => 'status_id',
61 61
             'label' => 'LBL_DOC_STATUS',
62 62
           ),
63 63
         ),
64 64
         1 => 
65
-        array (
65
+        array(
66 66
           0 => 'document_name',
67 67
           1 => 
68
-          array (
68
+          array(
69 69
             'name' => 'revision',
70 70
             'customCode' => '<input name="revision" type="text" value="{$fields.revision.value}" {$DISABLED}>',
71 71
           ),
72 72
         ),
73 73
         2 => 
74
-        array (
74
+        array(
75 75
           0 => 
76
-          array (
76
+          array(
77 77
             'name' => 'template_type',
78 78
             'label' => 'LBL_DET_TEMPLATE_TYPE',
79 79
           ),
80 80
           1 => 
81
-          array (
81
+          array(
82 82
             'name' => 'is_template',
83 83
             'label' => 'LBL_DET_IS_TEMPLATE',
84 84
           ),
85 85
         ),
86 86
         3 => 
87
-        array (
87
+        array(
88 88
           0 => 
89
-          array (
89
+          array(
90 90
             'name' => 'active_date',
91 91
           ),
92 92
           1 => 'exp_date',
93 93
         ),
94 94
         4 => 
95
-        array (
95
+        array(
96 96
           0 => 'category_id',
97 97
           1 => 'subcategory_id',
98 98
         ),
99 99
         5 => 
100
-        array (
100
+        array(
101 101
           0 => 
102
-          array (
102
+          array(
103 103
             'name' => 'description',
104 104
           ),
105 105
         ),
106 106
         6 => 
107
-        array (
107
+        array(
108 108
           0 => 
109
-          array (
109
+          array(
110 110
             'name' => 'related_doc_name',
111 111
             'customCode' => '<input name="related_document_name" type="text" size="30" maxlength="255" value="{$RELATED_DOCUMENT_NAME}" readonly><input name="related_doc_id" type="hidden" value="{$fields.related_doc_id.value}"/>&nbsp;<input title="{$APP.LBL_SELECT_BUTTON_TITLE}" type="{$RELATED_DOCUMENT_BUTTON_AVAILABILITY}" class="button" value="{$APP.LBL_SELECT_BUTTON_LABEL}" name="btn2" onclick=\'open_popup("Documents", 600, 400, "", true, false, {$encoded_document_popup_request_data}, "single", true);\'/>',
112 112
           ),
113 113
           1 => 
114
-          array (
114
+          array(
115 115
             'name' => 'related_doc_rev_number',
116 116
             'customCode' => '<select name="related_doc_rev_id" id="related_doc_rev_id" {$RELATED_DOCUMENT_REVISION_DISABLED}>{$RELATED_DOCUMENT_REVISION_OPTIONS}</select>',
117 117
           ),
118 118
         ),
119 119
         7 => 
120
-        array (
120
+        array(
121 121
           0 => 
122
-          array (
122
+          array(
123 123
             'name' => 'assigned_user_name',
124 124
             'label' => 'LBL_ASSIGNED_TO_NAME',
125 125
           ),
Please login to merge, or discard this patch.
modules/Documents/metadata/popupdefs.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,16 +1,16 @@
 block discarded – undo
1 1
 <?php
2
-if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
3
-$popupMeta = array (
2
+if (!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
3
+$popupMeta = array(
4 4
     'moduleMain' => 'Documents',
5 5
     'varName' => 'DOCUMENTS',
6 6
     'orderBy' => 'name',
7
-    'whereClauses' => array (
7
+    'whereClauses' => array(
8 8
     ),
9
-    'searchInputs' => array (
9
+    'searchInputs' => array(
10 10
     ),
11
-    'searchdefs' => array (
11
+    'searchdefs' => array(
12 12
     ),
13
-    'listviewdefs' => array (
13
+    'listviewdefs' => array(
14 14
     ),
15 15
 );
16 16
 ?>
17 17
\ No newline at end of file
Please login to merge, or discard this patch.
modules/Documents/metadata/searchdefs.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -1,23 +1,23 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 $searchdefs ['Documents'] = 
3
-array (
3
+array(
4 4
   'layout' => 
5
-  array (
5
+  array(
6 6
     'basic_search' => 
7
-    array (
7
+    array(
8 8
       0 => 'document_name',
9
-      1 => array ('name' => 'favorites_only','label' => 'LBL_FAVORITES_FILTER','type' => 'bool',),
9
+      1 => array('name' => 'favorites_only', 'label' => 'LBL_FAVORITES_FILTER', 'type' => 'bool',),
10 10
     ),
11 11
     'advanced_search' => 
12
-    array (
12
+    array(
13 13
       'document_name' => 
14
-      array (
14
+      array(
15 15
         'name' => 'document_name',
16 16
         'default' => true,
17 17
         'width' => '10%',
18 18
       ),
19 19
       'status' => 
20
-      array (
20
+      array(
21 21
         'type' => 'varchar',
22 22
         'label' => 'LBL_DOC_STATUS',
23 23
         'width' => '10%',
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
         'name' => 'status',
26 26
       ),
27 27
       'template_type' => 
28
-      array (
28
+      array(
29 29
         'type' => 'enum',
30 30
         'label' => 'LBL_TEMPLATE_TYPE',
31 31
         'width' => '10%',
@@ -33,27 +33,27 @@  discard block
 block discarded – undo
33 33
         'name' => 'template_type',
34 34
       ),
35 35
       'category_id' => 
36
-      array (
36
+      array(
37 37
         'name' => 'category_id',
38 38
         'default' => true,
39 39
         'width' => '10%',
40 40
       ),
41 41
       'subcategory_id' => 
42
-      array (
42
+      array(
43 43
         'name' => 'subcategory_id',
44 44
         'default' => true,
45 45
         'width' => '10%',
46 46
       ),
47 47
       'assigned_user_id' => 
48
-      array (
48
+      array(
49 49
         'name' => 'assigned_user_id',
50 50
         'type' => 'enum',
51 51
         'label' => 'LBL_ASSIGNED_TO',
52 52
         'function' => 
53
-        array (
53
+        array(
54 54
           'name' => 'get_user_array',
55 55
           'params' => 
56
-          array (
56
+          array(
57 57
             0 => false,
58 58
           ),
59 59
         ),
@@ -61,13 +61,13 @@  discard block
 block discarded – undo
61 61
         'width' => '10%',
62 62
       ),
63 63
       'active_date' => 
64
-      array (
64
+      array(
65 65
         'name' => 'active_date',
66 66
         'default' => true,
67 67
         'width' => '10%',
68 68
       ),
69 69
       'exp_date' => 
70
-      array (
70
+      array(
71 71
         'name' => 'exp_date',
72 72
         'default' => true,
73 73
         'width' => '10%',
@@ -75,11 +75,11 @@  discard block
 block discarded – undo
75 75
     ),
76 76
   ),
77 77
   'templateMeta' => 
78
-  array (
78
+  array(
79 79
     'maxColumns' => '3',
80 80
     'maxColumnsBasic' => '4',
81 81
     'widths' => 
82
-    array (
82
+    array(
83 83
       'label' => '10',
84 84
       'field' => '30',
85 85
     ),
Please login to merge, or discard this patch.
modules/Documents/metadata/SearchFields.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -2,79 +2,79 @@  discard block
 block discarded – undo
2 2
 // created: 2015-02-17 15:14:28
3 3
 global $current_user;
4 4
 $module_name = "Documents";
5
-$searchFields['Documents'] = array (
5
+$searchFields['Documents'] = array(
6 6
   'document_name' => 
7
-  array (
7
+  array(
8 8
     'query_type' => 'default',
9 9
   ),
10 10
   'category_id' => 
11
-  array (
11
+  array(
12 12
     'query_type' => 'default',
13 13
     'options' => 'document_category_dom',
14 14
     'template_var' => 'CATEGORY_OPTIONS',
15 15
   ),
16 16
   'subcategory_id' => 
17
-  array (
17
+  array(
18 18
     'query_type' => 'default',
19 19
     'options' => 'document_subcategory_dom',
20 20
     'template_var' => 'SUBCATEGORY_OPTIONS',
21 21
   ),
22 22
   'active_date' => 
23
-  array (
23
+  array(
24 24
     'query_type' => 'default',
25 25
   ),
26 26
   'exp_date' => 
27
-  array (
27
+  array(
28 28
     'query_type' => 'default',
29 29
   ),
30 30
   'assigned_user_id' => 
31
-  array (
31
+  array(
32 32
     'query_type' => 'default',
33 33
   ),
34 34
   'filename' => 
35
-  array (
35
+  array(
36 36
     'query_type' => 'format',
37 37
     'operator' => 'subquery',
38 38
     'subquery' => 'SELECT document_revisions.id FROM document_revisions
39 39
 			           WHERE document_revisions.deleted=0
40 40
 				   AND document_revisions.filename LIKE \'{0}\'',
41 41
     'db_field' => 
42
-    array (
42
+    array(
43 43
       0 => 'document_revision_id',
44 44
     ),
45 45
   ),
46 46
   'range_date_entered' => 
47
-  array (
47
+  array(
48 48
     'query_type' => 'default',
49 49
     'enable_range_search' => true,
50 50
     'is_date_field' => true,
51 51
   ),
52 52
   'start_range_date_entered' => 
53
-  array (
53
+  array(
54 54
     'query_type' => 'default',
55 55
     'enable_range_search' => true,
56 56
     'is_date_field' => true,
57 57
   ),
58 58
   'end_range_date_entered' => 
59
-  array (
59
+  array(
60 60
     'query_type' => 'default',
61 61
     'enable_range_search' => true,
62 62
     'is_date_field' => true,
63 63
   ),
64 64
   'range_date_modified' => 
65
-  array (
65
+  array(
66 66
     'query_type' => 'default',
67 67
     'enable_range_search' => true,
68 68
     'is_date_field' => true,
69 69
   ),
70 70
   'start_range_date_modified' => 
71
-  array (
71
+  array(
72 72
     'query_type' => 'default',
73 73
     'enable_range_search' => true,
74 74
     'is_date_field' => true,
75 75
   ),
76 76
   'end_range_date_modified' => 
77
-  array (
77
+  array(
78 78
     'query_type' => 'default',
79 79
     'enable_range_search' => true,
80 80
     'is_date_field' => true,
@@ -85,6 +85,6 @@  discard block
 block discarded – undo
85 85
         'subquery' => 'SELECT favorites.parent_id FROM favorites
86 86
 			                    WHERE favorites.deleted = 0
87 87
 			                        and favorites.parent_type = "'.$module_name.'"
88
-			                        and favorites.assigned_user_id = "' .$current_user->id . '") OR NOT ({0}',
88
+			                        and favorites.assigned_user_id = "' .$current_user->id.'") OR NOT ({0}',
89 89
         'db_field'=>array('id')),
90 90
 );
91 91
\ No newline at end of file
Please login to merge, or discard this patch.