Completed
Push — console-installer ( 3d54e5...e2b50d )
by Adam
69:10 queued 48:24
created
modules/Activities/SetAcceptStatus.php 1 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.
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
 
43 43
 
44 44
 
45
-    global $json,$current_user;
45
+    global $json, $current_user;
46 46
     
47 47
     
48 48
     if ($_REQUEST['object_type'] == "Meeting")
Please login to merge, or discard this patch.
modules/Activities/EmailReminder.php 1 patch
Spacing   +38 added lines, -38 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.
@@ -68,13 +68,13 @@  discard block
 block discarded – undo
68 68
     public function __construct()
69 69
     {
70 70
         $max_time = 0;
71
-        if(isset($GLOBALS['app_list_strings']['reminder_time_options'])){
72
-            foreach($GLOBALS['app_list_strings']['reminder_time_options'] as $seconds => $value ) {
73
-                if ( $seconds > $max_time ) {
71
+        if (isset($GLOBALS['app_list_strings']['reminder_time_options'])) {
72
+            foreach ($GLOBALS['app_list_strings']['reminder_time_options'] as $seconds => $value) {
73
+                if ($seconds > $max_time) {
74 74
                     $max_time = $seconds;
75 75
                 }
76 76
             }
77
-        }else{
77
+        } else {
78 78
             $max_time = 8400;
79 79
         }
80 80
         $this->now = $GLOBALS['timedate']->nowDb();
@@ -94,22 +94,22 @@  discard block
 block discarded – undo
94 94
         Reminder::sendEmailReminders($this, $admin);
95 95
         
96 96
         $meetings = $this->getMeetingsForRemind();
97
-        foreach($meetings as $id ) {
98
-            $recipients = $this->getRecipients($id,'Meetings');
97
+        foreach ($meetings as $id) {
98
+            $recipients = $this->getRecipients($id, 'Meetings');
99 99
             $bean = new Meeting();
100 100
             $bean->retrieve($id);			
101
-			if ( $this->sendReminders($bean, $admin, $recipients) ) {
101
+			if ($this->sendReminders($bean, $admin, $recipients)) {
102 102
                 $bean->email_reminder_sent = 1;
103 103
                 $bean->save();
104 104
             }            
105 105
         }
106 106
         
107 107
         $calls = $this->getCallsForRemind();
108
-        foreach($calls as $id ) {
109
-            $recipients = $this->getRecipients($id,'Calls');
108
+        foreach ($calls as $id) {
109
+            $recipients = $this->getRecipients($id, 'Calls');
110 110
             $bean = new Call();
111 111
             $bean->retrieve($id);
112
-            if ( $this->sendReminders($bean, $admin, $recipients) ) {
112
+            if ($this->sendReminders($bean, $admin, $recipients)) {
113 113
                 $bean->email_reminder_sent = 1;
114 114
                 $bean->save();
115 115
             }
@@ -128,17 +128,17 @@  discard block
 block discarded – undo
128 128
     public function sendReminders(SugarBean $bean, Administration $admin, $recipients)
129 129
     {
130 130
 
131
-        if ( empty($_SESSION['authenticated_user_language']) ) {
131
+        if (empty($_SESSION['authenticated_user_language'])) {
132 132
             $current_language = $GLOBALS['sugar_config']['default_language'];
133
-        }else{
133
+        } else {
134 134
             $current_language = $_SESSION['authenticated_user_language'];
135 135
         }            
136 136
 
137
-        if ( !empty($bean->created_by) ) {
137
+        if (!empty($bean->created_by)) {
138 138
             $user_id = $bean->created_by;
139
-        }else if ( !empty($bean->assigned_user_id) ) {
139
+        } else if (!empty($bean->assigned_user_id)) {
140 140
             $user_id = $bean->assigned_user_id;
141
-        }else {
141
+        } else {
142 142
             $user_id = $GLOBALS['current_user']->id;
143 143
         }
144 144
         $user = new User();
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
         $mail = new SugarPHPMailer();
150 150
         $mail->setMailerForSystem();
151 151
         
152
-        if(empty($admin->settings['notify_send_from_assigning_user']))
152
+        if (empty($admin->settings['notify_send_from_assigning_user']))
153 153
         {
154 154
             $from_address = $admin->settings['notify_fromaddress'];
155 155
             $from_name = $admin->settings['notify_fromname'] ? "" : $admin->settings['notify_fromname'];
@@ -168,23 +168,23 @@  discard block
 block discarded – undo
168 168
         
169 169
         $template_name = $GLOBALS['beanList'][$bean->module_dir].'Reminder';
170 170
         $xtpl->parse($template_name);
171
-        $xtpl->parse($template_name . "_Subject");
171
+        $xtpl->parse($template_name."_Subject");
172 172
         
173 173
         $mail->Body = from_html(trim($xtpl->text($template_name)));
174
-        $mail->Subject = from_html($xtpl->text($template_name . "_Subject"));
174
+        $mail->Subject = from_html($xtpl->text($template_name."_Subject"));
175 175
 
176 176
         $oe = new OutboundEmail();
177 177
         $oe = $oe->getSystemMailerSettings();
178
-        if ( empty($oe->mail_smtpserver) ) {
178
+        if (empty($oe->mail_smtpserver)) {
179 179
             $GLOBALS['log']->fatal("Email Reminder: error sending email, system smtp server is not set");
180 180
             return;
181 181
         }
182 182
 				
183
-        foreach($recipients as $r ) {
183
+        foreach ($recipients as $r) {
184 184
             $mail->ClearAddresses();
185
-            $mail->AddAddress($r['email'],$GLOBALS['locale']->translateCharsetMIME(trim($r['name']), 'UTF-8', $OBCharset));    
185
+            $mail->AddAddress($r['email'], $GLOBALS['locale']->translateCharsetMIME(trim($r['name']), 'UTF-8', $OBCharset));    
186 186
             $mail->prepForOutbound();
187
-            if ( !$mail->Send() ) {
187
+            if (!$mail->Send()) {
188 188
                 $GLOBALS['log']->fatal("Email Reminder: error sending e-mail (method: {$mail->Mailer}), (error: {$mail->ErrorInfo})");
189 189
             }
190 190
         }
@@ -205,9 +205,9 @@  discard block
 block discarded – undo
205 205
         $object = strtoupper($bean->object_name);
206 206
 
207 207
         $xtpl->assign("{$object}_SUBJECT", $bean->name);
208
-        $date = $GLOBALS['timedate']->fromUser($bean->date_start,$GLOBALS['current_user']);
208
+        $date = $GLOBALS['timedate']->fromUser($bean->date_start, $GLOBALS['current_user']);
209 209
         $xtpl->assign("{$object}_STARTDATE", $GLOBALS['timedate']->asUser($date, $user)." ".TimeDate::userTimezoneSuffix($date, $user));
210
-        if ( isset($bean->location) ) {
210
+        if (isset($bean->location)) {
211 211
             $xtpl->assign("{$object}_LOCATION", $bean->location);
212 212
         }
213 213
         $xtpl->assign("{$object}_CREATED_BY", $user->full_name);
@@ -234,10 +234,10 @@  discard block
 block discarded – undo
234 234
         ";
235 235
         $re = $db->query($query);
236 236
         $meetings = array();
237
-        while($row = $db->fetchByAssoc($re) ) {
238
-            $remind_ts = $GLOBALS['timedate']->fromDb($db->fromConvert($row['date_start'],'datetime'))->modify("-{$row['email_reminder_time']} seconds")->ts;
237
+        while ($row = $db->fetchByAssoc($re)) {
238
+            $remind_ts = $GLOBALS['timedate']->fromDb($db->fromConvert($row['date_start'], 'datetime'))->modify("-{$row['email_reminder_time']} seconds")->ts;
239 239
             $now_ts = $GLOBALS['timedate']->getNow()->ts;
240
-            if ( $now_ts >= $remind_ts ) {
240
+            if ($now_ts >= $remind_ts) {
241 241
                 $meetings[] = $row['id'];
242 242
             }
243 243
         }
@@ -262,10 +262,10 @@  discard block
 block discarded – undo
262 262
         ";
263 263
         $re = $db->query($query);
264 264
         $calls = array();
265
-        while($row = $db->fetchByAssoc($re) ) {
266
-            $remind_ts = $GLOBALS['timedate']->fromDb($db->fromConvert($row['date_start'],'datetime'))->modify("-{$row['email_reminder_time']} seconds")->ts;
265
+        while ($row = $db->fetchByAssoc($re)) {
266
+            $remind_ts = $GLOBALS['timedate']->fromDb($db->fromConvert($row['date_start'], 'datetime'))->modify("-{$row['email_reminder_time']} seconds")->ts;
267 267
             $now_ts = $GLOBALS['timedate']->getNow()->ts;
268
-            if ( $now_ts >= $remind_ts ) {
268
+            if ($now_ts >= $remind_ts) {
269 269
                 $calls[] = $row['id'];
270 270
             }
271 271
         }
@@ -282,7 +282,7 @@  discard block
 block discarded – undo
282 282
     {
283 283
         global $db;
284 284
     
285
-        switch($module ) {
285
+        switch ($module) {
286 286
             case "Meetings":
287 287
                 $field_part = "meeting";
288 288
                 break;
@@ -298,10 +298,10 @@  discard block
 block discarded – undo
298 298
         $query = "SELECT user_id FROM {$field_part}s_users WHERE {$field_part}_id = '{$id}' AND accept_status != 'decline' AND deleted = 0
299 299
         ";
300 300
         $re = $db->query($query);
301
-        while($row = $db->fetchByAssoc($re) ) {
301
+        while ($row = $db->fetchByAssoc($re)) {
302 302
             $user = new User();
303 303
             $user->retrieve($row['user_id']);
304
-            if ( !empty($user->email1) ) {
304
+            if (!empty($user->email1)) {
305 305
                 $arr = array(
306 306
                     'type' => 'Users',
307 307
                     'name' => $user->full_name,
@@ -313,10 +313,10 @@  discard block
 block discarded – undo
313 313
         // fetch contacts
314 314
         $query = "SELECT contact_id FROM {$field_part}s_contacts WHERE {$field_part}_id = '{$id}' AND accept_status != 'decline' AND deleted = 0";
315 315
         $re = $db->query($query);
316
-        while($row = $db->fetchByAssoc($re) ) {
316
+        while ($row = $db->fetchByAssoc($re)) {
317 317
             $contact = new Contact();
318 318
             $contact->retrieve($row['contact_id']);
319
-            if ( !empty($contact->email1) ) {
319
+            if (!empty($contact->email1)) {
320 320
                 $arr = array(
321 321
                     'type' => 'Contacts',
322 322
                     'name' => $contact->full_name,
@@ -328,10 +328,10 @@  discard block
 block discarded – undo
328 328
         // fetch leads
329 329
         $query = "SELECT lead_id FROM {$field_part}s_leads WHERE {$field_part}_id = '{$id}' AND accept_status != 'decline' AND deleted = 0";
330 330
         $re = $db->query($query);
331
-        while($row = $db->fetchByAssoc($re) ) {
331
+        while ($row = $db->fetchByAssoc($re)) {
332 332
             $lead = new Lead();
333 333
             $lead->retrieve($row['lead_id']);
334
-            if ( !empty($lead->email1) ) {
334
+            if (!empty($lead->email1)) {
335 335
                 $arr = array(
336 336
                     'type' => 'Leads',
337 337
                     'name' => $lead->full_name,
Please login to merge, or discard this patch.
modules/Leads/metadata/additionalDetails.php 1 patch
Spacing   +26 added lines, -26 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.
@@ -41,46 +41,46 @@  discard block
 block discarded – undo
41 41
  
42 42
 function additionalDetailsLead($fields) {
43 43
 	static $mod_strings;
44
-	if(empty($mod_strings)) {
44
+	if (empty($mod_strings)) {
45 45
 		global $current_language;
46 46
 		$mod_strings = return_module_language($current_language, 'Leads');
47 47
 	}
48 48
 		
49 49
 	$overlib_string = '';
50
-    if(!empty($fields['ID'])) {
51
-        $overlib_string .= '<input type="hidden" value="'. $fields['ID'];
50
+    if (!empty($fields['ID'])) {
51
+        $overlib_string .= '<input type="hidden" value="'.$fields['ID'];
52 52
         $overlib_string .= '">';
53 53
     }
54 54
 
55
-    $overlib_string .= '<h2><img src="index.php?entryPoint=getImage&themeName=' . SugarThemeRegistry::current()->name .'&imageName=Leads.gif"/> '.$mod_strings['LBL_CONTACT'].'</h2>';
55
+    $overlib_string .= '<h2><img src="index.php?entryPoint=getImage&themeName='.SugarThemeRegistry::current()->name.'&imageName=Leads.gif"/> '.$mod_strings['LBL_CONTACT'].'</h2>';
56 56
 
57
-    if(!empty($fields['PRIMARY_ADDRESS_STREET']) || !empty($fields['PRIMARY_ADDRESS_CITY']) ||
57
+    if (!empty($fields['PRIMARY_ADDRESS_STREET']) || !empty($fields['PRIMARY_ADDRESS_CITY']) ||
58 58
 		!empty($fields['PRIMARY_ADDRESS_STATE']) || !empty($fields['PRIMARY_ADDRESS_POSTALCODE']) ||
59 59
 		!empty($fields['PRIMARY_ADDRESS_COUNTRY']))
60
-			$overlib_string .= '<b>' . $mod_strings['LBL_PRIMARY_ADDRESS'] . '</b><br>';
61
-	if(!empty($fields['PRIMARY_ADDRESS_STREET'])) $overlib_string .= $fields['PRIMARY_ADDRESS_STREET'] . '<br>';
62
-	if(!empty($fields['PRIMARY_ADDRESS_CITY'])) $overlib_string .= $fields['PRIMARY_ADDRESS_CITY'] . ', ';
63
-	if(!empty($fields['PRIMARY_ADDRESS_STATE'])) $overlib_string .= $fields['PRIMARY_ADDRESS_STATE'] . ' ';
64
-	if(!empty($fields['PRIMARY_ADDRESS_POSTALCODE'])) $overlib_string .= $fields['PRIMARY_ADDRESS_POSTALCODE'] . ' ';
65
-	if(!empty($fields['PRIMARY_ADDRESS_COUNTRY'])) $overlib_string .= $fields['PRIMARY_ADDRESS_COUNTRY'] . '<br>';
66
-	if(strlen($overlib_string) > 0 && !(strrpos($overlib_string, '<br>') == strlen($overlib_string) - 4)) 
60
+			$overlib_string .= '<b>'.$mod_strings['LBL_PRIMARY_ADDRESS'].'</b><br>';
61
+	if (!empty($fields['PRIMARY_ADDRESS_STREET'])) $overlib_string .= $fields['PRIMARY_ADDRESS_STREET'].'<br>';
62
+	if (!empty($fields['PRIMARY_ADDRESS_CITY'])) $overlib_string .= $fields['PRIMARY_ADDRESS_CITY'].', ';
63
+	if (!empty($fields['PRIMARY_ADDRESS_STATE'])) $overlib_string .= $fields['PRIMARY_ADDRESS_STATE'].' ';
64
+	if (!empty($fields['PRIMARY_ADDRESS_POSTALCODE'])) $overlib_string .= $fields['PRIMARY_ADDRESS_POSTALCODE'].' ';
65
+	if (!empty($fields['PRIMARY_ADDRESS_COUNTRY'])) $overlib_string .= $fields['PRIMARY_ADDRESS_COUNTRY'].'<br>';
66
+	if (strlen($overlib_string) > 0 && !(strrpos($overlib_string, '<br>') == strlen($overlib_string) - 4)) 
67 67
 		$overlib_string .= '<br>';  
68
-		if(!empty($fields['PHONE_MOBILE'])) $overlib_string .= '<b>'. $mod_strings['LBL_MOBILE_PHONE'] . '</b> <span class="phone">' . $fields['PHONE_MOBILE'] . '</span><br>';
69
-	if(!empty($fields['PHONE_HOME'])) $overlib_string .= '<b>'. $mod_strings['LBL_HOME_PHONE'] . '</b> <span class="phone">' . $fields['PHONE_HOME'] . '</span><br>';
70
-	if(!empty($fields['PHONE_OTHER'])) $overlib_string .= '<b>'. $mod_strings['LBL_OTHER_PHONE'] . '</b> <span class="phone">' . $fields['PHONE_OTHER'] . '</span><br>';
71
-	if(!empty($fields['LEAD_SOURCE'])) $overlib_string .= '<b>'. $mod_strings['LBL_LEAD_SOURCE'] . '</b> ' . $fields['LEAD_SOURCE'] . '<br>';
68
+		if (!empty($fields['PHONE_MOBILE'])) $overlib_string .= '<b>'.$mod_strings['LBL_MOBILE_PHONE'].'</b> <span class="phone">'.$fields['PHONE_MOBILE'].'</span><br>';
69
+	if (!empty($fields['PHONE_HOME'])) $overlib_string .= '<b>'.$mod_strings['LBL_HOME_PHONE'].'</b> <span class="phone">'.$fields['PHONE_HOME'].'</span><br>';
70
+	if (!empty($fields['PHONE_OTHER'])) $overlib_string .= '<b>'.$mod_strings['LBL_OTHER_PHONE'].'</b> <span class="phone">'.$fields['PHONE_OTHER'].'</span><br>';
71
+	if (!empty($fields['LEAD_SOURCE'])) $overlib_string .= '<b>'.$mod_strings['LBL_LEAD_SOURCE'].'</b> '.$fields['LEAD_SOURCE'].'<br>';
72 72
 
73
-	if(!empty($fields['EMAIL2'])) 
74
-		$overlib_string .= '<b>'. $mod_strings['LBL_OTHER_EMAIL_ADDRESS'] . '</b> ' . 
75
-								 "<a href=index.php?module=Emails&action=Compose&contact_id={$fields['ID']}&" .
76
-								 "parent_type=Contacts&parent_id={$fields['ID']}&to_addrs_ids={$fields['ID']}&to_addrs_names" .
77
-								 "={$fields['FIRST_NAME']}&nbsp;{$fields['LAST_NAME']}&to_addrs_emails={$fields['EMAIL2']}&" .
78
-								 "to_email_addrs=" . urlencode("{$fields['FIRST_NAME']} {$fields['LAST_NAME']} <{$fields['EMAIL2']}>") .
73
+	if (!empty($fields['EMAIL2'])) 
74
+		$overlib_string .= '<b>'.$mod_strings['LBL_OTHER_EMAIL_ADDRESS'].'</b> '. 
75
+								 "<a href=index.php?module=Emails&action=Compose&contact_id={$fields['ID']}&".
76
+								 "parent_type=Contacts&parent_id={$fields['ID']}&to_addrs_ids={$fields['ID']}&to_addrs_names".
77
+								 "={$fields['FIRST_NAME']}&nbsp;{$fields['LAST_NAME']}&to_addrs_emails={$fields['EMAIL2']}&".
78
+								 "to_email_addrs=".urlencode("{$fields['FIRST_NAME']} {$fields['LAST_NAME']} <{$fields['EMAIL2']}>").
79 79
 								 "&return_module=Contacts&return_action=ListView'>{$fields['EMAIL2']}</a><br>";
80 80
 	
81
-	if(!empty($fields['DESCRIPTION'])) { 
82
-		$overlib_string .= '<b>'. $mod_strings['LBL_DESCRIPTION'] . '</b> ' . substr($fields['DESCRIPTION'], 0, 300);
83
-		if(strlen($fields['DESCRIPTION']) > 300) $overlib_string .= '...';
81
+	if (!empty($fields['DESCRIPTION'])) { 
82
+		$overlib_string .= '<b>'.$mod_strings['LBL_DESCRIPTION'].'</b> '.substr($fields['DESCRIPTION'], 0, 300);
83
+		if (strlen($fields['DESCRIPTION']) > 300) $overlib_string .= '...';
84 84
 	}	
85 85
 	
86 86
 	return array('fieldToAddTo' => 'NAME', 
Please login to merge, or discard this patch.
modules/Leads/metadata/convertdefs.php 1 patch
Spacing   +48 added lines, -48 removed lines patch added patch discarded remove patch
@@ -58,41 +58,41 @@  discard block
 block discarded – undo
58 58
             array('label' => '10', 'field' => '30'),
59 59
         ),
60 60
     ),
61
-    'panels' =>array (
62
-        'LNK_NEW_CONTACT' => array (
63
-            array (
64
-                array (
61
+    'panels' =>array(
62
+        'LNK_NEW_CONTACT' => array(
63
+            array(
64
+                array(
65 65
                     'name' => 'first_name',
66 66
                     'customCode' => '{html_options name="Contactssalutation" options=$fields.salutation.options selected=$fields.salutation.value}&nbsp;<input name="Contactsfirst_name" size="25" maxlength="25" type="text" value="{$fields.first_name.value}">',
67 67
                 ),
68 68
                 'title',
69 69
             ), 
70
-            array (
70
+            array(
71 71
                 
72 72
                 'last_name',
73 73
                 'department',
74 74
             ),
75
-            array (
75
+            array(
76 76
                 array('name' => 'primary_address_street', 'label' => 'LBL_PRIMARY_ADDRESS'),
77 77
                 'phone_work',
78 78
             ),
79
-            array (
79
+            array(
80 80
                 array('name'=>'primary_address_city', 'label' => 'LBL_CITY'),
81 81
                 'phone_mobile',
82 82
             ),
83
-            array (
83
+            array(
84 84
                 array('name'=>'primary_address_state', 'label' => 'LBL_STATE'),
85 85
                 'phone_other',
86 86
             ),
87
-            array (
87
+            array(
88 88
                 array('name'=>'primary_address_postalcode', 'label' => 'LBL_POSTAL_CODE'),
89 89
                 'phone_fax',
90 90
             ),
91
-            array (
91
+            array(
92 92
                 array('name'=>'primary_address_country', 'label' => 'LBL_COUNTRY'),
93 93
                 'lead_source',
94 94
             ),
95
-            array (
95
+            array(
96 96
                 'email1'
97 97
             ),
98 98
             array(
@@ -123,13 +123,13 @@  discard block
 block discarded – undo
123 123
             array('label' => '10', 'field' => '30'),
124 124
         ),
125 125
     ),
126
-    'panels' =>array (
127
-        'LNK_NEW_ACCOUNT' => array (
128
-            array (
126
+    'panels' =>array(
127
+        'LNK_NEW_ACCOUNT' => array(
128
+            array(
129 129
                 'name',
130 130
                 'phone_office',
131 131
             ),
132
-            array (
132
+            array(
133 133
                 'website',
134 134
             ),
135 135
             array(
@@ -152,21 +152,21 @@  discard block
 block discarded – undo
152 152
             array('label' => '10', 'field' => '30'),
153 153
         ),
154 154
     ),
155
-    'panels' =>array (
156
-        'LNK_NEW_OPPORTUNITY' => array (
157
-            array (
155
+    'panels' =>array(
156
+        'LNK_NEW_OPPORTUNITY' => array(
157
+            array(
158 158
                 'name',
159 159
                 'currency_id'
160 160
             ), 
161
-            array (
161
+            array(
162 162
                 'sales_stage',
163 163
                 'amount'
164 164
             ),
165
-            array (
165
+            array(
166 166
                 'date_closed',
167 167
                 ''
168 168
             ),
169
-            array (
169
+            array(
170 170
                 'description'
171 171
             ),
172 172
         )
@@ -191,13 +191,13 @@  discard block
 block discarded – undo
191 191
             array('label' => '10', 'field' => '30'),    
192 192
         ),
193 193
     ),
194
-    'panels' =>array (
195
-        'LNK_NEW_NOTE' => array (
196
-            array (
194
+    'panels' =>array(
195
+        'LNK_NEW_NOTE' => array(
196
+            array(
197 197
                 array('name'=>'name', 'displayParams'=>array('size'=>90)),
198 198
             ), 
199
-            array (
200
-                array('name' => 'description', 'displayParams' => array('rows'=>10, 'cols'=>90) ),
199
+            array(
200
+                array('name' => 'description', 'displayParams' => array('rows'=>10, 'cols'=>90)),
201 201
             ),
202 202
         )
203 203
     ),
@@ -223,14 +223,14 @@  discard block
 block discarded – undo
223 223
             array('label' => '10', 'field' => '30'),
224 224
         ),
225 225
     ),
226
-    'panels' =>array (
227
-        'LNK_NEW_CALL' => array (
228
-            array (
226
+    'panels' =>array(
227
+        'LNK_NEW_CALL' => array(
228
+            array(
229 229
                 array('name'=>'name', 'displayParams'=>array('size'=>90)),
230 230
             ), 
231
-            array (
231
+            array(
232 232
                'date_start', 
233
-                array (
233
+                array(
234 234
                     'name' => 'duration_hours',
235 235
                     'label' => 'LBL_DURATION',
236 236
                     'customCode' => '{literal}
@@ -249,13 +249,13 @@  discard block
 block discarded – undo
249 249
 {html_options name="Callsduration_minutes" options=$minutes_values selected=$fields.duration_minutes.value} &nbsp;
250 250
 <span class="dateFormat">{sugar_translate label="LBL_HOURS_MINUTES" module="Calls"}',
251 251
                     'displayParams' => 
252
-                    array (
252
+                    array(
253 253
                       'required' => true,
254 254
                     ),
255 255
                 ),
256 256
             ),
257
-            array (
258
-                array('name' => 'description', 'displayParams' => array('rows'=>10, 'cols'=>90) ),
257
+            array(
258
+                array('name' => 'description', 'displayParams' => array('rows'=>10, 'cols'=>90)),
259 259
             ),
260 260
         )
261 261
     ),
@@ -282,14 +282,14 @@  discard block
 block discarded – undo
282 282
             array('label' => '10', 'field' => '30'),
283 283
         ),
284 284
     ),
285
-    'panels' =>array (
286
-        'LNK_NEW_MEETING' => array (
287
-            array (
285
+    'panels' =>array(
286
+        'LNK_NEW_MEETING' => array(
287
+            array(
288 288
                 array('name'=>'name', 'displayParams'=>array('size'=>90)),
289 289
             ), 
290
-            array (
290
+            array(
291 291
                'date_start', 
292
-	            array (
292
+	            array(
293 293
                     'name' => 'duration_hours',
294 294
                     'label' => 'LBL_DURATION',
295 295
                     'customCode' => '{literal}
@@ -308,13 +308,13 @@  discard block
 block discarded – undo
308 308
 {html_options name="Meetingsduration_minutes" options=$minutes_values selected=$fields.duration_minutes.value} &nbsp;
309 309
 <span class="dateFormat">{sugar_translate label="LBL_HOURS_MINUTES" module="Calls"}',
310 310
                     'displayParams' => 
311
-                    array (
311
+                    array(
312 312
                       'required' => true,
313 313
                     ),
314 314
                 ),
315 315
             ),
316
-            array (
317
-                array('name' => 'description', 'displayParams' => array('rows'=>10, 'cols'=>90) ),
316
+            array(
317
+                array('name' => 'description', 'displayParams' => array('rows'=>10, 'cols'=>90)),
318 318
             ),
319 319
         )
320 320
     ),
@@ -339,17 +339,17 @@  discard block
 block discarded – undo
339 339
             array('label' => '10', 'field' => '30'),
340 340
         ),
341 341
     ),
342
-    'panels' =>array (
343
-        'LNK_NEW_TASK' => array (
344
-            array (
342
+    'panels' =>array(
343
+        'LNK_NEW_TASK' => array(
344
+            array(
345 345
                 array('name'=>'name', 'displayParams'=>array('size'=>90)),
346 346
             ), 
347
-			array (
347
+			array(
348 348
                'status', 'priority'
349 349
             ), 
350 350
             
351
-            array (
352
-                array('name' => 'description', 'displayParams' => array('rows'=>10, 'cols'=>90) ),
351
+            array(
352
+                array('name' => 'description', 'displayParams' => array('rows'=>10, 'cols'=>90)),
353 353
             ),
354 354
         )
355 355
     ),
Please login to merge, or discard this patch.
modules/Leads/metadata/editviewdefs.php 1 patch
Spacing   +39 added lines, -39 removed lines patch added patch discarded remove patch
@@ -1,35 +1,35 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 $viewdefs ['Leads'] = 
3
-array (
3
+array(
4 4
   'EditView' => 
5
-  array (
5
+  array(
6 6
     'templateMeta' => 
7
-    array (
7
+    array(
8 8
       'form' => 
9
-      array (
9
+      array(
10 10
         'hidden' => 
11
-        array (
11
+        array(
12 12
           0 => '<input type="hidden" name="prospect_id" value="{if isset($smarty.request.prospect_id)}{$smarty.request.prospect_id}{else}{$bean->prospect_id}{/if}">',
13 13
           1 => '<input type="hidden" name="account_id" value="{if isset($smarty.request.account_id)}{$smarty.request.account_id}{else}{$bean->account_id}{/if}">',
14 14
           2 => '<input type="hidden" name="contact_id" value="{if isset($smarty.request.contact_id)}{$smarty.request.contact_id}{else}{$bean->contact_id}{/if}">',
15 15
           3 => '<input type="hidden" name="opportunity_id" value="{if isset($smarty.request.opportunity_id)}{$smarty.request.opportunity_id}{else}{$bean->opportunity_id}{/if}">',
16 16
         ),
17 17
         'buttons' => 
18
-        array (
18
+        array(
19 19
           0 => 'SAVE',
20 20
           1 => 'CANCEL',
21 21
         ),
22 22
       ),
23 23
       'maxColumns' => '2',
24 24
       'widths' => 
25
-      array (
25
+      array(
26 26
         0 => 
27
-        array (
27
+        array(
28 28
           'label' => '10',
29 29
           'field' => '30',
30 30
         ),
31 31
         1 => 
32
-        array (
32
+        array(
33 33
           'label' => '10',
34 34
           'field' => '30',
35 35
         ),
@@ -37,55 +37,55 @@  discard block
 block discarded – undo
37 37
       'javascript' => '<script type="text/javascript" language="Javascript">function copyAddressRight(form)  {ldelim} form.alt_address_street.value = form.primary_address_street.value;form.alt_address_city.value = form.primary_address_city.value;form.alt_address_state.value = form.primary_address_state.value;form.alt_address_postalcode.value = form.primary_address_postalcode.value;form.alt_address_country.value = form.primary_address_country.value;return true; {rdelim} function copyAddressLeft(form)  {ldelim} form.primary_address_street.value =form.alt_address_street.value;form.primary_address_city.value = form.alt_address_city.value;form.primary_address_state.value = form.alt_address_state.value;form.primary_address_postalcode.value =form.alt_address_postalcode.value;form.primary_address_country.value = form.alt_address_country.value;return true; {rdelim} </script>',
38 38
       'useTabs' => false,
39 39
       'tabDefs' => 
40
-      array (
40
+      array(
41 41
         'LBL_CONTACT_INFORMATION' => 
42
-        array (
42
+        array(
43 43
           'newTab' => false,
44 44
           'panelDefault' => 'expanded',
45 45
         ),
46 46
         'LBL_PANEL_ADVANCED' => 
47
-        array (
47
+        array(
48 48
           'newTab' => false,
49 49
           'panelDefault' => 'expanded',
50 50
         ),
51 51
         'LBL_PANEL_ASSIGNMENT' => 
52
-        array (
52
+        array(
53 53
           'newTab' => false,
54 54
           'panelDefault' => 'expanded',
55 55
         ),
56 56
       ),
57 57
     ),
58 58
     'panels' => 
59
-    array (
59
+    array(
60 60
       'LBL_CONTACT_INFORMATION' => 
61
-      array (
61
+      array(
62 62
         0 => 
63
-        array (
63
+        array(
64 64
           0 => 
65
-          array (
65
+          array(
66 66
             'name' => 'first_name',
67 67
             '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}">',
68 68
           ),
69 69
         ),
70 70
         1 => 
71
-        array (
71
+        array(
72 72
           0 => 'last_name',
73 73
           1 => 'phone_work',
74 74
         ),
75 75
         2 => 
76
-        array (
76
+        array(
77 77
           0 => 'title',
78 78
           1 => 'phone_mobile',
79 79
         ),
80 80
         3 => 
81
-        array (
81
+        array(
82 82
           0 => 'department',
83 83
           1 => 'phone_fax',
84 84
         ),
85 85
         4 => 
86
-        array (
86
+        array(
87 87
           0 => 
88
-          array (
88
+          array(
89 89
             'name' => 'account_name',
90 90
             'type' => 'varchar',
91 91
             'validateDependency' => false,
@@ -94,14 +94,14 @@  discard block
 block discarded – undo
94 94
           1 => 'website',
95 95
         ),
96 96
         5 => 
97
-        array (
97
+        array(
98 98
           0 => 
99
-          array (
99
+          array(
100 100
             'name' => 'primary_address_street',
101 101
             'hideLabel' => true,
102 102
             'type' => 'address',
103 103
             'displayParams' => 
104
-            array (
104
+            array(
105 105
               'key' => 'primary',
106 106
               'rows' => 2,
107 107
               'cols' => 30,
@@ -109,12 +109,12 @@  discard block
 block discarded – undo
109 109
             ),
110 110
           ),
111 111
           1 => 
112
-          array (
112
+          array(
113 113
             'name' => 'alt_address_street',
114 114
             'hideLabel' => true,
115 115
             'type' => 'address',
116 116
             'displayParams' => 
117
-            array (
117
+            array(
118 118
               'key' => 'alt',
119 119
               'copy' => 'primary',
120 120
               'rows' => 2,
@@ -124,48 +124,48 @@  discard block
 block discarded – undo
124 124
           ),
125 125
         ),
126 126
         6 => 
127
-        array (
127
+        array(
128 128
           0 => 'email1',
129 129
         ),
130 130
         7 => 
131
-        array (
131
+        array(
132 132
           0 => 'description',
133 133
         ),
134 134
       ),
135 135
       'LBL_PANEL_ADVANCED' => 
136
-      array (
136
+      array(
137 137
         0 => 
138
-        array (
138
+        array(
139 139
           0 => 'status',
140 140
           1 => 'lead_source',
141 141
         ),
142 142
         1 => 
143
-        array (
143
+        array(
144 144
           0 => 
145
-          array (
145
+          array(
146 146
             'name' => 'status_description',
147 147
           ),
148 148
           1 => 
149
-          array (
149
+          array(
150 150
             'name' => 'lead_source_description',
151 151
           ),
152 152
         ),
153 153
         2 => 
154
-        array (
154
+        array(
155 155
           0 => 'opportunity_amount',
156 156
           1 => 'refered_by',
157 157
         ),
158 158
         3 => 
159
-        array (
159
+        array(
160 160
           0 => 'campaign_name',
161 161
         ),
162 162
       ),
163 163
       'LBL_PANEL_ASSIGNMENT' => 
164
-      array (
164
+      array(
165 165
         0 => 
166
-        array (
166
+        array(
167 167
           0 => 
168
-          array (
168
+          array(
169 169
             'name' => 'assigned_user_name',
170 170
             'label' => 'LBL_ASSIGNED_TO',
171 171
           ),
Please login to merge, or discard this patch.
modules/Leads/metadata/SearchFields.php 1 patch
Spacing   +20 added lines, -20 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,15 +40,15 @@  discard block
 block discarded – undo
40 40
 global $current_user;
41 41
 $module_name = "Leads";
42 42
 $searchFields['Leads'] = 
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('leads.account_name')),
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('leads.account_name')),
48 48
 		/*'acc_name_from_accounts' => array('query_type'=>'default','related_field'=>'account_name'),*/
49
-        'lead_source'=> array('query_type'=>'default','operator'=>'=', 'options'=>'lead_source_dom', 'template_var' => 'LEAD_SOURCE_OPTIONS'),
49
+        'lead_source'=> array('query_type'=>'default', 'operator'=>'=', 'options'=>'lead_source_dom', 'template_var' => 'LEAD_SOURCE_OPTIONS'),
50 50
         'do_not_call'=> array('query_type'=>'default', 'operator'=>'=', 'input_type' => 'checkbox'),
51
-        'phone'=> array('query_type'=>'default','db_field'=>array('phone_mobile','phone_work','phone_other','phone_fax','phone_home')),
51
+        'phone'=> array('query_type'=>'default', 'db_field'=>array('phone_mobile', 'phone_work', 'phone_other', 'phone_fax', 'phone_home')),
52 52
 		'email'=> array(
53 53
 			'query_type' => 'default',
54 54
 			'operator' => 'subquery',
@@ -63,16 +63,16 @@  discard block
 block discarded – undo
63 63
             'subquery' => 'SELECT favorites.parent_id FROM favorites
64 64
 			                    WHERE favorites.deleted = 0
65 65
 			                        and favorites.parent_type = "'.$module_name.'"
66
-			                        and favorites.assigned_user_id = "' .$current_user->id . '") OR NOT ({0}',
66
+			                        and favorites.assigned_user_id = "' .$current_user->id.'") OR NOT ({0}',
67 67
             'db_field'=>array('id')),
68 68
         'assistant'=> array('query_type'=>'default'),
69 69
         'website'=> array('query_type'=>'default'),
70
-        'address_street'=> array('query_type'=>'default','db_field'=>array('primary_address_street','alt_address_street')),
71
-        'address_city'=> array('query_type'=>'default','db_field'=>array('primary_address_city','alt_address_city')),
72
-        'address_state'=> array('query_type'=>'default','db_field'=>array('primary_address_state','alt_address_state')),
73
-        'address_postalcode'=> array('query_type'=>'default','db_field'=>array('primary_address_postalcode','alt_address_postalcode')),
74
-        'address_country'=> array('query_type'=>'default','db_field'=>array('primary_address_country','alt_address_country')),
75
-        'current_user_only'=> array('query_type'=>'default','db_field'=>array('assigned_user_id'),'my_items'=>true, 'vname' => 'LBL_CURRENT_USER_FILTER', 'type' => 'bool'),
70
+        'address_street'=> array('query_type'=>'default', 'db_field'=>array('primary_address_street', 'alt_address_street')),
71
+        'address_city'=> array('query_type'=>'default', 'db_field'=>array('primary_address_city', 'alt_address_city')),
72
+        'address_state'=> array('query_type'=>'default', 'db_field'=>array('primary_address_state', 'alt_address_state')),
73
+        'address_postalcode'=> array('query_type'=>'default', 'db_field'=>array('primary_address_postalcode', 'alt_address_postalcode')),
74
+        'address_country'=> array('query_type'=>'default', 'db_field'=>array('primary_address_country', 'alt_address_country')),
75
+        'current_user_only'=> array('query_type'=>'default', 'db_field'=>array('assigned_user_id'), 'my_items'=>true, 'vname' => 'LBL_CURRENT_USER_FILTER', 'type' => 'bool'),
76 76
         'assigned_user_id'=> array('query_type'=>'default'),
77 77
         'status'=> array('query_type'=>'default', 'options'=>'lead_status_dom', 'template_var' => 'STATUS_OPTIONS'),
78 78
 		'open_only' => array(
@@ -83,12 +83,12 @@  discard block
 block discarded – undo
83 83
 			'type'=>'bool',
84 84
 		),
85 85
 		//Range Search Support 
86
-	    'range_date_entered' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
87
-	    'start_range_date_entered' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
88
-	    'end_range_date_entered' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
89
-	    'range_date_modified' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
90
-	    'start_range_date_modified' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
91
-        'end_range_date_modified' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),	
86
+	    'range_date_entered' => array('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
87
+	    'start_range_date_entered' => array('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
88
+	    'end_range_date_entered' => array('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
89
+	    'range_date_modified' => array('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
90
+	    'start_range_date_modified' => array('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
91
+        'end_range_date_modified' => array('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),	
92 92
 	    //Range Search Support 				
93 93
     );
94 94
 ?>
95 95
\ No newline at end of file
Please login to merge, or discard this patch.
modules/Leads/metadata/detailviewdefs.php 1 patch
Spacing   +48 added lines, -48 removed lines patch added patch discarded remove patch
@@ -1,26 +1,26 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 $viewdefs ['Leads'] = 
3
-array (
3
+array(
4 4
   'DetailView' => 
5
-  array (
5
+  array(
6 6
     'templateMeta' => 
7
-    array (
7
+    array(
8 8
       'form' => 
9
-      array (
9
+      array(
10 10
         'buttons' => 
11
-        array (
11
+        array(
12 12
           0 => 'EDIT',
13 13
           1 => 'DUPLICATE',
14 14
           2 => 'DELETE',
15 15
           3 => 
16
-          array (
16
+          array(
17 17
             'customCode' => '{if $bean->aclAccess("edit") && !$DISABLE_CONVERT_ACTION}<input title="{$MOD.LBL_CONVERTLEAD_TITLE}" accessKey="{$MOD.LBL_CONVERTLEAD_BUTTON_KEY}" type="button" class="button" onClick="document.location=\'index.php?module=Leads&action=ConvertLead&record={$fields.id.value}\'" name="convert" value="{$MOD.LBL_CONVERTLEAD}">{/if}',
18 18
             'sugar_html' => 
19
-            array (
19
+            array(
20 20
               'type' => 'button',
21 21
               'value' => '{$MOD.LBL_CONVERTLEAD}',
22 22
               'htmlOptions' => 
23
-              array (
23
+              array(
24 24
                 'title' => '{$MOD.LBL_CONVERTLEAD_TITLE}',
25 25
                 'accessKey' => '{$MOD.LBL_CONVERTLEAD_BUTTON_KEY}',
26 26
                 'class' => 'button',
@@ -33,14 +33,14 @@  discard block
 block discarded – undo
33 33
           ),
34 34
           4 => 'FIND_DUPLICATES',
35 35
           5 => 
36
-          array (
36
+          array(
37 37
             'customCode' => '<input title="{$APP.LBL_MANAGE_SUBSCRIPTIONS}" class="button" onclick="this.form.return_module.value=\'Leads\'; 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=\'Leads\';" type="submit" name="Manage Subscriptions" value="{$APP.LBL_MANAGE_SUBSCRIPTIONS}">',
38 38
             'sugar_html' => 
39
-            array (
39
+            array(
40 40
               'type' => 'submit',
41 41
               'value' => '{$APP.LBL_MANAGE_SUBSCRIPTIONS}',
42 42
               'htmlOptions' => 
43
-              array (
43
+              array(
44 44
                 'title' => '{$APP.LBL_MANAGE_SUBSCRIPTIONS}',
45 45
                 'class' => 'button',
46 46
                 'id' => 'manage_subscriptions_button',
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
             ),
51 51
           ),
52 52
           'AOS_GENLET' => 
53
-          array (
53
+          array(
54 54
             'customCode' => '<input type="button" class="button" onClick="showPopup();" value="{$APP.LBL_GENERATE_LETTER}">',
55 55
           ),
56 56
         ),
@@ -58,154 +58,154 @@  discard block
 block discarded – undo
58 58
       ),
59 59
       'maxColumns' => '2',
60 60
       'widths' => 
61
-      array (
61
+      array(
62 62
         0 => 
63
-        array (
63
+        array(
64 64
           'label' => '10',
65 65
           'field' => '30',
66 66
         ),
67 67
         1 => 
68
-        array (
68
+        array(
69 69
           'label' => '10',
70 70
           'field' => '30',
71 71
         ),
72 72
       ),
73 73
       'includes' => 
74
-      array (
74
+      array(
75 75
         0 => 
76
-        array (
76
+        array(
77 77
           'file' => 'modules/Leads/Lead.js',
78 78
         ),
79 79
       ),
80 80
       'useTabs' => true,
81 81
       'tabDefs' => 
82
-      array (
82
+      array(
83 83
         'LBL_CONTACT_INFORMATION' => 
84
-        array (
84
+        array(
85 85
           'newTab' => true,
86 86
           'panelDefault' => 'expanded',
87 87
         ),
88 88
         'LBL_PANEL_ADVANCED' => 
89
-        array (
89
+        array(
90 90
           'newTab' => true,
91 91
           'panelDefault' => 'expanded',
92 92
         ),
93 93
         'LBL_PANEL_ASSIGNMENT' => 
94
-        array (
94
+        array(
95 95
           'newTab' => true,
96 96
           'panelDefault' => 'expanded',
97 97
         ),
98 98
       ),
99 99
     ),
100 100
     'panels' => 
101
-    array (
101
+    array(
102 102
       'LBL_CONTACT_INFORMATION' => 
103
-      array (
103
+      array(
104 104
         0 => 
105
-        array (
105
+        array(
106 106
           0 => 
107
-          array (
107
+          array(
108 108
             'name' => 'full_name',
109 109
             'label' => 'LBL_NAME',
110 110
           ),
111 111
           1 => 'phone_work',
112 112
         ),
113 113
         1 => 
114
-        array (
114
+        array(
115 115
           0 => 'title',
116 116
           1 => 'phone_mobile',
117 117
         ),
118 118
         2 => 
119
-        array (
119
+        array(
120 120
           0 => 'department',
121 121
           1 => 'phone_fax',
122 122
         ),
123 123
         3 => 
124
-        array (
124
+        array(
125 125
           0 => 
126
-          array (
126
+          array(
127 127
             'name' => 'account_name',
128 128
           ),
129 129
           1 => 'website',
130 130
         ),
131 131
         4 => 
132
-        array (
132
+        array(
133 133
           0 => 
134
-          array (
134
+          array(
135 135
             'name' => 'primary_address_street',
136 136
             'label' => 'LBL_PRIMARY_ADDRESS',
137 137
             'type' => 'address',
138 138
             'displayParams' => 
139
-            array (
139
+            array(
140 140
               'key' => 'primary',
141 141
             ),
142 142
           ),
143 143
           1 => 
144
-          array (
144
+          array(
145 145
             'name' => 'alt_address_street',
146 146
             'label' => 'LBL_ALTERNATE_ADDRESS',
147 147
             'type' => 'address',
148 148
             'displayParams' => 
149
-            array (
149
+            array(
150 150
               'key' => 'alt',
151 151
             ),
152 152
           ),
153 153
         ),
154 154
         5 => 
155
-        array (
155
+        array(
156 156
           0 => 'email1',
157 157
         ),
158 158
         6 => 
159
-        array (
159
+        array(
160 160
           0 => 'description',
161 161
         ),
162 162
         7 => 
163
-        array (
163
+        array(
164 164
           0 => 
165
-          array (
165
+          array(
166 166
             'name' => 'assigned_user_name',
167 167
             'label' => 'LBL_ASSIGNED_TO',
168 168
           ),
169 169
         ),
170 170
       ),
171 171
       'LBL_PANEL_ADVANCED' => 
172
-      array (
172
+      array(
173 173
         0 => 
174
-        array (
174
+        array(
175 175
           0 => 'status',
176 176
           1 => 'lead_source',
177 177
         ),
178 178
         1 => 
179
-        array (
179
+        array(
180 180
           0 => 'status_description',
181 181
           1 => 'lead_source_description',
182 182
         ),
183 183
         2 => 
184
-        array (
184
+        array(
185 185
           0 => 'opportunity_amount',
186 186
           1 => 'refered_by',
187 187
         ),
188 188
         3 => 
189
-        array (
189
+        array(
190 190
           0 => 
191
-          array (
191
+          array(
192 192
             'name' => 'campaign_name',
193 193
             'label' => 'LBL_CAMPAIGN',
194 194
           ),
195 195
         ),
196 196
       ),
197 197
       'LBL_PANEL_ASSIGNMENT' => 
198
-      array (
198
+      array(
199 199
         0 => 
200
-        array (
200
+        array(
201 201
           0 => 
202
-          array (
202
+          array(
203 203
             'name' => 'date_modified',
204 204
             'label' => 'LBL_DATE_MODIFIED',
205 205
             'customCode' => '{$fields.date_modified.value} {$APP.LBL_BY} {$fields.modified_by_name.value}',
206 206
           ),
207 207
           1 =>
208
-          array (
208
+          array(
209 209
             'name' => 'date_entered',
210 210
             'customCode' => '{$fields.date_entered.value} {$APP.LBL_BY} {$fields.created_by_name.value}',
211 211
           ),
Please login to merge, or discard this patch.
modules/Leads/metadata/quickcreatedefs.php 1 patch
Spacing   +35 added lines, -35 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.
@@ -46,15 +46,15 @@  discard block
 block discarded – undo
46 46
  ********************************************************************************/
47 47
 
48 48
 $viewdefs ['Leads'] = 
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
           0 => '<input type="hidden" name="prospect_id" value="{if isset($smarty.request.prospect_id)}{$smarty.request.prospect_id}{else}{$bean->prospect_id}{/if}">',
59 59
           1 => '<input type="hidden" name="contact_id" value="{if isset($smarty.request.contact_id)}{$smarty.request.contact_id}{else}{$bean->contact_id}{/if}">',
60 60
           2 => '<input type="hidden" name="opportunity_id" value="{if isset($smarty.request.opportunity_id)}{$smarty.request.opportunity_id}{else}{$bean->opportunity_id}{/if}">',
@@ -63,14 +63,14 @@  discard block
 block discarded – undo
63 63
       ),
64 64
       'maxColumns' => '2',
65 65
       'widths' => 
66
-      array (
66
+      array(
67 67
         0 => 
68
-        array (
68
+        array(
69 69
           'label' => '10',
70 70
           'field' => '30',
71 71
         ),
72 72
         1 => 
73
-        array (
73
+        array(
74 74
           'label' => '10',
75 75
           'field' => '30',
76 76
         ),
@@ -79,94 +79,94 @@  discard block
 block discarded – undo
79 79
       'useTabs' => false,
80 80
     ),
81 81
     'panels' => 
82
-    array (
82
+    array(
83 83
       'lbl_contact_information' => 
84
-      array (
84
+      array(
85 85
         0 => 
86
-        array (
86
+        array(
87 87
           0 => 
88
-          array (
88
+          array(
89 89
             'name' => 'first_name',
90 90
           ),
91 91
           1 => 
92
-          array (
92
+          array(
93 93
             'name' => 'status',
94 94
           ),
95 95
         ),
96 96
         1 => 
97
-        array (
97
+        array(
98 98
           0 => 
99
-          array (
99
+          array(
100 100
             'name' => 'last_name',
101 101
             'displayParams' => 
102
-            array (
102
+            array(
103 103
               'required' => true,
104 104
             ),
105 105
           ),
106 106
           1 => 
107
-          array (
107
+          array(
108 108
             'name' => 'phone_work',
109 109
           ),
110 110
         ),
111 111
         2 => 
112
-        array (
112
+        array(
113 113
           0 => 
114
-          array (
114
+          array(
115 115
             'name' => 'title',
116 116
           ),
117 117
           1 => 
118
-          array (
118
+          array(
119 119
             'name' => 'phone_mobile',
120 120
           ),
121 121
         ),
122 122
         3 => 
123
-        array (
123
+        array(
124 124
           0 => 
125
-          array (
125
+          array(
126 126
             'name' => 'department',
127 127
           ),
128 128
           1 => 
129
-          array (
129
+          array(
130 130
             'name' => 'phone_fax',
131 131
           ),
132 132
         ),
133 133
         4 => 
134
-        array (
134
+        array(
135 135
           0 => 
136
-          array (
136
+          array(
137 137
             'name' => 'account_name',
138 138
           ),
139 139
           1 => 
140
-          array (
140
+          array(
141 141
             'name' => 'do_not_call',
142 142
           ),
143 143
         ),
144 144
         5 => 
145
-        array (
145
+        array(
146 146
           0 => 
147
-          array (
147
+          array(
148 148
             'name' => 'email1',
149 149
           ),
150 150
         ),
151 151
         6 => 
152
-        array (
152
+        array(
153 153
           0 => 
154
-          array (
154
+          array(
155 155
             'name' => 'lead_source',
156 156
           ),
157 157
           1 => 
158
-          array (
158
+          array(
159 159
             'name' => 'refered_by',
160 160
           ),
161 161
         ),
162 162
         7 => 
163
-        array (
163
+        array(
164 164
           0 => 
165
-          array (
165
+          array(
166 166
             'name' => 'assigned_user_name',
167 167
           ),
168 168
           1 => 
169
-          array (
169
+          array(
170 170
             'name' => 'team_name',
171 171
           ),
172 172
         ),
Please login to merge, or discard this patch.
modules/Leads/metadata/listviewdefs.php 1 patch
Spacing   +32 added lines, -32 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.
@@ -42,45 +42,45 @@  discard block
 block discarded – undo
42 42
 
43 43
 
44 44
 $listViewDefs ['Leads'] = 
45
-array (
45
+array(
46 46
   'NAME' => 
47
-  array (
47
+  array(
48 48
     'width' => '10%',
49 49
     'label' => 'LBL_LIST_NAME',
50 50
     'link' => true,
51 51
     'orderBy' => 'name',
52 52
     'default' => true,
53 53
     'related_fields' => 
54
-    array (
54
+    array(
55 55
       0 => 'first_name',
56 56
       1 => 'last_name',
57 57
       2 => 'salutation',
58 58
     ),
59 59
   ),
60 60
   'STATUS' => 
61
-  array (
61
+  array(
62 62
     'width' => '7%',
63 63
     'label' => 'LBL_LIST_STATUS',
64 64
     'default' => true,
65 65
   ),
66 66
   'ACCOUNT_NAME' => 
67
-  array (
67
+  array(
68 68
     'width' => '15%',
69 69
     'label' => 'LBL_LIST_ACCOUNT_NAME',
70 70
     'default' => true,
71 71
     'related_fields' => 
72
-    array (
72
+    array(
73 73
       0 => 'account_id',
74 74
     ),
75 75
   ),
76 76
   'PHONE_WORK' => 
77
-  array (
77
+  array(
78 78
     'width' => '15%',
79 79
     'label' => 'LBL_LIST_PHONE',
80 80
     'default' => true,
81 81
   ),
82 82
   'EMAIL1' => 
83
-  array (
83
+  array(
84 84
     'width' => '16%',
85 85
     'label' => 'LBL_LIST_EMAIL_ADDRESS',
86 86
     'sortable' => false,
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
     'default' => true,
89 89
   ),
90 90
   'ASSIGNED_USER_NAME' => 
91
-  array (
91
+  array(
92 92
     'width' => '5%',
93 93
     'label' => 'LBL_LIST_ASSIGNED_USER',
94 94
     'module' => 'Employees',
@@ -96,133 +96,133 @@  discard block
 block discarded – undo
96 96
     'default' => true,
97 97
   ),
98 98
   'TITLE' => 
99
-  array (
99
+  array(
100 100
     'width' => '10%',
101 101
     'label' => 'LBL_TITLE',
102 102
     'default' => false,
103 103
   ),
104 104
   'REFERED_BY' => 
105
-  array (
105
+  array(
106 106
     'width' => '10%',
107 107
     'label' => 'LBL_REFERED_BY',
108 108
     'default' => false,
109 109
   ),
110 110
   'LEAD_SOURCE' => 
111
-  array (
111
+  array(
112 112
     'width' => '10%',
113 113
     'label' => 'LBL_LEAD_SOURCE',
114 114
     'default' => false,
115 115
   ),
116 116
   'DEPARTMENT' => 
117
-  array (
117
+  array(
118 118
     'width' => '10%',
119 119
     'label' => 'LBL_DEPARTMENT',
120 120
     'default' => false,
121 121
   ),
122 122
   'DO_NOT_CALL' => 
123
-  array (
123
+  array(
124 124
     'width' => '10%',
125 125
     'label' => 'LBL_DO_NOT_CALL',
126 126
     'default' => false,
127 127
   ),
128 128
   'PHONE_HOME' => 
129
-  array (
129
+  array(
130 130
     'width' => '10%',
131 131
     'label' => 'LBL_HOME_PHONE',
132 132
     'default' => false,
133 133
   ),
134 134
   'PHONE_MOBILE' => 
135
-  array (
135
+  array(
136 136
     'width' => '10%',
137 137
     'label' => 'LBL_MOBILE_PHONE',
138 138
     'default' => false,
139 139
   ),
140 140
   'PHONE_OTHER' => 
141
-  array (
141
+  array(
142 142
     'width' => '10%',
143 143
     'label' => 'LBL_OTHER_PHONE',
144 144
     'default' => false,
145 145
   ),
146 146
   'PHONE_FAX' => 
147
-  array (
147
+  array(
148 148
     'width' => '10%',
149 149
     'label' => 'LBL_FAX_PHONE',
150 150
     'default' => false,
151 151
   ),
152 152
   'PRIMARY_ADDRESS_COUNTRY' => 
153
-  array (
153
+  array(
154 154
     'width' => '10%',
155 155
     'label' => 'LBL_PRIMARY_ADDRESS_COUNTRY',
156 156
     'default' => false,
157 157
   ),
158 158
   'PRIMARY_ADDRESS_STREET' => 
159
-  array (
159
+  array(
160 160
     'width' => '10%',
161 161
     'label' => 'LBL_PRIMARY_ADDRESS_STREET',
162 162
     'default' => false,
163 163
   ),
164 164
   'PRIMARY_ADDRESS_CITY' => 
165
-  array (
165
+  array(
166 166
     'width' => '10%',
167 167
     'label' => 'LBL_PRIMARY_ADDRESS_CITY',
168 168
     'default' => false,
169 169
   ),
170 170
   'PRIMARY_ADDRESS_STATE' => 
171
-  array (
171
+  array(
172 172
     'width' => '10%',
173 173
     'label' => 'LBL_PRIMARY_ADDRESS_STATE',
174 174
     'default' => false,
175 175
   ),
176 176
   'PRIMARY_ADDRESS_POSTALCODE' => 
177
-  array (
177
+  array(
178 178
     'width' => '10%',
179 179
     'label' => 'LBL_PRIMARY_ADDRESS_POSTALCODE',
180 180
     'default' => false,
181 181
   ),
182 182
   'ALT_ADDRESS_COUNTRY' => 
183
-  array (
183
+  array(
184 184
     'width' => '10%',
185 185
     'label' => 'LBL_ALT_ADDRESS_COUNTRY',
186 186
     'default' => false,
187 187
   ),
188 188
   'ALT_ADDRESS_STREET' => 
189
-  array (
189
+  array(
190 190
     'width' => '10%',
191 191
     'label' => 'LBL_ALT_ADDRESS_STREET',
192 192
     'default' => false,
193 193
   ),
194 194
   'ALT_ADDRESS_CITY' => 
195
-  array (
195
+  array(
196 196
     'width' => '10%',
197 197
     'label' => 'LBL_ALT_ADDRESS_CITY',
198 198
     'default' => false,
199 199
   ),
200 200
   'ALT_ADDRESS_STATE' => 
201
-  array (
201
+  array(
202 202
     'width' => '10%',
203 203
     'label' => 'LBL_ALT_ADDRESS_STATE',
204 204
     'default' => false,
205 205
   ),
206 206
   'ALT_ADDRESS_POSTALCODE' => 
207
-  array (
207
+  array(
208 208
     'width' => '10%',
209 209
     'label' => 'LBL_ALT_ADDRESS_POSTALCODE',
210 210
     'default' => false,
211 211
   ),
212 212
   'CREATED_BY' => 
213
-  array (
213
+  array(
214 214
     'width' => '10%',
215 215
     'label' => 'LBL_CREATED',
216 216
     'default' => false,
217 217
   ),
218 218
   'MODIFIED_BY_NAME' => 
219
-  array (
219
+  array(
220 220
     'width' => '5%',
221 221
     'label' => 'LBL_MODIFIED',
222 222
     'default' => false,
223 223
   ),
224 224
   'DATE_ENTERED' => 
225
-  array (
225
+  array(
226 226
     'width' => '10%',
227 227
     'label' => 'LBL_DATE_ENTERED',
228 228
     'default' => true,
Please login to merge, or discard this patch.