Passed
Push — scrutinizer-code-quality ( 27193c...09f5a1 )
by Adam
51:28
created
modules/Contacts/metadata/popupdefsEmail.php 3 patches
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -42,21 +42,21 @@
 block discarded – undo
42 42
 global $mod_strings;
43 43
 
44 44
 $popupMeta = array('moduleMain' => 'Contact',
45
-						'varName' => 'CONTACT',
46
-						'orderBy' => 'contacts.first_name, contacts.last_name',
47
-						'whereClauses' => 
48
-							array('first_name' => 'contacts.first_name', 
49
-									'last_name' => 'contacts.last_name',
50
-									'account_name' => 'accounts.name',
51
-									'account_id' => 'accounts.id'),
52
-						'searchInputs' =>
53
-							array('first_name', 'last_name', 'account_name'),
54
-						'create' =>
55
-							array('formBase' => 'ContactFormBase.php',
56
-									'formBaseClass' => 'ContactFormBase',
57
-									'getFormBodyParams' => array('','','ContactSave'),
58
-									'createButton' => 'LNK_NEW_CONTACT'
59
-								  ),
60
-						'templateForm' => 'modules/Contacts/Email_picker.html',
61
-						);
45
+                        'varName' => 'CONTACT',
46
+                        'orderBy' => 'contacts.first_name, contacts.last_name',
47
+                        'whereClauses' => 
48
+                            array('first_name' => 'contacts.first_name', 
49
+                                    'last_name' => 'contacts.last_name',
50
+                                    'account_name' => 'accounts.name',
51
+                                    'account_id' => 'accounts.id'),
52
+                        'searchInputs' =>
53
+                            array('first_name', 'last_name', 'account_name'),
54
+                        'create' =>
55
+                            array('formBase' => 'ContactFormBase.php',
56
+                                    'formBaseClass' => 'ContactFormBase',
57
+                                    'getFormBodyParams' => array('','','ContactSave'),
58
+                                    'createButton' => 'LNK_NEW_CONTACT'
59
+                                    ),
60
+                        'templateForm' => 'modules/Contacts/Email_picker.html',
61
+                        );
62 62
 ?>
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 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.
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
 						'create' =>
55 55
 							array('formBase' => 'ContactFormBase.php',
56 56
 									'formBaseClass' => 'ContactFormBase',
57
-									'getFormBodyParams' => array('','','ContactSave'),
57
+									'getFormBodyParams' => array('', '', 'ContactSave'),
58 58
 									'createButton' => 'LNK_NEW_CONTACT'
59 59
 								  ),
60 60
 						'templateForm' => 'modules/Contacts/Email_picker.html',
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,7 @@
 block discarded – undo
1 1
 <?php
2
-if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
2
+if(!defined('sugarEntry') || !sugarEntry) {
3
+    die('Not A Valid Entry Point');
4
+}
3 5
 /*********************************************************************************
4 6
  * SugarCRM Community Edition is a customer relationship management program developed by
5 7
  * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc.
Please login to merge, or discard this patch.
modules/Contacts/metadata/editviewdefs.php 2 patches
Indentation   +93 added lines, -93 removed lines patch added patch discarded remove patch
@@ -39,193 +39,193 @@
 block discarded – undo
39 39
 
40 40
 $viewdefs ['Contacts'] = 
41 41
 array (
42
-  'EditView' => 
43
-  array (
42
+    'EditView' => 
43
+    array (
44 44
     'templateMeta' => 
45 45
     array (
46
-      'form' => 
47
-      array (
46
+        'form' => 
47
+        array (
48 48
         'hidden' => 
49 49
         array (
50
-          0 => '<input type="hidden" name="opportunity_id" value="{$smarty.request.opportunity_id}">',
51
-          1 => '<input type="hidden" name="case_id" value="{$smarty.request.case_id}">',
52
-          2 => '<input type="hidden" name="bug_id" value="{$smarty.request.bug_id}">',
53
-          3 => '<input type="hidden" name="email_id" value="{$smarty.request.email_id}">',
54
-          4 => '<input type="hidden" name="inbound_email_id" value="{$smarty.request.inbound_email_id}">',
50
+            0 => '<input type="hidden" name="opportunity_id" value="{$smarty.request.opportunity_id}">',
51
+            1 => '<input type="hidden" name="case_id" value="{$smarty.request.case_id}">',
52
+            2 => '<input type="hidden" name="bug_id" value="{$smarty.request.bug_id}">',
53
+            3 => '<input type="hidden" name="email_id" value="{$smarty.request.email_id}">',
54
+            4 => '<input type="hidden" name="inbound_email_id" value="{$smarty.request.inbound_email_id}">',
55
+        ),
55 56
         ),
56
-      ),
57
-      'maxColumns' => '2',
58
-      'widths' => 
59
-      array (
57
+        'maxColumns' => '2',
58
+        'widths' => 
59
+        array (
60 60
         0 => 
61 61
         array (
62
-          'label' => '10',
63
-          'field' => '30',
62
+            'label' => '10',
63
+            'field' => '30',
64 64
         ),
65 65
         1 => 
66 66
         array (
67
-          'label' => '10',
68
-          'field' => '30',
67
+            'label' => '10',
68
+            'field' => '30',
69
+        ),
69 70
         ),
70
-      ),
71
-      'useTabs' => false,
72
-      'tabDefs' => 
73
-      array (
71
+        'useTabs' => false,
72
+        'tabDefs' => 
73
+        array (
74 74
         'LBL_CONTACT_INFORMATION' => 
75 75
         array (
76
-          'newTab' => false,
77
-          'panelDefault' => 'expanded',
76
+            'newTab' => false,
77
+            'panelDefault' => 'expanded',
78 78
         ),
79 79
         'LBL_PANEL_ADVANCED' => 
80 80
         array (
81
-          'newTab' => false,
82
-          'panelDefault' => 'expanded',
81
+            'newTab' => false,
82
+            'panelDefault' => 'expanded',
83
+        ),
83 84
         ),
84
-      ),
85 85
     ),
86 86
     'panels' => 
87 87
     array (
88
-      'lbl_contact_information' => 
89
-      array (
88
+        'lbl_contact_information' => 
89
+        array (
90 90
         0 => 
91 91
         array (
92
-          0 => 
93
-          array (
92
+            0 => 
93
+            array (
94 94
             'name' => 'first_name',
95 95
             'customCode' => '{html_options name="salutation" id="salutation" options=$fields.salutation.options selected=$fields.salutation.value}&nbsp;<input name="first_name"  id="first_name" size="25" maxlength="25" type="text" value="{$fields.first_name.value}">',
96
-          ),
97
-          1 => 
98
-          array (
96
+            ),
97
+            1 => 
98
+            array (
99 99
             'name' => 'last_name',
100
-          ),
100
+            ),
101 101
         ),
102 102
         1 => 
103 103
         array (
104
-          0 => 
105
-          array (
104
+            0 => 
105
+            array (
106 106
             'name' => 'phone_work',
107 107
             'comment' => 'Work phone number of the contact',
108 108
             'label' => 'LBL_OFFICE_PHONE',
109
-          ),
110
-          1 => 
111
-          array (
109
+            ),
110
+            1 => 
111
+            array (
112 112
             'name' => 'phone_mobile',
113 113
             'comment' => 'Mobile phone number of the contact',
114 114
             'label' => 'LBL_MOBILE_PHONE',
115
-          ),
115
+            ),
116 116
         ),
117 117
         2 => 
118 118
         array (
119
-          0 => 
120
-          array (
119
+            0 => 
120
+            array (
121 121
             'name' => 'title',
122 122
             'comment' => 'The title of the contact',
123 123
             'label' => 'LBL_TITLE',
124
-          ),
125
-          1 => 'department',
124
+            ),
125
+            1 => 'department',
126 126
         ),
127 127
         3 => 
128 128
         array (
129
-          0 => 
130
-          array (
129
+            0 => 
130
+            array (
131 131
             'name' => 'account_name',
132 132
             'displayParams' => 
133 133
             array (
134
-              'key' => 'billing',
135
-              'copy' => 'primary',
136
-              'billingKey' => 'primary',
137
-              'additionalFields' => 
138
-              array (
134
+                'key' => 'billing',
135
+                'copy' => 'primary',
136
+                'billingKey' => 'primary',
137
+                'additionalFields' => 
138
+                array (
139 139
                 'phone_office' => 'phone_work',
140
-              ),
140
+                ),
141 141
             ),
142
-          ),
143
-          1 => 
144
-          array (
142
+            ),
143
+            1 => 
144
+            array (
145 145
             'name' => 'phone_fax',
146 146
             'comment' => 'Contact fax number',
147 147
             'label' => 'LBL_FAX_PHONE',
148
-          ),
148
+            ),
149 149
         ),
150 150
         4 => 
151 151
         array (
152
-          0 => 
153
-          array (
152
+            0 => 
153
+            array (
154 154
             'name' => 'email1',
155 155
             'studio' => 'false',
156 156
             'label' => 'LBL_EMAIL_ADDRESS',
157
-          ),
157
+            ),
158 158
         ),
159 159
         5 => 
160 160
         array (
161
-          0 => 
162
-          array (
161
+            0 => 
162
+            array (
163 163
             'name' => 'primary_address_street',
164 164
             'hideLabel' => true,
165 165
             'type' => 'address',
166 166
             'displayParams' => 
167 167
             array (
168
-              'key' => 'primary',
169
-              'rows' => 2,
170
-              'cols' => 30,
171
-              'maxlength' => 150,
168
+                'key' => 'primary',
169
+                'rows' => 2,
170
+                'cols' => 30,
171
+                'maxlength' => 150,
172
+            ),
172 173
             ),
173
-          ),
174
-          1 => 
175
-          array (
174
+            1 => 
175
+            array (
176 176
             'name' => 'alt_address_street',
177 177
             'hideLabel' => true,
178 178
             'type' => 'address',
179 179
             'displayParams' => 
180 180
             array (
181
-              'key' => 'alt',
182
-              'copy' => 'primary',
183
-              'rows' => 2,
184
-              'cols' => 30,
185
-              'maxlength' => 150,
181
+                'key' => 'alt',
182
+                'copy' => 'primary',
183
+                'rows' => 2,
184
+                'cols' => 30,
185
+                'maxlength' => 150,
186
+            ),
186 187
             ),
187
-          ),
188 188
         ),
189 189
         6 => 
190 190
         array (
191
-          0 => 
192
-          array (
191
+            0 => 
192
+            array (
193 193
             'name' => 'description',
194 194
             'label' => 'LBL_DESCRIPTION',
195
-          ),
196
-          1 => '',
195
+            ),
196
+            1 => '',
197 197
         ),
198 198
         7 => 
199 199
         array (
200
-          0 => 
201
-          array (
200
+            0 => 
201
+            array (
202 202
             'name' => 'assigned_user_name',
203 203
             'label' => 'LBL_ASSIGNED_TO_NAME',
204
-          ),
204
+            ),
205
+        ),
205 206
         ),
206
-      ),
207
-      'LBL_PANEL_ADVANCED' => 
208
-      array (
207
+        'LBL_PANEL_ADVANCED' => 
208
+        array (
209 209
         0 => 
210 210
         array (
211
-          0 => 
212
-          array (
211
+            0 => 
212
+            array (
213 213
             'name' => 'lead_source',
214 214
             'comment' => 'How did the contact come about',
215 215
             'label' => 'LBL_LEAD_SOURCE',
216
-          ),
216
+            ),
217 217
         ),
218 218
         1 => 
219 219
         array (
220
-          0 => 
221
-          array (
220
+            0 => 
221
+            array (
222 222
             'name' => 'report_to_name',
223 223
             'label' => 'LBL_REPORTS_TO',
224
-          ),
225
-          1 => 'campaign_name',
224
+            ),
225
+            1 => 'campaign_name',
226 226
         ),
227
-      ),
227
+        ),
228
+    ),
228 229
     ),
229
-  ),
230 230
 );
231 231
 ?>
Please login to merge, or discard this patch.
Spacing   +42 added lines, -42 removed lines patch added patch discarded remove patch
@@ -38,15 +38,15 @@  discard block
 block discarded – undo
38 38
  ********************************************************************************/
39 39
 
40 40
 $viewdefs ['Contacts'] = 
41
-array (
41
+array(
42 42
   'EditView' => 
43
-  array (
43
+  array(
44 44
     'templateMeta' => 
45
-    array (
45
+    array(
46 46
       'form' => 
47
-      array (
47
+      array(
48 48
         'hidden' => 
49
-        array (
49
+        array(
50 50
           0 => '<input type="hidden" name="opportunity_id" value="{$smarty.request.opportunity_id}">',
51 51
           1 => '<input type="hidden" name="case_id" value="{$smarty.request.case_id}">',
52 52
           2 => '<input type="hidden" name="bug_id" value="{$smarty.request.bug_id}">',
@@ -56,68 +56,68 @@  discard block
 block discarded – undo
56 56
       ),
57 57
       'maxColumns' => '2',
58 58
       'widths' => 
59
-      array (
59
+      array(
60 60
         0 => 
61
-        array (
61
+        array(
62 62
           'label' => '10',
63 63
           'field' => '30',
64 64
         ),
65 65
         1 => 
66
-        array (
66
+        array(
67 67
           'label' => '10',
68 68
           'field' => '30',
69 69
         ),
70 70
       ),
71 71
       'useTabs' => false,
72 72
       'tabDefs' => 
73
-      array (
73
+      array(
74 74
         'LBL_CONTACT_INFORMATION' => 
75
-        array (
75
+        array(
76 76
           'newTab' => false,
77 77
           'panelDefault' => 'expanded',
78 78
         ),
79 79
         'LBL_PANEL_ADVANCED' => 
80
-        array (
80
+        array(
81 81
           'newTab' => false,
82 82
           'panelDefault' => 'expanded',
83 83
         ),
84 84
       ),
85 85
     ),
86 86
     'panels' => 
87
-    array (
87
+    array(
88 88
       'lbl_contact_information' => 
89
-      array (
89
+      array(
90 90
         0 => 
91
-        array (
91
+        array(
92 92
           0 => 
93
-          array (
93
+          array(
94 94
             'name' => 'first_name',
95 95
             'customCode' => '{html_options name="salutation" id="salutation" options=$fields.salutation.options selected=$fields.salutation.value}&nbsp;<input name="first_name"  id="first_name" size="25" maxlength="25" type="text" value="{$fields.first_name.value}">',
96 96
           ),
97 97
           1 => 
98
-          array (
98
+          array(
99 99
             'name' => 'last_name',
100 100
           ),
101 101
         ),
102 102
         1 => 
103
-        array (
103
+        array(
104 104
           0 => 
105
-          array (
105
+          array(
106 106
             'name' => 'phone_work',
107 107
             'comment' => 'Work phone number of the contact',
108 108
             'label' => 'LBL_OFFICE_PHONE',
109 109
           ),
110 110
           1 => 
111
-          array (
111
+          array(
112 112
             'name' => 'phone_mobile',
113 113
             'comment' => 'Mobile phone number of the contact',
114 114
             'label' => 'LBL_MOBILE_PHONE',
115 115
           ),
116 116
         ),
117 117
         2 => 
118
-        array (
118
+        array(
119 119
           0 => 
120
-          array (
120
+          array(
121 121
             'name' => 'title',
122 122
             'comment' => 'The title of the contact',
123 123
             'label' => 'LBL_TITLE',
@@ -125,46 +125,46 @@  discard block
 block discarded – undo
125 125
           1 => 'department',
126 126
         ),
127 127
         3 => 
128
-        array (
128
+        array(
129 129
           0 => 
130
-          array (
130
+          array(
131 131
             'name' => 'account_name',
132 132
             'displayParams' => 
133
-            array (
133
+            array(
134 134
               'key' => 'billing',
135 135
               'copy' => 'primary',
136 136
               'billingKey' => 'primary',
137 137
               'additionalFields' => 
138
-              array (
138
+              array(
139 139
                 'phone_office' => 'phone_work',
140 140
               ),
141 141
             ),
142 142
           ),
143 143
           1 => 
144
-          array (
144
+          array(
145 145
             'name' => 'phone_fax',
146 146
             'comment' => 'Contact fax number',
147 147
             'label' => 'LBL_FAX_PHONE',
148 148
           ),
149 149
         ),
150 150
         4 => 
151
-        array (
151
+        array(
152 152
           0 => 
153
-          array (
153
+          array(
154 154
             'name' => 'email1',
155 155
             'studio' => 'false',
156 156
             'label' => 'LBL_EMAIL_ADDRESS',
157 157
           ),
158 158
         ),
159 159
         5 => 
160
-        array (
160
+        array(
161 161
           0 => 
162
-          array (
162
+          array(
163 163
             'name' => 'primary_address_street',
164 164
             'hideLabel' => true,
165 165
             'type' => 'address',
166 166
             'displayParams' => 
167
-            array (
167
+            array(
168 168
               'key' => 'primary',
169 169
               'rows' => 2,
170 170
               'cols' => 30,
@@ -172,12 +172,12 @@  discard block
 block discarded – undo
172 172
             ),
173 173
           ),
174 174
           1 => 
175
-          array (
175
+          array(
176 176
             'name' => 'alt_address_street',
177 177
             'hideLabel' => true,
178 178
             'type' => 'address',
179 179
             'displayParams' => 
180
-            array (
180
+            array(
181 181
               'key' => 'alt',
182 182
               'copy' => 'primary',
183 183
               'rows' => 2,
@@ -187,38 +187,38 @@  discard block
 block discarded – undo
187 187
           ),
188 188
         ),
189 189
         6 => 
190
-        array (
190
+        array(
191 191
           0 => 
192
-          array (
192
+          array(
193 193
             'name' => 'description',
194 194
             'label' => 'LBL_DESCRIPTION',
195 195
           ),
196 196
           1 => '',
197 197
         ),
198 198
         7 => 
199
-        array (
199
+        array(
200 200
           0 => 
201
-          array (
201
+          array(
202 202
             'name' => 'assigned_user_name',
203 203
             'label' => 'LBL_ASSIGNED_TO_NAME',
204 204
           ),
205 205
         ),
206 206
       ),
207 207
       'LBL_PANEL_ADVANCED' => 
208
-      array (
208
+      array(
209 209
         0 => 
210
-        array (
210
+        array(
211 211
           0 => 
212
-          array (
212
+          array(
213 213
             'name' => 'lead_source',
214 214
             'comment' => 'How did the contact come about',
215 215
             'label' => 'LBL_LEAD_SOURCE',
216 216
           ),
217 217
         ),
218 218
         1 => 
219
-        array (
219
+        array(
220 220
           0 => 
221
-          array (
221
+          array(
222 222
             'name' => 'report_to_name',
223 223
             'label' => 'LBL_REPORTS_TO',
224 224
           ),
Please login to merge, or discard this patch.
modules/Contacts/metadata/popupdefs.php 3 patches
Indentation   +52 added lines, -52 removed lines patch added patch discarded remove patch
@@ -42,56 +42,56 @@
 block discarded – undo
42 42
 global $mod_strings;
43 43
 
44 44
 $popupMeta = array(
45
-	'moduleMain' => 'Contact',
46
-	'varName' => 'CONTACT',
47
-	'orderBy' => 'contacts.first_name, contacts.last_name',
48
-	'whereClauses' => 
49
-		array('first_name' => 'contacts.first_name', 
50
-				'last_name' => 'contacts.last_name',
51
-				'account_name' => 'accounts.name',
52
-				'account_id' => 'accounts.id'),
53
-	'searchInputs' =>
54
-		array('first_name', 'last_name', 'account_name', 'email'),
55
-	'create' =>
56
-		array('formBase' => 'ContactFormBase.php',
57
-				'formBaseClass' => 'ContactFormBase',
58
-				'getFormBodyParams' => array('','','ContactSave'),
59
-				'createButton' => 'LNK_NEW_CONTACT'
60
-			  ),
61
-	'listviewdefs' => array(
62
-		'NAME' => array(
63
-			'width' => '20%', 
64
-			'label' => 'LBL_LIST_NAME',
65
-  			'link' => true,
66
-	        'default' => true,
67
-  			'related_fields' => array('first_name', 'last_name', 'salutation', 'account_name', 'account_id')), 
68
-		'ACCOUNT_NAME' => array(
69
-			'width' => '25', 
70
-			'label' => 'LBL_LIST_ACCOUNT_NAME', 
71
-			'module' => 'Accounts',
72
-			'id' => 'ACCOUNT_ID',
73
-  			'default' => true,
74
-	        'sortable'=> true,
75
-	        'ACLTag' => 'ACCOUNT',
76
-	        'related_fields' => array('account_id')),
77
-  		'TITLE' => array(
78
-			'width' => '15%', 
79
-			'label' => 'LBL_LIST_TITLE',
80
-	        'default' => true), 
81
-  		'LEAD_SOURCE' => array(
82
-			'width' => '15%', 
83
-			'label' => 'LBL_LEAD_SOURCE',
84
-	        'default' => true), 
85
-		),
86
-	'searchdefs'   => array(
87
-	 	'first_name', 
88
-		'last_name', 
89
-		array('name' => 'account_name', 'type' => 'varchar',),
90
-		'title',
91
-		'lead_source',
92
-		'email',
93
-		array('name' => 'campaign_name', 'displayParams' => array('hideButtons'=>'true', 'size'=>30, 'class'=>'sqsEnabled sqsNoAutofill')),
94
-		array('name' => 'assigned_user_id', 'type' => 'enum', 'label' => 'LBL_ASSIGNED_TO', 'function' => array('name' => 'get_user_array', 'params' => array(false))),
95
-	  )
96
-	);
45
+    'moduleMain' => 'Contact',
46
+    'varName' => 'CONTACT',
47
+    'orderBy' => 'contacts.first_name, contacts.last_name',
48
+    'whereClauses' => 
49
+        array('first_name' => 'contacts.first_name', 
50
+                'last_name' => 'contacts.last_name',
51
+                'account_name' => 'accounts.name',
52
+                'account_id' => 'accounts.id'),
53
+    'searchInputs' =>
54
+        array('first_name', 'last_name', 'account_name', 'email'),
55
+    'create' =>
56
+        array('formBase' => 'ContactFormBase.php',
57
+                'formBaseClass' => 'ContactFormBase',
58
+                'getFormBodyParams' => array('','','ContactSave'),
59
+                'createButton' => 'LNK_NEW_CONTACT'
60
+                ),
61
+    'listviewdefs' => array(
62
+        'NAME' => array(
63
+            'width' => '20%', 
64
+            'label' => 'LBL_LIST_NAME',
65
+                'link' => true,
66
+            'default' => true,
67
+                'related_fields' => array('first_name', 'last_name', 'salutation', 'account_name', 'account_id')), 
68
+        'ACCOUNT_NAME' => array(
69
+            'width' => '25', 
70
+            'label' => 'LBL_LIST_ACCOUNT_NAME', 
71
+            'module' => 'Accounts',
72
+            'id' => 'ACCOUNT_ID',
73
+                'default' => true,
74
+            'sortable'=> true,
75
+            'ACLTag' => 'ACCOUNT',
76
+            'related_fields' => array('account_id')),
77
+            'TITLE' => array(
78
+            'width' => '15%', 
79
+            'label' => 'LBL_LIST_TITLE',
80
+            'default' => true), 
81
+            'LEAD_SOURCE' => array(
82
+            'width' => '15%', 
83
+            'label' => 'LBL_LEAD_SOURCE',
84
+            'default' => true), 
85
+        ),
86
+    'searchdefs'   => array(
87
+            'first_name', 
88
+        'last_name', 
89
+        array('name' => 'account_name', 'type' => 'varchar',),
90
+        'title',
91
+        'lead_source',
92
+        'email',
93
+        array('name' => 'campaign_name', 'displayParams' => array('hideButtons'=>'true', 'size'=>30, 'class'=>'sqsEnabled sqsNoAutofill')),
94
+        array('name' => 'assigned_user_id', 'type' => 'enum', 'label' => 'LBL_ASSIGNED_TO', 'function' => array('name' => 'get_user_array', 'params' => array(false))),
95
+        )
96
+    );
97 97
 ?>
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 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.
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 	'create' =>
56 56
 		array('formBase' => 'ContactFormBase.php',
57 57
 				'formBaseClass' => 'ContactFormBase',
58
-				'getFormBodyParams' => array('','','ContactSave'),
58
+				'getFormBodyParams' => array('', '', 'ContactSave'),
59 59
 				'createButton' => 'LNK_NEW_CONTACT'
60 60
 			  ),
61 61
 	'listviewdefs' => array(
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,7 @@
 block discarded – undo
1 1
 <?php
2
-if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
2
+if(!defined('sugarEntry') || !sugarEntry) {
3
+    die('Not A Valid Entry Point');
4
+}
3 5
 /*********************************************************************************
4 6
  * SugarCRM Community Edition is a customer relationship management program developed by
5 7
  * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc.
Please login to merge, or discard this patch.
modules/Contacts/metadata/searchdefs.php 2 patches
Indentation   +115 added lines, -115 removed lines patch added patch discarded remove patch
@@ -38,123 +38,123 @@
 block discarded – undo
38 38
  ********************************************************************************/
39 39
 
40 40
 $searchdefs['Contacts'] = array(
41
-  		  'templateMeta' => array(
42
-  		  					'maxColumns' => '3', 
43
-							'maxColumnsBasic' => '4',
41
+            'templateMeta' => array(
42
+                                'maxColumns' => '3', 
43
+                            'maxColumnsBasic' => '4',
44 44
                             'widths' => array('label' => '10', 'field' => '30'), 
45
-                           ),
46
-		  'layout' => array (
47
-		    'basic_search' => 
48
-		    array (
49
-		      array('name'=>'search_name','label' =>'LBL_NAME', 'type' => 'name'),
50
-		      array (
51
-		        'name' => 'current_user_only',
52
-		        'label' => 'LBL_CURRENT_USER_FILTER',
53
-		        'type' => 'bool',
54
-		      ),
45
+                            ),
46
+            'layout' => array (
47
+            'basic_search' => 
48
+            array (
49
+                array('name'=>'search_name','label' =>'LBL_NAME', 'type' => 'name'),
50
+                array (
51
+                'name' => 'current_user_only',
52
+                'label' => 'LBL_CURRENT_USER_FILTER',
53
+                'type' => 'bool',
54
+                ),
55 55
                 array ('name' => 'favorites_only','label' => 'LBL_FAVORITES_FILTER','type' => 'bool',),
56
-		    ),
57
-		    'advanced_search' => 
58
-		    array (
59
-		      'first_name' => 
60
-		      array (
61
-		        'name' => 'first_name',
62
-		        'default' => true,
63
-		        'width' => '10%',
64
-		      ),
65
-		      'email' => 
66
-		      array (
67
-		        'name' => 'email',
68
-		        'label' => 'LBL_ANY_EMAIL',
69
-		        'type' => 'name',
70
-		        'default' => true,
71
-		        'width' => '10%',
72
-		      ),
73
-		      'phone' => 
74
-		      array (
75
-		        'name' => 'phone',
76
-		        'label' => 'LBL_ANY_PHONE',
77
-		        'type' => 'name',
78
-		        'default' => true,
79
-		        'width' => '10%',
80
-		      ),
81
-		      'last_name' => 
82
-		      array (
83
-		        'name' => 'last_name',
84
-		        'default' => true,
85
-		        'width' => '10%',
86
-		      ),
87
-		      'address_street' => 
88
-		      array (
89
-		        'name' => 'address_street',
90
-		        'label' => 'LBL_ANY_ADDRESS',
91
-		        'type' => 'name',
92
-		        'default' => true,
93
-		        'width' => '10%',
94
-		      ),
95
-		      'address_city' => 
96
-		      array (
97
-		        'name' => 'address_city',
98
-		        'label' => 'LBL_CITY',
99
-		        'type' => 'name',
100
-		        'default' => true,
101
-		        'width' => '10%',
102
-		      ),
103
-		      'account_name' => 
104
-		      array (
105
-		        'name' => 'account_name',
106
-		        'default' => true,
107
-		        'width' => '10%',
108
-		      ),
109
-		      'address_state' => 
110
-		      array (
111
-		        'name' => 'address_state',
112
-		        'label' => 'LBL_STATE',
113
-		        'type' => 'name',
114
-		        'default' => true,
115
-		        'width' => '10%',
116
-		      ),
117
-		      'address_postalcode' => 
118
-		      array (
119
-		        'name' => 'address_postalcode',
120
-		        'label' => 'LBL_POSTAL_CODE',
121
-		        'type' => 'name',
122
-		        'default' => true,
123
-		        'width' => '10%',
124
-		      ),
125
-		      'assigned_user_id' => 
126
-		      array (
127
-		        'name' => 'assigned_user_id',
128
-		        'type' => 'enum',
129
-		        'label' => 'LBL_ASSIGNED_TO',
130
-		        'function' => 
131
-		        array (
132
-		          'name' => 'get_user_array',
133
-		          'params' => 
134
-		          array (
135
-		            0 => false,
136
-		          ),
137
-		        ),
138
-		        'default' => true,
139
-		        'width' => '10%',
140
-		      ),
141
-		      'primary_address_country' => 
142
-		      array (
143
-		        'name' => 'primary_address_country',
144
-		        'label' => 'LBL_COUNTRY',
145
-		        'type' => 'name',
146
-		        'options' => 'countries_dom',
147
-		        'default' => true,
148
-		        'width' => '10%',
149
-		      ),
150
-		      'lead_source' => 
151
-		      array (
152
-		        'name' => 'lead_source',
153
-		        'default' => true,
154
-		        'width' => '10%',
155
-		      ),
56
+            ),
57
+            'advanced_search' => 
58
+            array (
59
+                'first_name' => 
60
+                array (
61
+                'name' => 'first_name',
62
+                'default' => true,
63
+                'width' => '10%',
64
+                ),
65
+                'email' => 
66
+                array (
67
+                'name' => 'email',
68
+                'label' => 'LBL_ANY_EMAIL',
69
+                'type' => 'name',
70
+                'default' => true,
71
+                'width' => '10%',
72
+                ),
73
+                'phone' => 
74
+                array (
75
+                'name' => 'phone',
76
+                'label' => 'LBL_ANY_PHONE',
77
+                'type' => 'name',
78
+                'default' => true,
79
+                'width' => '10%',
80
+                ),
81
+                'last_name' => 
82
+                array (
83
+                'name' => 'last_name',
84
+                'default' => true,
85
+                'width' => '10%',
86
+                ),
87
+                'address_street' => 
88
+                array (
89
+                'name' => 'address_street',
90
+                'label' => 'LBL_ANY_ADDRESS',
91
+                'type' => 'name',
92
+                'default' => true,
93
+                'width' => '10%',
94
+                ),
95
+                'address_city' => 
96
+                array (
97
+                'name' => 'address_city',
98
+                'label' => 'LBL_CITY',
99
+                'type' => 'name',
100
+                'default' => true,
101
+                'width' => '10%',
102
+                ),
103
+                'account_name' => 
104
+                array (
105
+                'name' => 'account_name',
106
+                'default' => true,
107
+                'width' => '10%',
108
+                ),
109
+                'address_state' => 
110
+                array (
111
+                'name' => 'address_state',
112
+                'label' => 'LBL_STATE',
113
+                'type' => 'name',
114
+                'default' => true,
115
+                'width' => '10%',
116
+                ),
117
+                'address_postalcode' => 
118
+                array (
119
+                'name' => 'address_postalcode',
120
+                'label' => 'LBL_POSTAL_CODE',
121
+                'type' => 'name',
122
+                'default' => true,
123
+                'width' => '10%',
124
+                ),
125
+                'assigned_user_id' => 
126
+                array (
127
+                'name' => 'assigned_user_id',
128
+                'type' => 'enum',
129
+                'label' => 'LBL_ASSIGNED_TO',
130
+                'function' => 
131
+                array (
132
+                    'name' => 'get_user_array',
133
+                    'params' => 
134
+                    array (
135
+                    0 => false,
136
+                    ),
137
+                ),
138
+                'default' => true,
139
+                'width' => '10%',
140
+                ),
141
+                'primary_address_country' => 
142
+                array (
143
+                'name' => 'primary_address_country',
144
+                'label' => 'LBL_COUNTRY',
145
+                'type' => 'name',
146
+                'options' => 'countries_dom',
147
+                'default' => true,
148
+                'width' => '10%',
149
+                ),
150
+                'lead_source' => 
151
+                array (
152
+                'name' => 'lead_source',
153
+                'default' => true,
154
+                'width' => '10%',
155
+                ),
156 156
 		      
157
-		    ),
158
-		  )
157
+            ),
158
+            )
159 159
 );
160 160
 ?>
161 161
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -43,27 +43,27 @@  discard block
 block discarded – undo
43 43
 							'maxColumnsBasic' => '4',
44 44
                             'widths' => array('label' => '10', 'field' => '30'), 
45 45
                            ),
46
-		  'layout' => array (
46
+		  'layout' => array(
47 47
 		    'basic_search' => 
48
-		    array (
49
-		      array('name'=>'search_name','label' =>'LBL_NAME', 'type' => 'name'),
50
-		      array (
48
+		    array(
49
+		      array('name'=>'search_name', 'label' =>'LBL_NAME', 'type' => 'name'),
50
+		      array(
51 51
 		        'name' => 'current_user_only',
52 52
 		        'label' => 'LBL_CURRENT_USER_FILTER',
53 53
 		        'type' => 'bool',
54 54
 		      ),
55
-                array ('name' => 'favorites_only','label' => 'LBL_FAVORITES_FILTER','type' => 'bool',),
55
+                array('name' => 'favorites_only', 'label' => 'LBL_FAVORITES_FILTER', 'type' => 'bool',),
56 56
 		    ),
57 57
 		    'advanced_search' => 
58
-		    array (
58
+		    array(
59 59
 		      'first_name' => 
60
-		      array (
60
+		      array(
61 61
 		        'name' => 'first_name',
62 62
 		        'default' => true,
63 63
 		        'width' => '10%',
64 64
 		      ),
65 65
 		      'email' => 
66
-		      array (
66
+		      array(
67 67
 		        'name' => 'email',
68 68
 		        'label' => 'LBL_ANY_EMAIL',
69 69
 		        'type' => 'name',
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
 		        'width' => '10%',
72 72
 		      ),
73 73
 		      'phone' => 
74
-		      array (
74
+		      array(
75 75
 		        'name' => 'phone',
76 76
 		        'label' => 'LBL_ANY_PHONE',
77 77
 		        'type' => 'name',
@@ -79,13 +79,13 @@  discard block
 block discarded – undo
79 79
 		        'width' => '10%',
80 80
 		      ),
81 81
 		      'last_name' => 
82
-		      array (
82
+		      array(
83 83
 		        'name' => 'last_name',
84 84
 		        'default' => true,
85 85
 		        'width' => '10%',
86 86
 		      ),
87 87
 		      'address_street' => 
88
-		      array (
88
+		      array(
89 89
 		        'name' => 'address_street',
90 90
 		        'label' => 'LBL_ANY_ADDRESS',
91 91
 		        'type' => 'name',
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
 		        'width' => '10%',
94 94
 		      ),
95 95
 		      'address_city' => 
96
-		      array (
96
+		      array(
97 97
 		        'name' => 'address_city',
98 98
 		        'label' => 'LBL_CITY',
99 99
 		        'type' => 'name',
@@ -101,13 +101,13 @@  discard block
 block discarded – undo
101 101
 		        'width' => '10%',
102 102
 		      ),
103 103
 		      'account_name' => 
104
-		      array (
104
+		      array(
105 105
 		        'name' => 'account_name',
106 106
 		        'default' => true,
107 107
 		        'width' => '10%',
108 108
 		      ),
109 109
 		      'address_state' => 
110
-		      array (
110
+		      array(
111 111
 		        'name' => 'address_state',
112 112
 		        'label' => 'LBL_STATE',
113 113
 		        'type' => 'name',
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
 		        'width' => '10%',
116 116
 		      ),
117 117
 		      'address_postalcode' => 
118
-		      array (
118
+		      array(
119 119
 		        'name' => 'address_postalcode',
120 120
 		        'label' => 'LBL_POSTAL_CODE',
121 121
 		        'type' => 'name',
@@ -123,15 +123,15 @@  discard block
 block discarded – undo
123 123
 		        'width' => '10%',
124 124
 		      ),
125 125
 		      'assigned_user_id' => 
126
-		      array (
126
+		      array(
127 127
 		        'name' => 'assigned_user_id',
128 128
 		        'type' => 'enum',
129 129
 		        'label' => 'LBL_ASSIGNED_TO',
130 130
 		        'function' => 
131
-		        array (
131
+		        array(
132 132
 		          'name' => 'get_user_array',
133 133
 		          'params' => 
134
-		          array (
134
+		          array(
135 135
 		            0 => false,
136 136
 		          ),
137 137
 		        ),
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
 		        'width' => '10%',
140 140
 		      ),
141 141
 		      'primary_address_country' => 
142
-		      array (
142
+		      array(
143 143
 		        'name' => 'primary_address_country',
144 144
 		        'label' => 'LBL_COUNTRY',
145 145
 		        'type' => 'name',
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
 		        'width' => '10%',
149 149
 		      ),
150 150
 		      'lead_source' => 
151
-		      array (
151
+		      array(
152 152
 		        'name' => 'lead_source',
153 153
 		        'default' => true,
154 154
 		        'width' => '10%',
Please login to merge, or discard this patch.
modules/Contacts/metadata/SearchFields.php 3 patches
Indentation   +32 added lines, -32 removed lines patch added patch discarded remove patch
@@ -40,22 +40,22 @@  discard block
 block discarded – undo
40 40
 global $current_user;
41 41
 $module_name = "Contacts";
42 42
 $searchFields['Contacts'] = 
43
-	array (
44
-		'first_name' => array( 'query_type'=>'default'),
45
-		'last_name'=> array('query_type'=>'default'),
46
-		'search_name'=> array('query_type'=>'default','db_field'=>array('first_name','last_name'),'force_unifiedsearch'=>true),
47
-		'account_name'=> array('query_type'=>'default','db_field'=>array('accounts.name')),
48
-		'lead_source'=> array('query_type'=>'default','operator'=>'=', 'options' => 'lead_source_dom', 'template_var' => 'LEAD_SOURCE_OPTIONS'),
49
-		'do_not_call'=> array('query_type'=>'default', 'input_type' => 'checkbox', 'operator'=>'='),
50
-		'phone'=> array('query_type'=>'default','db_field'=>array('phone_mobile','phone_work','phone_other','phone_fax','assistant_phone')),
51
-		'email'=> array(
52
-			'query_type' => 'default',
53
-			'operator' => 'subquery',
54
-			'subquery' => 'SELECT eabr.bean_id FROM email_addr_bean_rel eabr JOIN email_addresses ea ON (ea.id = eabr.email_address_id) WHERE eabr.deleted=0 AND ea.email_address LIKE',
55
-			'db_field' => array(
56
-				'id',
57
-			),
58
-		),	
43
+    array (
44
+        'first_name' => array( 'query_type'=>'default'),
45
+        'last_name'=> array('query_type'=>'default'),
46
+        'search_name'=> array('query_type'=>'default','db_field'=>array('first_name','last_name'),'force_unifiedsearch'=>true),
47
+        'account_name'=> array('query_type'=>'default','db_field'=>array('accounts.name')),
48
+        'lead_source'=> array('query_type'=>'default','operator'=>'=', 'options' => 'lead_source_dom', 'template_var' => 'LEAD_SOURCE_OPTIONS'),
49
+        'do_not_call'=> array('query_type'=>'default', 'input_type' => 'checkbox', 'operator'=>'='),
50
+        'phone'=> array('query_type'=>'default','db_field'=>array('phone_mobile','phone_work','phone_other','phone_fax','assistant_phone')),
51
+        'email'=> array(
52
+            'query_type' => 'default',
53
+            'operator' => 'subquery',
54
+            'subquery' => 'SELECT eabr.bean_id FROM email_addr_bean_rel eabr JOIN email_addresses ea ON (ea.id = eabr.email_address_id) WHERE eabr.deleted=0 AND ea.email_address LIKE',
55
+            'db_field' => array(
56
+                'id',
57
+            ),
58
+        ),	
59 59
         'favorites_only' => array(
60 60
             'query_type'=>'format',
61 61
             'operator' => 'subquery',
@@ -64,23 +64,23 @@  discard block
 block discarded – undo
64 64
 			                        and favorites.parent_type = "'.$module_name.'"
65 65
 			                        and favorites.assigned_user_id = "' .$current_user->id . '") OR NOT ({0}',
66 66
             'db_field'=>array('id')),
67
-		'assistant'=> array('query_type'=>'default'),
68
-		'address_street'=> array('query_type'=>'default','db_field'=>array('primary_address_street','alt_address_street')),
69
-		'address_city'=> array('query_type'=>'default','db_field'=>array('primary_address_city','alt_address_city')),
70
-		'address_state'=> array('query_type'=>'default','db_field'=>array('primary_address_state','alt_address_state')),
71
-		'address_postalcode'=> array('query_type'=>'default','db_field'=>array('primary_address_postalcode','alt_address_postalcode')),
72
-		'address_country'=> array('query_type'=>'default','db_field'=>array('primary_address_country','alt_address_country')),
73
-		'current_user_only'=> array('query_type'=>'default','db_field'=>array('assigned_user_id'),'my_items'=>true, 'vname' => 'LBL_CURRENT_USER_FILTER', 'type' => 'bool'),
74
-		'assigned_user_id'=> array('query_type'=>'default'),
67
+        'assistant'=> array('query_type'=>'default'),
68
+        'address_street'=> array('query_type'=>'default','db_field'=>array('primary_address_street','alt_address_street')),
69
+        'address_city'=> array('query_type'=>'default','db_field'=>array('primary_address_city','alt_address_city')),
70
+        'address_state'=> array('query_type'=>'default','db_field'=>array('primary_address_state','alt_address_state')),
71
+        'address_postalcode'=> array('query_type'=>'default','db_field'=>array('primary_address_postalcode','alt_address_postalcode')),
72
+        'address_country'=> array('query_type'=>'default','db_field'=>array('primary_address_country','alt_address_country')),
73
+        'current_user_only'=> array('query_type'=>'default','db_field'=>array('assigned_user_id'),'my_items'=>true, 'vname' => 'LBL_CURRENT_USER_FILTER', 'type' => 'bool'),
74
+        'assigned_user_id'=> array('query_type'=>'default'),
75 75
         'account_id'=> array('query_type'=>'default','db_field'=>array('accounts.id')),
76 76
         'campaign_name'=> array('query_type'=>'default'),
77
-		//Range Search Support 
78
-	    'range_date_entered' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
79
-	    'start_range_date_entered' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
80
-	    'end_range_date_entered' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
81
-	    'range_date_modified' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
82
-	    'start_range_date_modified' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
77
+        //Range Search Support 
78
+        'range_date_entered' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
79
+        'start_range_date_entered' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
80
+        'end_range_date_entered' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
81
+        'range_date_modified' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
82
+        'start_range_date_modified' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
83 83
         'end_range_date_modified' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),	
84
-	    //Range Search Support 			
85
-	);
84
+        //Range Search Support 			
85
+    );
86 86
 ?>
Please login to merge, or discard this patch.
Spacing   +21 added lines, -21 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.
@@ -40,14 +40,14 @@  discard block
 block discarded – undo
40 40
 global $current_user;
41 41
 $module_name = "Contacts";
42 42
 $searchFields['Contacts'] = 
43
-	array (
44
-		'first_name' => array( 'query_type'=>'default'),
43
+	array(
44
+		'first_name' => array('query_type'=>'default'),
45 45
 		'last_name'=> array('query_type'=>'default'),
46
-		'search_name'=> array('query_type'=>'default','db_field'=>array('first_name','last_name'),'force_unifiedsearch'=>true),
47
-		'account_name'=> array('query_type'=>'default','db_field'=>array('accounts.name')),
48
-		'lead_source'=> array('query_type'=>'default','operator'=>'=', 'options' => 'lead_source_dom', 'template_var' => 'LEAD_SOURCE_OPTIONS'),
46
+		'search_name'=> array('query_type'=>'default', 'db_field'=>array('first_name', 'last_name'), 'force_unifiedsearch'=>true),
47
+		'account_name'=> array('query_type'=>'default', 'db_field'=>array('accounts.name')),
48
+		'lead_source'=> array('query_type'=>'default', 'operator'=>'=', 'options' => 'lead_source_dom', 'template_var' => 'LEAD_SOURCE_OPTIONS'),
49 49
 		'do_not_call'=> array('query_type'=>'default', 'input_type' => 'checkbox', 'operator'=>'='),
50
-		'phone'=> array('query_type'=>'default','db_field'=>array('phone_mobile','phone_work','phone_other','phone_fax','assistant_phone')),
50
+		'phone'=> array('query_type'=>'default', 'db_field'=>array('phone_mobile', 'phone_work', 'phone_other', 'phone_fax', 'assistant_phone')),
51 51
 		'email'=> array(
52 52
 			'query_type' => 'default',
53 53
 			'operator' => 'subquery',
@@ -62,25 +62,25 @@  discard block
 block discarded – undo
62 62
             'subquery' => 'SELECT favorites.parent_id FROM favorites
63 63
 			                    WHERE favorites.deleted = 0
64 64
 			                        and favorites.parent_type = "'.$module_name.'"
65
-			                        and favorites.assigned_user_id = "' .$current_user->id . '") OR NOT ({0}',
65
+			                        and favorites.assigned_user_id = "' .$current_user->id.'") OR NOT ({0}',
66 66
             'db_field'=>array('id')),
67 67
 		'assistant'=> array('query_type'=>'default'),
68
-		'address_street'=> array('query_type'=>'default','db_field'=>array('primary_address_street','alt_address_street')),
69
-		'address_city'=> array('query_type'=>'default','db_field'=>array('primary_address_city','alt_address_city')),
70
-		'address_state'=> array('query_type'=>'default','db_field'=>array('primary_address_state','alt_address_state')),
71
-		'address_postalcode'=> array('query_type'=>'default','db_field'=>array('primary_address_postalcode','alt_address_postalcode')),
72
-		'address_country'=> array('query_type'=>'default','db_field'=>array('primary_address_country','alt_address_country')),
73
-		'current_user_only'=> array('query_type'=>'default','db_field'=>array('assigned_user_id'),'my_items'=>true, 'vname' => 'LBL_CURRENT_USER_FILTER', 'type' => 'bool'),
68
+		'address_street'=> array('query_type'=>'default', 'db_field'=>array('primary_address_street', 'alt_address_street')),
69
+		'address_city'=> array('query_type'=>'default', 'db_field'=>array('primary_address_city', 'alt_address_city')),
70
+		'address_state'=> array('query_type'=>'default', 'db_field'=>array('primary_address_state', 'alt_address_state')),
71
+		'address_postalcode'=> array('query_type'=>'default', 'db_field'=>array('primary_address_postalcode', 'alt_address_postalcode')),
72
+		'address_country'=> array('query_type'=>'default', 'db_field'=>array('primary_address_country', 'alt_address_country')),
73
+		'current_user_only'=> array('query_type'=>'default', 'db_field'=>array('assigned_user_id'), 'my_items'=>true, 'vname' => 'LBL_CURRENT_USER_FILTER', 'type' => 'bool'),
74 74
 		'assigned_user_id'=> array('query_type'=>'default'),
75
-        'account_id'=> array('query_type'=>'default','db_field'=>array('accounts.id')),
75
+        'account_id'=> array('query_type'=>'default', 'db_field'=>array('accounts.id')),
76 76
         'campaign_name'=> array('query_type'=>'default'),
77 77
 		//Range Search Support 
78
-	    'range_date_entered' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
79
-	    'start_range_date_entered' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
80
-	    'end_range_date_entered' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
81
-	    'range_date_modified' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
82
-	    'start_range_date_modified' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
83
-        'end_range_date_modified' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),	
78
+	    'range_date_entered' => array('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
79
+	    'start_range_date_entered' => array('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
80
+	    'end_range_date_entered' => array('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
81
+	    'range_date_modified' => array('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
82
+	    'start_range_date_modified' => array('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
83
+        'end_range_date_modified' => array('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),	
84 84
 	    //Range Search Support 			
85 85
 	);
86 86
 ?>
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,7 @@
 block discarded – undo
1 1
 <?php
2
-if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
2
+if(!defined('sugarEntry') || !sugarEntry) {
3
+    die('Not A Valid Entry Point');
4
+}
3 5
 /*********************************************************************************
4 6
  * SugarCRM Community Edition is a customer relationship management program developed by
5 7
  * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc.
Please login to merge, or discard this patch.
modules/Contacts/metadata/detailviewdefs.php 2 patches
Indentation   +136 added lines, -136 removed lines patch added patch discarded remove patch
@@ -39,290 +39,290 @@
 block discarded – undo
39 39
 
40 40
 $viewdefs ['Contacts'] = 
41 41
 array (
42
-  'DetailView' => 
43
-  array (
42
+    'DetailView' => 
43
+    array (
44 44
     'templateMeta' => 
45 45
     array (
46
-      'form' => 
47
-      array (
46
+        'form' => 
47
+        array (
48 48
         'buttons' => 
49 49
         array (
50
-          0 => 'EDIT',
51
-          1 => 'DUPLICATE',
52
-          2 => 'DELETE',
53
-          3 => 'FIND_DUPLICATES',
54
-          4 => 
55
-          array (
50
+            0 => 'EDIT',
51
+            1 => 'DUPLICATE',
52
+            2 => 'DELETE',
53
+            3 => 'FIND_DUPLICATES',
54
+            4 => 
55
+            array (
56 56
             'customCode' => '<input type="submit" class="button" title="{$APP.LBL_MANAGE_SUBSCRIPTIONS}" onclick="this.form.return_module.value=\'Contacts\'; this.form.return_action.value=\'DetailView\'; this.form.return_id.value=\'{$fields.id.value}\'; this.form.action.value=\'Subscriptions\'; this.form.module.value=\'Campaigns\'; this.form.module_tab.value=\'Contacts\';" name="Manage Subscriptions" value="{$APP.LBL_MANAGE_SUBSCRIPTIONS}"/>',
57 57
             'sugar_html' => 
58 58
             array (
59
-              'type' => 'submit',
60
-              'value' => '{$APP.LBL_MANAGE_SUBSCRIPTIONS}',
61
-              'htmlOptions' => 
62
-              array (
59
+                'type' => 'submit',
60
+                'value' => '{$APP.LBL_MANAGE_SUBSCRIPTIONS}',
61
+                'htmlOptions' => 
62
+                array (
63 63
                 'class' => 'button',
64 64
                 'id' => 'manage_subscriptions_button',
65 65
                 'title' => '{$APP.LBL_MANAGE_SUBSCRIPTIONS}',
66 66
                 'onclick' => 'this.form.return_module.value=\'Contacts\'; this.form.return_action.value=\'DetailView\'; this.form.return_id.value=\'{$fields.id.value}\'; this.form.action.value=\'Subscriptions\'; this.form.module.value=\'Campaigns\'; this.form.module_tab.value=\'Contacts\';',
67 67
                 'name' => 'Manage Subscriptions',
68
-              ),
68
+                ),
69
+            ),
69 70
             ),
70
-          ),
71
-          'AOS_GENLET' => 
72
-          array (
71
+            'AOS_GENLET' => 
72
+            array (
73 73
             'customCode' => '<input type="button" class="button" onClick="showPopup();" value="{$APP.LBL_GENERATE_LETTER}">',
74
-          ),
75
-          'AOP_CREATE' => 
76
-          array (
74
+            ),
75
+            'AOP_CREATE' => 
76
+            array (
77 77
             'customCode' => '{if !$fields.joomla_account_id.value && $AOP_PORTAL_ENABLED}<input type="submit" class="button" onClick="this.form.action.value=\'createPortalUser\';" value="{$MOD.LBL_CREATE_PORTAL_USER}"> {/if}',
78 78
             'sugar_html' => 
79 79
             array (
80
-              'type' => 'submit',
81
-              'value' => '{$MOD.LBL_CREATE_PORTAL_USER}',
82
-              'htmlOptions' => 
83
-              array (
80
+                'type' => 'submit',
81
+                'value' => '{$MOD.LBL_CREATE_PORTAL_USER}',
82
+                'htmlOptions' => 
83
+                array (
84 84
                 'title' => '{$MOD.LBL_CREATE_PORTAL_USER}',
85 85
                 'class' => 'button',
86 86
                 'onclick' => 'this.form.action.value=\'createPortalUser\';',
87 87
                 'name' => 'buttonCreatePortalUser',
88 88
                 'id' => 'createPortalUser_button',
89
-              ),
90
-              'template' => '{if !$fields.joomla_account_id.value && $AOP_PORTAL_ENABLED}[CONTENT]{/if}',
89
+                ),
90
+                'template' => '{if !$fields.joomla_account_id.value && $AOP_PORTAL_ENABLED}[CONTENT]{/if}',
91
+            ),
91 92
             ),
92
-          ),
93
-          'AOP_DISABLE' => 
94
-          array (
93
+            'AOP_DISABLE' => 
94
+            array (
95 95
             'customCode' => '{if $fields.joomla_account_id.value && !$fields.portal_account_disabled.value && $AOP_PORTAL_ENABLED}<input type="submit" class="button" onClick="this.form.action.value=\'disablePortalUser\';" value="{$MOD.LBL_DISABLE_PORTAL_USER}"> {/if}',
96 96
             'sugar_html' => 
97 97
             array (
98
-              'type' => 'submit',
99
-              'value' => '{$MOD.LBL_DISABLE_PORTAL_USER}',
100
-              'htmlOptions' => 
101
-              array (
98
+                'type' => 'submit',
99
+                'value' => '{$MOD.LBL_DISABLE_PORTAL_USER}',
100
+                'htmlOptions' => 
101
+                array (
102 102
                 'title' => '{$MOD.LBL_DISABLE_PORTAL_USER}',
103 103
                 'class' => 'button',
104 104
                 'onclick' => 'this.form.action.value=\'disablePortalUser\';',
105 105
                 'name' => 'buttonDisablePortalUser',
106 106
                 'id' => 'disablePortalUser_button',
107
-              ),
108
-              'template' => '{if $fields.joomla_account_id.value && !$fields.portal_account_disabled.value && $AOP_PORTAL_ENABLED}[CONTENT]{/if}',
107
+                ),
108
+                'template' => '{if $fields.joomla_account_id.value && !$fields.portal_account_disabled.value && $AOP_PORTAL_ENABLED}[CONTENT]{/if}',
109
+            ),
109 110
             ),
110
-          ),
111
-          'AOP_ENABLE' => 
112
-          array (
111
+            'AOP_ENABLE' => 
112
+            array (
113 113
             'customCode' => '{if $fields.joomla_account_id.value && $fields.portal_account_disabled.value && $AOP_PORTAL_ENABLED}<input type="submit" class="button" onClick="this.form.action.value=\'enablePortalUser\';" value="{$MOD.LBL_ENABLE_PORTAL_USER}"> {/if}',
114 114
             'sugar_html' => 
115 115
             array (
116
-              'type' => 'submit',
117
-              'value' => '{$MOD.LBL_ENABLE_PORTAL_USER}',
118
-              'htmlOptions' => 
119
-              array (
116
+                'type' => 'submit',
117
+                'value' => '{$MOD.LBL_ENABLE_PORTAL_USER}',
118
+                'htmlOptions' => 
119
+                array (
120 120
                 'title' => '{$MOD.LBL_ENABLE_PORTAL_USER}',
121 121
                 'class' => 'button',
122 122
                 'onclick' => 'this.form.action.value=\'enablePortalUser\';',
123 123
                 'name' => 'buttonENablePortalUser',
124 124
                 'id' => 'enablePortalUser_button',
125
-              ),
126
-              'template' => '{if $fields.joomla_account_id.value && $fields.portal_account_disabled.value && $AOP_PORTAL_ENABLED}[CONTENT]{/if}',
125
+                ),
126
+                'template' => '{if $fields.joomla_account_id.value && $fields.portal_account_disabled.value && $AOP_PORTAL_ENABLED}[CONTENT]{/if}',
127
+            ),
127 128
             ),
128
-          ),
129 129
         ),
130
-      ),
131
-      'maxColumns' => '2',
132
-      'widths' => 
133
-      array (
130
+        ),
131
+        'maxColumns' => '2',
132
+        'widths' => 
133
+        array (
134 134
         0 => 
135 135
         array (
136
-          'label' => '10',
137
-          'field' => '30',
136
+            'label' => '10',
137
+            'field' => '30',
138 138
         ),
139 139
         1 => 
140 140
         array (
141
-          'label' => '10',
142
-          'field' => '30',
141
+            'label' => '10',
142
+            'field' => '30',
143 143
         ),
144
-      ),
145
-      'includes' => 
146
-      array (
144
+        ),
145
+        'includes' => 
146
+        array (
147 147
         0 => 
148 148
         array (
149
-          'file' => 'modules/Leads/Lead.js',
149
+            'file' => 'modules/Leads/Lead.js',
150 150
         ),
151
-      ),
152
-      'useTabs' => true,
153
-      'tabDefs' => 
154
-      array (
151
+        ),
152
+        'useTabs' => true,
153
+        'tabDefs' => 
154
+        array (
155 155
         'LBL_CONTACT_INFORMATION' => 
156 156
         array (
157
-          'newTab' => true,
158
-          'panelDefault' => 'expanded',
157
+            'newTab' => true,
158
+            'panelDefault' => 'expanded',
159 159
         ),
160 160
         'LBL_PANEL_ADVANCED' => 
161 161
         array (
162
-          'newTab' => true,
163
-          'panelDefault' => 'expanded',
162
+            'newTab' => true,
163
+            'panelDefault' => 'expanded',
164 164
         ),
165 165
         'LBL_PANEL_ASSIGNMENT' =>
166 166
         array (
167
-          'newTab' => true,
168
-          'panelDefault' => 'expanded',
167
+            'newTab' => true,
168
+            'panelDefault' => 'expanded',
169
+        ),
169 170
         ),
170
-      ),
171 171
     ),
172 172
     'panels' => 
173 173
     array (
174
-      'lbl_contact_information' => 
175
-      array (
174
+        'lbl_contact_information' => 
175
+        array (
176 176
         0 => 
177 177
         array (
178
-          0 => 
179
-          array (
178
+            0 => 
179
+            array (
180 180
             'name' => 'first_name',
181 181
             'comment' => 'First name of the contact',
182 182
             'label' => 'LBL_FIRST_NAME',
183
-          ),
184
-          1 => 
185
-          array (
183
+            ),
184
+            1 => 
185
+            array (
186 186
             'name' => 'last_name',
187 187
             'comment' => 'Last name of the contact',
188 188
             'label' => 'LBL_LAST_NAME',
189
-          ),
189
+            ),
190 190
         ),
191 191
         1 => 
192 192
         array (
193
-          0 => 
194
-          array (
193
+            0 => 
194
+            array (
195 195
             'name' => 'phone_work',
196 196
             'label' => 'LBL_OFFICE_PHONE',
197
-          ),
198
-          1 => 
199
-          array (
197
+            ),
198
+            1 => 
199
+            array (
200 200
             'name' => 'phone_mobile',
201 201
             'label' => 'LBL_MOBILE_PHONE',
202
-          ),
202
+            ),
203 203
         ),
204 204
         2 => 
205 205
         array (
206
-          0 => 
207
-          array (
206
+            0 => 
207
+            array (
208 208
             'name' => 'title',
209 209
             'comment' => 'The title of the contact',
210 210
             'label' => 'LBL_TITLE',
211
-          ),
212
-          1 => 
213
-          array (
211
+            ),
212
+            1 => 
213
+            array (
214 214
             'name' => 'department',
215 215
             'label' => 'LBL_DEPARTMENT',
216
-          ),
216
+            ),
217 217
         ),
218 218
         3 => 
219 219
         array (
220
-          0 => 
221
-          array (
220
+            0 => 
221
+            array (
222 222
             'name' => 'account_name',
223 223
             'label' => 'LBL_ACCOUNT_NAME',
224
-          ),
225
-          1 => 
226
-          array (
224
+            ),
225
+            1 => 
226
+            array (
227 227
             'name' => 'phone_fax',
228 228
             'label' => 'LBL_FAX_PHONE',
229
-          ),
229
+            ),
230 230
         ),
231 231
         4 => 
232 232
         array (
233
-          0 => 
234
-          array (
233
+            0 => 
234
+            array (
235 235
             'name' => 'email1',
236 236
             'studio' => 'false',
237 237
             'label' => 'LBL_EMAIL_ADDRESS',
238
-          ),
238
+            ),
239 239
         ),
240 240
         5 => 
241 241
         array (
242
-          0 => 
243
-          array (
242
+            0 => 
243
+            array (
244 244
             'name' => 'primary_address_street',
245 245
             'label' => 'LBL_PRIMARY_ADDRESS',
246 246
             'type' => 'address',
247 247
             'displayParams' => 
248 248
             array (
249
-              'key' => 'primary',
249
+                'key' => 'primary',
250
+            ),
250 251
             ),
251
-          ),
252
-          1 => 
253
-          array (
252
+            1 => 
253
+            array (
254 254
             'name' => 'alt_address_street',
255 255
             'label' => 'LBL_ALTERNATE_ADDRESS',
256 256
             'type' => 'address',
257 257
             'displayParams' => 
258 258
             array (
259
-              'key' => 'alt',
259
+                'key' => 'alt',
260
+            ),
260 261
             ),
261
-          ),
262 262
         ),
263 263
         6 => 
264 264
         array (
265
-          0 => 
266
-          array (
265
+            0 => 
266
+            array (
267 267
             'name' => 'description',
268 268
             'comment' => 'Full text of the note',
269 269
             'label' => 'LBL_DESCRIPTION',
270
-          ),
271
-          1 => '',
270
+            ),
271
+            1 => '',
272 272
         ),
273 273
         7 => 
274 274
         array (
275
-          0 => 
276
-          array (
275
+            0 => 
276
+            array (
277 277
             'name' => 'assigned_user_name',
278 278
             'label' => 'LBL_ASSIGNED_TO_NAME',
279
-          ),
279
+            ),
280 280
         ),
281
-      ),
282
-      'LBL_PANEL_ADVANCED' => 
283
-      array (
281
+        ),
282
+        'LBL_PANEL_ADVANCED' => 
283
+        array (
284 284
         0 => 
285 285
         array (
286
-          0 => 
287
-          array (
286
+            0 => 
287
+            array (
288 288
             'name' => 'lead_source',
289 289
             'comment' => 'How did the contact come about',
290 290
             'label' => 'LBL_LEAD_SOURCE',
291
-          ),
291
+            ),
292 292
         ),
293 293
         1 => 
294 294
         array (
295
-          0 => 
296
-          array (
295
+            0 => 
296
+            array (
297 297
             'name' => 'report_to_name',
298 298
             'label' => 'LBL_REPORTS_TO',
299
-          ),
300
-          1 => 
301
-          array (
299
+            ),
300
+            1 => 
301
+            array (
302 302
             'name' => 'campaign_name',
303 303
             'label' => 'LBL_CAMPAIGN',
304
-          ),
304
+            ),
305
+        ),
305 306
         ),
306
-      ),
307
-      'LBL_PANEL_ASSIGNMENT' =>
308
-      array (
307
+        'LBL_PANEL_ASSIGNMENT' =>
308
+        array (
309 309
         0 => 
310 310
         array (
311
-          0 => 
312
-          array (
311
+            0 => 
312
+            array (
313 313
             'name' => 'date_entered',
314 314
             'customCode' => '{$fields.date_entered.value} {$APP.LBL_BY} {$fields.created_by_name.value}',
315 315
             'label' => 'LBL_DATE_ENTERED',
316
-          ),
317
-          1 => 
318
-          array (
316
+            ),
317
+            1 => 
318
+            array (
319 319
             'name' => 'date_modified',
320 320
             'customCode' => '{$fields.date_modified.value} {$APP.LBL_BY} {$fields.modified_by_name.value}',
321 321
             'label' => 'LBL_DATE_MODIFIED',
322
-          ),
322
+            ),
323 323
         ),
324
-      ),
324
+        ),
325
+    ),
325 326
     ),
326
-  ),
327 327
 );
328 328
 ?>
Please login to merge, or discard this patch.
Spacing   +62 added lines, -62 removed lines patch added patch discarded remove patch
@@ -38,28 +38,28 @@  discard block
 block discarded – undo
38 38
  ********************************************************************************/
39 39
 
40 40
 $viewdefs ['Contacts'] = 
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 => 'FIND_DUPLICATES',
54 54
           4 => 
55
-          array (
55
+          array(
56 56
             'customCode' => '<input type="submit" class="button" title="{$APP.LBL_MANAGE_SUBSCRIPTIONS}" onclick="this.form.return_module.value=\'Contacts\'; this.form.return_action.value=\'DetailView\'; this.form.return_id.value=\'{$fields.id.value}\'; this.form.action.value=\'Subscriptions\'; this.form.module.value=\'Campaigns\'; this.form.module_tab.value=\'Contacts\';" name="Manage Subscriptions" value="{$APP.LBL_MANAGE_SUBSCRIPTIONS}"/>',
57 57
             'sugar_html' => 
58
-            array (
58
+            array(
59 59
               'type' => 'submit',
60 60
               'value' => '{$APP.LBL_MANAGE_SUBSCRIPTIONS}',
61 61
               'htmlOptions' => 
62
-              array (
62
+              array(
63 63
                 'class' => 'button',
64 64
                 'id' => 'manage_subscriptions_button',
65 65
                 'title' => '{$APP.LBL_MANAGE_SUBSCRIPTIONS}',
@@ -69,18 +69,18 @@  discard block
 block discarded – undo
69 69
             ),
70 70
           ),
71 71
           'AOS_GENLET' => 
72
-          array (
72
+          array(
73 73
             'customCode' => '<input type="button" class="button" onClick="showPopup();" value="{$APP.LBL_GENERATE_LETTER}">',
74 74
           ),
75 75
           'AOP_CREATE' => 
76
-          array (
76
+          array(
77 77
             'customCode' => '{if !$fields.joomla_account_id.value && $AOP_PORTAL_ENABLED}<input type="submit" class="button" onClick="this.form.action.value=\'createPortalUser\';" value="{$MOD.LBL_CREATE_PORTAL_USER}"> {/if}',
78 78
             'sugar_html' => 
79
-            array (
79
+            array(
80 80
               'type' => 'submit',
81 81
               'value' => '{$MOD.LBL_CREATE_PORTAL_USER}',
82 82
               'htmlOptions' => 
83
-              array (
83
+              array(
84 84
                 'title' => '{$MOD.LBL_CREATE_PORTAL_USER}',
85 85
                 'class' => 'button',
86 86
                 'onclick' => 'this.form.action.value=\'createPortalUser\';',
@@ -91,14 +91,14 @@  discard block
 block discarded – undo
91 91
             ),
92 92
           ),
93 93
           'AOP_DISABLE' => 
94
-          array (
94
+          array(
95 95
             'customCode' => '{if $fields.joomla_account_id.value && !$fields.portal_account_disabled.value && $AOP_PORTAL_ENABLED}<input type="submit" class="button" onClick="this.form.action.value=\'disablePortalUser\';" value="{$MOD.LBL_DISABLE_PORTAL_USER}"> {/if}',
96 96
             'sugar_html' => 
97
-            array (
97
+            array(
98 98
               'type' => 'submit',
99 99
               'value' => '{$MOD.LBL_DISABLE_PORTAL_USER}',
100 100
               'htmlOptions' => 
101
-              array (
101
+              array(
102 102
                 'title' => '{$MOD.LBL_DISABLE_PORTAL_USER}',
103 103
                 'class' => 'button',
104 104
                 'onclick' => 'this.form.action.value=\'disablePortalUser\';',
@@ -109,14 +109,14 @@  discard block
 block discarded – undo
109 109
             ),
110 110
           ),
111 111
           'AOP_ENABLE' => 
112
-          array (
112
+          array(
113 113
             'customCode' => '{if $fields.joomla_account_id.value && $fields.portal_account_disabled.value && $AOP_PORTAL_ENABLED}<input type="submit" class="button" onClick="this.form.action.value=\'enablePortalUser\';" value="{$MOD.LBL_ENABLE_PORTAL_USER}"> {/if}',
114 114
             'sugar_html' => 
115
-            array (
115
+            array(
116 116
               'type' => 'submit',
117 117
               'value' => '{$MOD.LBL_ENABLE_PORTAL_USER}',
118 118
               'htmlOptions' => 
119
-              array (
119
+              array(
120 120
                 'title' => '{$MOD.LBL_ENABLE_PORTAL_USER}',
121 121
                 'class' => 'button',
122 122
                 'onclick' => 'this.form.action.value=\'enablePortalUser\';',
@@ -130,140 +130,140 @@  discard block
 block discarded – undo
130 130
       ),
131 131
       'maxColumns' => '2',
132 132
       'widths' => 
133
-      array (
133
+      array(
134 134
         0 => 
135
-        array (
135
+        array(
136 136
           'label' => '10',
137 137
           'field' => '30',
138 138
         ),
139 139
         1 => 
140
-        array (
140
+        array(
141 141
           'label' => '10',
142 142
           'field' => '30',
143 143
         ),
144 144
       ),
145 145
       'includes' => 
146
-      array (
146
+      array(
147 147
         0 => 
148
-        array (
148
+        array(
149 149
           'file' => 'modules/Leads/Lead.js',
150 150
         ),
151 151
       ),
152 152
       'useTabs' => true,
153 153
       'tabDefs' => 
154
-      array (
154
+      array(
155 155
         'LBL_CONTACT_INFORMATION' => 
156
-        array (
156
+        array(
157 157
           'newTab' => true,
158 158
           'panelDefault' => 'expanded',
159 159
         ),
160 160
         'LBL_PANEL_ADVANCED' => 
161
-        array (
161
+        array(
162 162
           'newTab' => true,
163 163
           'panelDefault' => 'expanded',
164 164
         ),
165 165
         'LBL_PANEL_ASSIGNMENT' =>
166
-        array (
166
+        array(
167 167
           'newTab' => true,
168 168
           'panelDefault' => 'expanded',
169 169
         ),
170 170
       ),
171 171
     ),
172 172
     'panels' => 
173
-    array (
173
+    array(
174 174
       'lbl_contact_information' => 
175
-      array (
175
+      array(
176 176
         0 => 
177
-        array (
177
+        array(
178 178
           0 => 
179
-          array (
179
+          array(
180 180
             'name' => 'first_name',
181 181
             'comment' => 'First name of the contact',
182 182
             'label' => 'LBL_FIRST_NAME',
183 183
           ),
184 184
           1 => 
185
-          array (
185
+          array(
186 186
             'name' => 'last_name',
187 187
             'comment' => 'Last name of the contact',
188 188
             'label' => 'LBL_LAST_NAME',
189 189
           ),
190 190
         ),
191 191
         1 => 
192
-        array (
192
+        array(
193 193
           0 => 
194
-          array (
194
+          array(
195 195
             'name' => 'phone_work',
196 196
             'label' => 'LBL_OFFICE_PHONE',
197 197
           ),
198 198
           1 => 
199
-          array (
199
+          array(
200 200
             'name' => 'phone_mobile',
201 201
             'label' => 'LBL_MOBILE_PHONE',
202 202
           ),
203 203
         ),
204 204
         2 => 
205
-        array (
205
+        array(
206 206
           0 => 
207
-          array (
207
+          array(
208 208
             'name' => 'title',
209 209
             'comment' => 'The title of the contact',
210 210
             'label' => 'LBL_TITLE',
211 211
           ),
212 212
           1 => 
213
-          array (
213
+          array(
214 214
             'name' => 'department',
215 215
             'label' => 'LBL_DEPARTMENT',
216 216
           ),
217 217
         ),
218 218
         3 => 
219
-        array (
219
+        array(
220 220
           0 => 
221
-          array (
221
+          array(
222 222
             'name' => 'account_name',
223 223
             'label' => 'LBL_ACCOUNT_NAME',
224 224
           ),
225 225
           1 => 
226
-          array (
226
+          array(
227 227
             'name' => 'phone_fax',
228 228
             'label' => 'LBL_FAX_PHONE',
229 229
           ),
230 230
         ),
231 231
         4 => 
232
-        array (
232
+        array(
233 233
           0 => 
234
-          array (
234
+          array(
235 235
             'name' => 'email1',
236 236
             'studio' => 'false',
237 237
             'label' => 'LBL_EMAIL_ADDRESS',
238 238
           ),
239 239
         ),
240 240
         5 => 
241
-        array (
241
+        array(
242 242
           0 => 
243
-          array (
243
+          array(
244 244
             'name' => 'primary_address_street',
245 245
             'label' => 'LBL_PRIMARY_ADDRESS',
246 246
             'type' => 'address',
247 247
             'displayParams' => 
248
-            array (
248
+            array(
249 249
               'key' => 'primary',
250 250
             ),
251 251
           ),
252 252
           1 => 
253
-          array (
253
+          array(
254 254
             'name' => 'alt_address_street',
255 255
             'label' => 'LBL_ALTERNATE_ADDRESS',
256 256
             'type' => 'address',
257 257
             'displayParams' => 
258
-            array (
258
+            array(
259 259
               'key' => 'alt',
260 260
             ),
261 261
           ),
262 262
         ),
263 263
         6 => 
264
-        array (
264
+        array(
265 265
           0 => 
266
-          array (
266
+          array(
267 267
             'name' => 'description',
268 268
             'comment' => 'Full text of the note',
269 269
             'label' => 'LBL_DESCRIPTION',
@@ -271,51 +271,51 @@  discard block
 block discarded – undo
271 271
           1 => '',
272 272
         ),
273 273
         7 => 
274
-        array (
274
+        array(
275 275
           0 => 
276
-          array (
276
+          array(
277 277
             'name' => 'assigned_user_name',
278 278
             'label' => 'LBL_ASSIGNED_TO_NAME',
279 279
           ),
280 280
         ),
281 281
       ),
282 282
       'LBL_PANEL_ADVANCED' => 
283
-      array (
283
+      array(
284 284
         0 => 
285
-        array (
285
+        array(
286 286
           0 => 
287
-          array (
287
+          array(
288 288
             'name' => 'lead_source',
289 289
             'comment' => 'How did the contact come about',
290 290
             'label' => 'LBL_LEAD_SOURCE',
291 291
           ),
292 292
         ),
293 293
         1 => 
294
-        array (
294
+        array(
295 295
           0 => 
296
-          array (
296
+          array(
297 297
             'name' => 'report_to_name',
298 298
             'label' => 'LBL_REPORTS_TO',
299 299
           ),
300 300
           1 => 
301
-          array (
301
+          array(
302 302
             'name' => 'campaign_name',
303 303
             'label' => 'LBL_CAMPAIGN',
304 304
           ),
305 305
         ),
306 306
       ),
307 307
       'LBL_PANEL_ASSIGNMENT' =>
308
-      array (
308
+      array(
309 309
         0 => 
310
-        array (
310
+        array(
311 311
           0 => 
312
-          array (
312
+          array(
313 313
             'name' => 'date_entered',
314 314
             'customCode' => '{$fields.date_entered.value} {$APP.LBL_BY} {$fields.created_by_name.value}',
315 315
             'label' => 'LBL_DATE_ENTERED',
316 316
           ),
317 317
           1 => 
318
-          array (
318
+          array(
319 319
             'name' => 'date_modified',
320 320
             'customCode' => '{$fields.date_modified.value} {$APP.LBL_BY} {$fields.modified_by_name.value}',
321 321
             'label' => 'LBL_DATE_MODIFIED',
Please login to merge, or discard this patch.
modules/Contacts/metadata/quickcreatedefs.php 3 patches
Indentation   +40 added lines, -40 removed lines patch added patch discarded remove patch
@@ -45,16 +45,16 @@  discard block
 block discarded – undo
45 45
  * Contributor(s): ______________________________________..
46 46
  ********************************************************************************/
47 47
 $viewdefs = array (
48
-  'Contacts' => 
49
-  array (
48
+    'Contacts' => 
49
+    array (
50 50
     'QuickCreate' => 
51 51
     array (
52
-      'templateMeta' => 
53
-      array (
52
+        'templateMeta' => 
53
+        array (
54 54
         'form' => 
55 55
         array (
56
-          'hidden' => 
57
-          array (
56
+            'hidden' => 
57
+            array (
58 58
             '<input type="hidden" name="opportunity_id" value="{$smarty.request.opportunity_id}">',
59 59
             '<input type="hidden" name="case_id" value="{$smarty.request.case_id}">',
60 60
             '<input type="hidden" name="bug_id" value="{$smarty.request.bug_id}">',
@@ -62,91 +62,91 @@  discard block
 block discarded – undo
62 62
             '<input type="hidden" name="inbound_email_id" value="{$smarty.request.inbound_email_id}">',
63 63
             '{if !empty($smarty.request.contact_id)}<input type="hidden" name="reports_to_id" value="{$smarty.request.contact_id}">{/if}',
64 64
             '{if !empty($smarty.request.contact_name)}<input type="hidden" name="report_to_name" value="{$smarty.request.contact_name}">{/if}',
65
-          ),
65
+            ),
66 66
         ),
67 67
         'maxColumns' => '2',
68 68
         'widths' => 
69 69
         array (
70
-          array (
70
+            array (
71 71
             'label' => '10',
72 72
             'field' => '30',
73
-          ),
74
-          array (
73
+            ),
74
+            array (
75 75
             'label' => '10',
76 76
             'field' => '30',
77
-          ),
77
+            ),
78
+        ),
78 79
         ),
79
-      ),
80
-      'panels' => 
81
-      array (
80
+        'panels' => 
81
+        array (
82 82
         'default' => 
83 83
         array (
84 84
 
85
-          array (
85
+            array (
86 86
 
87 87
             array (
88
-              'name' => 'first_name',
88
+                'name' => 'first_name',
89 89
                 'customCode' => '{html_options name="salutation" id="salutation" options=$fields.salutation.options selected=$fields.salutation.value}'
90 90
                 . '&nbsp;<input name="first_name" id="first_name" size="25" maxlength="25" type="text" value="{$fields.first_name.value}">',
91 91
             ),
92 92
 
93 93
             array (
94
-              'name' => 'account_name',
94
+                'name' => 'account_name',
95
+            ),
95 96
             ),
96
-          ),
97 97
 
98
-          array (
98
+            array (
99 99
 
100 100
             array (
101
-              'name' => 'last_name',
102
-              'displayParams'=>array('required'=>true),
101
+                'name' => 'last_name',
102
+                'displayParams'=>array('required'=>true),
103 103
             ),
104 104
 
105 105
             array (
106
-              'name' => 'phone_work',
106
+                'name' => 'phone_work',
107
+            ),
107 108
             ),
108
-          ),
109 109
 
110
-          array (
110
+            array (
111 111
 
112 112
             array (
113
-              'name' => 'title',
113
+                'name' => 'title',
114 114
             ),
115 115
 
116 116
             array (
117
-              'name' => 'phone_mobile',
117
+                'name' => 'phone_mobile',
118
+            ),
118 119
             ),
119
-          ),
120 120
 
121
-          array (
121
+            array (
122 122
 
123 123
             array (
124
-              'name' => 'phone_fax',
124
+                'name' => 'phone_fax',
125 125
             ),
126 126
 
127 127
             array (
128
-              'name' => 'do_not_call',
128
+                'name' => 'do_not_call',
129
+            ),
129 130
             ),
130
-          ),
131 131
 
132
-          array (
133 132
             array (
134
-              'name' => 'email1',
133
+            array (
134
+                'name' => 'email1',
135 135
             ),
136 136
             array (
137
-              'name' => 'lead_source',
137
+                'name' => 'lead_source',
138
+            ),
138 139
             ),
139
-          ),
140 140
 
141
-          array (
141
+            array (
142 142
 
143 143
             array (
144
-              'name' => 'assigned_user_name',
144
+                'name' => 'assigned_user_name',
145 145
             ),
146
-          ),
146
+            ),
147
+        ),
147 148
         ),
148
-      ),
149 149
     ),
150
-  ),
150
+    ),
151 151
 );
152 152
 ?>
Please login to merge, or discard this patch.
Spacing   +29 added lines, -29 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.
@@ -44,17 +44,17 @@  discard block
 block discarded – undo
44 44
  * All Rights Reserved.
45 45
  * Contributor(s): ______________________________________..
46 46
  ********************************************************************************/
47
-$viewdefs = array (
47
+$viewdefs = array(
48 48
   'Contacts' => 
49
-  array (
49
+  array(
50 50
     'QuickCreate' => 
51
-    array (
51
+    array(
52 52
       'templateMeta' => 
53
-      array (
53
+      array(
54 54
         'form' => 
55
-        array (
55
+        array(
56 56
           'hidden' => 
57
-          array (
57
+          array(
58 58
             '<input type="hidden" name="opportunity_id" value="{$smarty.request.opportunity_id}">',
59 59
             '<input type="hidden" name="case_id" value="{$smarty.request.case_id}">',
60 60
             '<input type="hidden" name="bug_id" value="{$smarty.request.bug_id}">',
@@ -66,81 +66,81 @@  discard block
 block discarded – undo
66 66
         ),
67 67
         'maxColumns' => '2',
68 68
         'widths' => 
69
-        array (
70
-          array (
69
+        array(
70
+          array(
71 71
             'label' => '10',
72 72
             'field' => '30',
73 73
           ),
74
-          array (
74
+          array(
75 75
             'label' => '10',
76 76
             'field' => '30',
77 77
           ),
78 78
         ),
79 79
       ),
80 80
       'panels' => 
81
-      array (
81
+      array(
82 82
         'default' => 
83
-        array (
83
+        array(
84 84
 
85
-          array (
85
+          array(
86 86
 
87
-            array (
87
+            array(
88 88
               'name' => 'first_name',
89 89
                 'customCode' => '{html_options name="salutation" id="salutation" options=$fields.salutation.options selected=$fields.salutation.value}'
90 90
                 . '&nbsp;<input name="first_name" id="first_name" size="25" maxlength="25" type="text" value="{$fields.first_name.value}">',
91 91
             ),
92 92
 
93
-            array (
93
+            array(
94 94
               'name' => 'account_name',
95 95
             ),
96 96
           ),
97 97
 
98
-          array (
98
+          array(
99 99
 
100
-            array (
100
+            array(
101 101
               'name' => 'last_name',
102 102
               'displayParams'=>array('required'=>true),
103 103
             ),
104 104
 
105
-            array (
105
+            array(
106 106
               'name' => 'phone_work',
107 107
             ),
108 108
           ),
109 109
 
110
-          array (
110
+          array(
111 111
 
112
-            array (
112
+            array(
113 113
               'name' => 'title',
114 114
             ),
115 115
 
116
-            array (
116
+            array(
117 117
               'name' => 'phone_mobile',
118 118
             ),
119 119
           ),
120 120
 
121
-          array (
121
+          array(
122 122
 
123
-            array (
123
+            array(
124 124
               'name' => 'phone_fax',
125 125
             ),
126 126
 
127
-            array (
127
+            array(
128 128
               'name' => 'do_not_call',
129 129
             ),
130 130
           ),
131 131
 
132
-          array (
133
-            array (
132
+          array(
133
+            array(
134 134
               'name' => 'email1',
135 135
             ),
136
-            array (
136
+            array(
137 137
               'name' => 'lead_source',
138 138
             ),
139 139
           ),
140 140
 
141
-          array (
141
+          array(
142 142
 
143
-            array (
143
+            array(
144 144
               'name' => 'assigned_user_name',
145 145
             ),
146 146
           ),
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,7 @@
 block discarded – undo
1 1
 <?php
2
-if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
2
+if(!defined('sugarEntry') || !sugarEntry) {
3
+    die('Not A Valid Entry Point');
4
+}
3 5
 /*********************************************************************************
4 6
  * SugarCRM Community Edition is a customer relationship management program developed by
5 7
  * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc.
Please login to merge, or discard this patch.
modules/Contacts/metadata/metafiles.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -43,12 +43,12 @@
 block discarded – undo
43 43
  * To change the template for this generated file go to
44 44
  * Window - Preferences - PHPeclipse - PHP - Code Templates
45 45
  */
46
- $metafiles['Contacts'] = array(
47
-	'detailviewdefs'  => 	'modules/Contacts/metadata/detailviewdefs.php', 	
48
-	'editviewdefs'    => 	'modules/Contacts/metadata/editviewdefs.php',
49
- 	'listviewdefs'    => 	'modules/Contacts/metadata/listviewdefs.php',
50
- 	'searchdefs'      =>    'modules/Contacts/metadata/searchdefs.php',
51
- 	'popupdefs'	      =>    'modules/Contacts/metadata/popupdefs.php',
52
- 	'searchfields'	  =>    'modules/Contacts/metadata/SearchFields.php',
53
- );
46
+    $metafiles['Contacts'] = array(
47
+    'detailviewdefs'  => 	'modules/Contacts/metadata/detailviewdefs.php', 	
48
+    'editviewdefs'    => 	'modules/Contacts/metadata/editviewdefs.php',
49
+        'listviewdefs'    => 	'modules/Contacts/metadata/listviewdefs.php',
50
+        'searchdefs'      =>    'modules/Contacts/metadata/searchdefs.php',
51
+        'popupdefs'	      =>    'modules/Contacts/metadata/popupdefs.php',
52
+        'searchfields'	  =>    'modules/Contacts/metadata/SearchFields.php',
53
+    );
54 54
 ?>
Please login to merge, or discard this patch.
modules/Contacts/metadata/listviewdefs.php 3 patches
Indentation   +46 added lines, -46 removed lines patch added patch discarded remove patch
@@ -42,61 +42,61 @@  discard block
 block discarded – undo
42 42
 
43 43
 
44 44
 $listViewDefs['Contacts'] = array(
45
-	'NAME' => array(
46
-		'width' => '20%', 		
47
-		'label' => 'LBL_LIST_NAME', 
48
-		'link' => true,
45
+    'NAME' => array(
46
+        'width' => '20%', 		
47
+        'label' => 'LBL_LIST_NAME', 
48
+        'link' => true,
49 49
         'contextMenu' => array('objectType' => 'sugarPerson', 
50
-                               'metaData' => array('contact_id' => '{$ID}', 
51
-                                                   'module' => 'Contacts',
52
-                                                   'return_action' => 'ListView', 
53
-                                                   'contact_name' => '{$FULL_NAME}', 
54
-                                                   'parent_id' => '{$ACCOUNT_ID}',
55
-                                                   'parent_name' => '{$ACCOUNT_NAME}',
56
-                                                   'return_module' => 'Contacts', 
57
-                                                   'return_action' => 'ListView', 
58
-                                                   'parent_type' => 'Account', 
59
-                                                   'notes_parent_type' => 'Account')
60
-                              ),
61
-		'orderBy' => 'name',
50
+                                'metaData' => array('contact_id' => '{$ID}', 
51
+                                                    'module' => 'Contacts',
52
+                                                    'return_action' => 'ListView', 
53
+                                                    'contact_name' => '{$FULL_NAME}', 
54
+                                                    'parent_id' => '{$ACCOUNT_ID}',
55
+                                                    'parent_name' => '{$ACCOUNT_NAME}',
56
+                                                    'return_module' => 'Contacts', 
57
+                                                    'return_action' => 'ListView', 
58
+                                                    'parent_type' => 'Account', 
59
+                                                    'notes_parent_type' => 'Account')
60
+                                ),
61
+        'orderBy' => 'name',
62 62
         'default' => true,
63 63
         'related_fields' => array('first_name', 'last_name', 'salutation', 'account_name', 'account_id'),
64
-		), 
65
-	'TITLE' => array(
66
-		'width' => '15%', 
67
-		'label' => 'LBL_LIST_TITLE',
64
+        ), 
65
+    'TITLE' => array(
66
+        'width' => '15%', 
67
+        'label' => 'LBL_LIST_TITLE',
68 68
         'default' => true), 
69
-	'ACCOUNT_NAME' => array(
70
-		'width' => '34%', 
71
-		'label' => 'LBL_LIST_ACCOUNT_NAME', 
72
-		'module' => 'Accounts',
73
-		'id' => 'ACCOUNT_ID',
74
-		'link' => true,
69
+    'ACCOUNT_NAME' => array(
70
+        'width' => '34%', 
71
+        'label' => 'LBL_LIST_ACCOUNT_NAME', 
72
+        'module' => 'Accounts',
73
+        'id' => 'ACCOUNT_ID',
74
+        'link' => true,
75 75
         'contextMenu' => array('objectType' => 'sugarAccount', 
76
-                               'metaData' => array('return_module' => 'Contacts', 
77
-                                                   'return_action' => 'ListView', 
78
-                                                   'module' => 'Accounts',
79
-                                                   'return_action' => 'ListView', 
80
-                                                   'parent_id' => '{$ACCOUNT_ID}', 
81
-                                                   'parent_name' => '{$ACCOUNT_NAME}', 
82
-                                                   'account_id' => '{$ACCOUNT_ID}', 
83
-                                                   'account_name' => '{$ACCOUNT_NAME}'),
84
-                              ),
76
+                                'metaData' => array('return_module' => 'Contacts', 
77
+                                                    'return_action' => 'ListView', 
78
+                                                    'module' => 'Accounts',
79
+                                                    'return_action' => 'ListView', 
80
+                                                    'parent_id' => '{$ACCOUNT_ID}', 
81
+                                                    'parent_name' => '{$ACCOUNT_NAME}', 
82
+                                                    'account_id' => '{$ACCOUNT_ID}', 
83
+                                                    'account_name' => '{$ACCOUNT_NAME}'),
84
+                                ),
85 85
         'default' => true,
86 86
         'sortable'=> true,
87 87
         'ACLTag' => 'ACCOUNT',
88 88
         'related_fields' => array('account_id')),
89
-	'EMAIL1' => array(
90
-		'width' => '15%', 
91
-		'label' => 'LBL_LIST_EMAIL_ADDRESS',
92
-		'sortable' => false,
93
-		'link' => true,
94
-		'customCode' => '{$EMAIL1_LINK}{$EMAIL1}</a>',
89
+    'EMAIL1' => array(
90
+        'width' => '15%', 
91
+        'label' => 'LBL_LIST_EMAIL_ADDRESS',
92
+        'sortable' => false,
93
+        'link' => true,
94
+        'customCode' => '{$EMAIL1_LINK}{$EMAIL1}</a>',
95 95
         'default' => true
96
-		),  
97
-	'PHONE_WORK' => array(
98
-		'width' => '15%', 
99
-		'label' => 'LBL_OFFICE_PHONE',
96
+        ),  
97
+    'PHONE_WORK' => array(
98
+        'width' => '15%', 
99
+        'label' => 'LBL_OFFICE_PHONE',
100 100
         'default' => true),
101 101
     'DEPARTMENT' => array(
102 102
         'width' => '10', 
@@ -177,6 +177,6 @@  discard block
 block discarded – undo
177 177
     'DATE_ENTERED' => array(
178 178
         'width' => '10', 
179 179
         'label' => 'LBL_DATE_ENTERED',
180
-		'default' => true)       
180
+        'default' => true)       
181 181
 );
182 182
 ?>
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 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.
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
     'MODIFIED_BY_NAME' => array(
168 168
         'width' => '10', 
169 169
         'label' => 'LBL_MODIFIED'),
170
-    'SYNC_CONTACT' => array (
170
+    'SYNC_CONTACT' => array(
171 171
         'type' => 'bool',
172 172
         'label' => 'LBL_SYNC_CONTACT',
173 173
         'width' => '10%',
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,7 @@
 block discarded – undo
1 1
 <?php
2
-if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
2
+if(!defined('sugarEntry') || !sugarEntry) {
3
+    die('Not A Valid Entry Point');
4
+}
3 5
 /*********************************************************************************
4 6
  * SugarCRM Community Edition is a customer relationship management program developed by
5 7
  * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc.
Please login to merge, or discard this patch.