Completed
Push — master ( 24ce66...da2f36 )
by Adam
25:35
created
modules/Opportunities/metadata/additionalDetails.php 3 patches
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -41,26 +41,26 @@
 block discarded – undo
41 41
  
42 42
 
43 43
 function additionalDetailsOpportunity($fields) {
44
-	global $current_language;
45
-	$mod_strings = return_module_language($current_language, 'Opportunities');
46
-	$overlib_string = '';
44
+    global $current_language;
45
+    $mod_strings = return_module_language($current_language, 'Opportunities');
46
+    $overlib_string = '';
47 47
 	
48
-	if(!empty($fields['LEAD_SOURCE'])) $overlib_string .= '<b>'. $mod_strings['LBL_LEAD_SOURCE'] . '</b> ' . $fields['LEAD_SOURCE'] . '<br>';
49
-	if(!empty($fields['PROBABILITY'])) $overlib_string .= '<b>'. $mod_strings['LBL_PROBABILITY'] . '</b> ' . $fields['PROBABILITY'] . '<br>';
50
-	if(!empty($fields['NEXT_STEP'])) $overlib_string .= '<b>'. $mod_strings['LBL_NEXT_STEP'] . '</b> ' . $fields['NEXT_STEP'] . '<br>';
51
-	if(!empty($fields['OPPORTUNITY_TYPE'])) $overlib_string .= '<b>'. $mod_strings['LBL_TYPE'] . '</b> ' . $fields['OPPORTUNITY_TYPE'] . '<br>';
48
+    if(!empty($fields['LEAD_SOURCE'])) $overlib_string .= '<b>'. $mod_strings['LBL_LEAD_SOURCE'] . '</b> ' . $fields['LEAD_SOURCE'] . '<br>';
49
+    if(!empty($fields['PROBABILITY'])) $overlib_string .= '<b>'. $mod_strings['LBL_PROBABILITY'] . '</b> ' . $fields['PROBABILITY'] . '<br>';
50
+    if(!empty($fields['NEXT_STEP'])) $overlib_string .= '<b>'. $mod_strings['LBL_NEXT_STEP'] . '</b> ' . $fields['NEXT_STEP'] . '<br>';
51
+    if(!empty($fields['OPPORTUNITY_TYPE'])) $overlib_string .= '<b>'. $mod_strings['LBL_TYPE'] . '</b> ' . $fields['OPPORTUNITY_TYPE'] . '<br>';
52 52
 
53
-	if(!empty($fields['DESCRIPTION'])) {
54
-		$overlib_string .= '<b>'. $mod_strings['LBL_DESCRIPTION'] . '</b> ';
55
-		$overlib_string .= substr($fields['DESCRIPTION'], 0, 300);
56
-		if(strlen($fields['DESCRIPTION']) > 300) $overlib_string .= '...';
57
-	}	
53
+    if(!empty($fields['DESCRIPTION'])) {
54
+        $overlib_string .= '<b>'. $mod_strings['LBL_DESCRIPTION'] . '</b> ';
55
+        $overlib_string .= substr($fields['DESCRIPTION'], 0, 300);
56
+        if(strlen($fields['DESCRIPTION']) > 300) $overlib_string .= '...';
57
+    }	
58 58
 	
59
-	return array('fieldToAddTo' => 'NAME', 
60
-				 'string' => $overlib_string, 
61
-				 'editLink' => "index.php?action=EditView&module=Opportunities&return_module=Opportunities&record={$fields['ID']}", 
62
-				 'viewLink' => "index.php?action=DetailView&module=Opportunities&return_module=Opportunities&record={$fields['ID']}");
59
+    return array('fieldToAddTo' => 'NAME', 
60
+                    'string' => $overlib_string, 
61
+                    'editLink' => "index.php?action=EditView&module=Opportunities&return_module=Opportunities&record={$fields['ID']}", 
62
+                    'viewLink' => "index.php?action=DetailView&module=Opportunities&return_module=Opportunities&record={$fields['ID']}");
63 63
 }
64 64
  
65
- ?>
65
+    ?>
66 66
  
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
2
+if (!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
3 3
 /*********************************************************************************
4 4
  * SugarCRM Community Edition is a customer relationship management program developed by
5 5
  * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc.
@@ -45,15 +45,15 @@  discard block
 block discarded – undo
45 45
 	$mod_strings = return_module_language($current_language, 'Opportunities');
46 46
 	$overlib_string = '';
47 47
 	
48
-	if(!empty($fields['LEAD_SOURCE'])) $overlib_string .= '<b>'. $mod_strings['LBL_LEAD_SOURCE'] . '</b> ' . $fields['LEAD_SOURCE'] . '<br>';
49
-	if(!empty($fields['PROBABILITY'])) $overlib_string .= '<b>'. $mod_strings['LBL_PROBABILITY'] . '</b> ' . $fields['PROBABILITY'] . '<br>';
50
-	if(!empty($fields['NEXT_STEP'])) $overlib_string .= '<b>'. $mod_strings['LBL_NEXT_STEP'] . '</b> ' . $fields['NEXT_STEP'] . '<br>';
51
-	if(!empty($fields['OPPORTUNITY_TYPE'])) $overlib_string .= '<b>'. $mod_strings['LBL_TYPE'] . '</b> ' . $fields['OPPORTUNITY_TYPE'] . '<br>';
48
+	if (!empty($fields['LEAD_SOURCE'])) $overlib_string .= '<b>'.$mod_strings['LBL_LEAD_SOURCE'].'</b> '.$fields['LEAD_SOURCE'].'<br>';
49
+	if (!empty($fields['PROBABILITY'])) $overlib_string .= '<b>'.$mod_strings['LBL_PROBABILITY'].'</b> '.$fields['PROBABILITY'].'<br>';
50
+	if (!empty($fields['NEXT_STEP'])) $overlib_string .= '<b>'.$mod_strings['LBL_NEXT_STEP'].'</b> '.$fields['NEXT_STEP'].'<br>';
51
+	if (!empty($fields['OPPORTUNITY_TYPE'])) $overlib_string .= '<b>'.$mod_strings['LBL_TYPE'].'</b> '.$fields['OPPORTUNITY_TYPE'].'<br>';
52 52
 
53
-	if(!empty($fields['DESCRIPTION'])) {
54
-		$overlib_string .= '<b>'. $mod_strings['LBL_DESCRIPTION'] . '</b> ';
53
+	if (!empty($fields['DESCRIPTION'])) {
54
+		$overlib_string .= '<b>'.$mod_strings['LBL_DESCRIPTION'].'</b> ';
55 55
 		$overlib_string .= substr($fields['DESCRIPTION'], 0, 300);
56
-		if(strlen($fields['DESCRIPTION']) > 300) $overlib_string .= '...';
56
+		if (strlen($fields['DESCRIPTION']) > 300) $overlib_string .= '...';
57 57
 	}	
58 58
 	
59 59
 	return array('fieldToAddTo' => 'NAME', 
Please login to merge, or discard this patch.
Braces   +18 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,5 +1,7 @@  discard block
 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.
@@ -45,15 +47,25 @@  discard block
 block discarded – undo
45 47
 	$mod_strings = return_module_language($current_language, 'Opportunities');
46 48
 	$overlib_string = '';
47 49
 	
48
-	if(!empty($fields['LEAD_SOURCE'])) $overlib_string .= '<b>'. $mod_strings['LBL_LEAD_SOURCE'] . '</b> ' . $fields['LEAD_SOURCE'] . '<br>';
49
-	if(!empty($fields['PROBABILITY'])) $overlib_string .= '<b>'. $mod_strings['LBL_PROBABILITY'] . '</b> ' . $fields['PROBABILITY'] . '<br>';
50
-	if(!empty($fields['NEXT_STEP'])) $overlib_string .= '<b>'. $mod_strings['LBL_NEXT_STEP'] . '</b> ' . $fields['NEXT_STEP'] . '<br>';
51
-	if(!empty($fields['OPPORTUNITY_TYPE'])) $overlib_string .= '<b>'. $mod_strings['LBL_TYPE'] . '</b> ' . $fields['OPPORTUNITY_TYPE'] . '<br>';
50
+	if(!empty($fields['LEAD_SOURCE'])) {
51
+	    $overlib_string .= '<b>'. $mod_strings['LBL_LEAD_SOURCE'] . '</b> ' . $fields['LEAD_SOURCE'] . '<br>';
52
+	}
53
+	if(!empty($fields['PROBABILITY'])) {
54
+	    $overlib_string .= '<b>'. $mod_strings['LBL_PROBABILITY'] . '</b> ' . $fields['PROBABILITY'] . '<br>';
55
+	}
56
+	if(!empty($fields['NEXT_STEP'])) {
57
+	    $overlib_string .= '<b>'. $mod_strings['LBL_NEXT_STEP'] . '</b> ' . $fields['NEXT_STEP'] . '<br>';
58
+	}
59
+	if(!empty($fields['OPPORTUNITY_TYPE'])) {
60
+	    $overlib_string .= '<b>'. $mod_strings['LBL_TYPE'] . '</b> ' . $fields['OPPORTUNITY_TYPE'] . '<br>';
61
+	}
52 62
 
53 63
 	if(!empty($fields['DESCRIPTION'])) {
54 64
 		$overlib_string .= '<b>'. $mod_strings['LBL_DESCRIPTION'] . '</b> ';
55 65
 		$overlib_string .= substr($fields['DESCRIPTION'], 0, 300);
56
-		if(strlen($fields['DESCRIPTION']) > 300) $overlib_string .= '...';
66
+		if(strlen($fields['DESCRIPTION']) > 300) {
67
+		    $overlib_string .= '...';
68
+		}
57 69
 	}	
58 70
 	
59 71
 	return array('fieldToAddTo' => 'NAME', 
Please login to merge, or discard this patch.
modules/Opportunities/metadata/acldefs.php 3 patches
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -40,25 +40,25 @@
 block discarded – undo
40 40
 
41 41
 // created: 2005-10-19 11:16:08
42 42
 $acldefs['Opportunities'] = array (
43
-  'forms' => 
44
-  array (
43
+    'forms' => 
44
+    array (
45 45
     'by_name' => 
46 46
     array (
47
-      'btn1' => 
48
-      array (
47
+        'btn1' => 
48
+        array (
49 49
         'display_option' => 'disabled',
50 50
         'action_option' => 'list',
51 51
         'app_action' => 'EditView',
52 52
         'module' => 'Accounts',
53
-      ),
53
+        ),
54
+    ),
54 55
     ),
55
-  ),
56
-  'form_names' => 
57
-  array (
56
+    'form_names' => 
57
+    array (
58 58
     'by_id' => 'by_id',
59 59
     'by_name' => 'by_name',
60 60
     'DetailView' => 'DetailView',
61 61
     'EditView' => 'EditView',
62
-  ),
62
+    ),
63 63
 );
64 64
 ?>
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
2
+if (!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
3 3
 /*********************************************************************************
4 4
  * SugarCRM Community Edition is a customer relationship management program developed by
5 5
  * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc.
@@ -39,13 +39,13 @@  discard block
 block discarded – undo
39 39
  ********************************************************************************/
40 40
 
41 41
 // created: 2005-10-19 11:16:08
42
-$acldefs['Opportunities'] = array (
42
+$acldefs['Opportunities'] = array(
43 43
   'forms' => 
44
-  array (
44
+  array(
45 45
     'by_name' => 
46
-    array (
46
+    array(
47 47
       'btn1' => 
48
-      array (
48
+      array(
49 49
         'display_option' => 'disabled',
50 50
         'action_option' => 'list',
51 51
         'app_action' => 'EditView',
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
     ),
55 55
   ),
56 56
   'form_names' => 
57
-  array (
57
+  array(
58 58
     'by_id' => 'by_id',
59 59
     'by_name' => 'by_name',
60 60
     'DetailView' => 'DetailView',
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/Opportunities/metadata/editviewdefs.php 2 patches
Indentation   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -45,43 +45,43 @@
 block discarded – undo
45 45
                                             ),
46 46
     'javascript' => '{$PROBABILITY_SCRIPT}',
47 47
 ),
48
- 'panels' =>array (
49
-  'default' => 
50
-  array (
48
+    'panels' =>array (
49
+    'default' => 
50
+    array (
51 51
     
52 52
     array (
53
-      array('name'=>'name'),
54
-      'account_name',
53
+        array('name'=>'name'),
54
+        'account_name',
55 55
     ),
56 56
     array(
57
-    	array('name'=>'currency_id','label'=>'LBL_CURRENCY'),
58
-    	array('name'=>'date_closed'),
57
+        array('name'=>'currency_id','label'=>'LBL_CURRENCY'),
58
+        array('name'=>'date_closed'),
59 59
     ),
60 60
     array (
61
-      array( 'name'=>'amount'),
62
-      'opportunity_type',
61
+        array( 'name'=>'amount'),
62
+        'opportunity_type',
63 63
     ),
64 64
     array (
65
-      'sales_stage',
66
-      'lead_source',
65
+        'sales_stage',
66
+        'lead_source',
67 67
     ),
68 68
     array (      
69
-		'probability',
70
-      	'campaign_name',
69
+        'probability',
70
+            'campaign_name',
71 71
     ),
72 72
     array (
73
-      	'next_step',
73
+            'next_step',
74 74
     ),
75 75
     array (
76
-      'description',
76
+        'description',
77
+    ),
77 78
     ),
78
-  ),
79 79
   
80
-  'LBL_PANEL_ASSIGNMENT' => array(
80
+    'LBL_PANEL_ASSIGNMENT' => array(
81 81
     array(
82
-	    'assigned_user_name',
82
+        'assigned_user_name',
83
+    ),
83 84
     ),
84
-  ),
85 85
 )
86 86
 
87 87
 
Please login to merge, or discard this patch.
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -45,34 +45,34 @@
 block discarded – undo
45 45
                                             ),
46 46
     'javascript' => '{$PROBABILITY_SCRIPT}',
47 47
 ),
48
- 'panels' =>array (
48
+ 'panels' =>array(
49 49
   'default' => 
50
-  array (
50
+  array(
51 51
     
52
-    array (
52
+    array(
53 53
       array('name'=>'name'),
54 54
       'account_name',
55 55
     ),
56 56
     array(
57
-    	array('name'=>'currency_id','label'=>'LBL_CURRENCY'),
57
+    	array('name'=>'currency_id', 'label'=>'LBL_CURRENCY'),
58 58
     	array('name'=>'date_closed'),
59 59
     ),
60
-    array (
61
-      array( 'name'=>'amount'),
60
+    array(
61
+      array('name'=>'amount'),
62 62
       'opportunity_type',
63 63
     ),
64
-    array (
64
+    array(
65 65
       'sales_stage',
66 66
       'lead_source',
67 67
     ),
68
-    array (      
68
+    array(      
69 69
 		'probability',
70 70
       	'campaign_name',
71 71
     ),
72
-    array (
72
+    array(
73 73
       	'next_step',
74 74
     ),
75
-    array (
75
+    array(
76 76
       'description',
77 77
     ),
78 78
   ),
Please login to merge, or discard this patch.
modules/Opportunities/metadata/popupdefs.php 3 patches
Indentation   +42 added lines, -42 removed lines patch added patch discarded remove patch
@@ -42,48 +42,48 @@
 block discarded – undo
42 42
 global $mod_strings;
43 43
 
44 44
 $popupMeta = array('moduleMain' => 'Opportunity',
45
-						'varName' => 'OPPORTUNITY',
46
-						'orderBy' => 'name',
47
-						'whereClauses' => 
48
-							array('name' => 'opportunities.name', 
49
-									'account_name' => 'accounts.name'),
50
-						'searchInputs' =>
51
-							array('name', 'account_name'),
52
-						'listviewdefs' => array(
53
-											'NAME' => array(
54
-												'width'   => '30',  
55
-												'label'   => 'LBL_LIST_OPPORTUNITY_NAME', 
56
-												'link'    => true,
57
-										        'default' => true),
58
-											'ACCOUNT_NAME' => array(
59
-												'width'   => '20', 
60
-												'label'   => 'LBL_LIST_ACCOUNT_NAME', 
61
-												'id'      => 'ACCOUNT_ID',
62
-										        'module'  => 'Accounts',
63
-										        'default' => true,
64
-										        'sortable'=> true,
65
-										        'ACLTag' => 'ACCOUNT'),
66
-										    'OPPORTUNITY_TYPE' => array(
67
-										        'width' => '15', 
68
-										        'default' => true,
69
-										        'label' => 'LBL_TYPE'),
70
-											'SALES_STAGE' => array(
71
-												'width'   => '10',  
72
-												'label'   => 'LBL_LIST_SALES_STAGE',
73
-										        'default' => true), 
74
-										    'ASSIGNED_USER_NAME' => array(
75
-												'width' => '5', 
76
-												'label' => 'LBL_LIST_ASSIGNED_USER',
77
-										        'default' => true),
78
-											),
79
-						'searchdefs'   => array(
80
-										 	'name', 
81
-											array('name' => 'account_name', 'displayParams' => array('hideButtons'=>'true', 'size'=>30, 'class'=>'sqsEnabled sqsNoAutofill')), 
82
-											'opportunity_type',
83
-											'sales_stage',
84
-											array('name' => 'assigned_user_id', 'type' => 'enum', 'label' => 'LBL_ASSIGNED_TO', 'function' => array('name' => 'get_user_array', 'params' => array(false))),
85
-										  )
86
-						);
45
+                        'varName' => 'OPPORTUNITY',
46
+                        'orderBy' => 'name',
47
+                        'whereClauses' => 
48
+                            array('name' => 'opportunities.name', 
49
+                                    'account_name' => 'accounts.name'),
50
+                        'searchInputs' =>
51
+                            array('name', 'account_name'),
52
+                        'listviewdefs' => array(
53
+                                            'NAME' => array(
54
+                                                'width'   => '30',  
55
+                                                'label'   => 'LBL_LIST_OPPORTUNITY_NAME', 
56
+                                                'link'    => true,
57
+                                                'default' => true),
58
+                                            'ACCOUNT_NAME' => array(
59
+                                                'width'   => '20', 
60
+                                                'label'   => 'LBL_LIST_ACCOUNT_NAME', 
61
+                                                'id'      => 'ACCOUNT_ID',
62
+                                                'module'  => 'Accounts',
63
+                                                'default' => true,
64
+                                                'sortable'=> true,
65
+                                                'ACLTag' => 'ACCOUNT'),
66
+                                            'OPPORTUNITY_TYPE' => array(
67
+                                                'width' => '15', 
68
+                                                'default' => true,
69
+                                                'label' => 'LBL_TYPE'),
70
+                                            'SALES_STAGE' => array(
71
+                                                'width'   => '10',  
72
+                                                'label'   => 'LBL_LIST_SALES_STAGE',
73
+                                                'default' => true), 
74
+                                            'ASSIGNED_USER_NAME' => array(
75
+                                                'width' => '5', 
76
+                                                'label' => 'LBL_LIST_ASSIGNED_USER',
77
+                                                'default' => true),
78
+                                            ),
79
+                        'searchdefs'   => array(
80
+                                                'name', 
81
+                                            array('name' => 'account_name', 'displayParams' => array('hideButtons'=>'true', 'size'=>30, 'class'=>'sqsEnabled sqsNoAutofill')), 
82
+                                            'opportunity_type',
83
+                                            'sales_stage',
84
+                                            array('name' => 'assigned_user_id', 'type' => 'enum', 'label' => 'LBL_ASSIGNED_TO', 'function' => array('name' => 'get_user_array', 'params' => array(false))),
85
+                                            )
86
+                        );
87 87
 
88 88
 
89 89
 ?>
90 90
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 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.
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/Opportunities/metadata/searchdefs.php 2 patches
Indentation   +44 added lines, -44 removed lines patch added patch discarded remove patch
@@ -38,102 +38,102 @@
 block discarded – undo
38 38
  ********************************************************************************/
39 39
 
40 40
 $searchdefs['Opportunities'] = array(
41
-  'templateMeta' => 
42
-  array (
41
+    'templateMeta' => 
42
+    array (
43 43
     'maxColumns' => '3',
44 44
     'maxColumnsBasic' => '4', 
45 45
     'widths' => 
46 46
     array (
47
-      'label' => '10',
48
-      'field' => '30',
47
+        'label' => '10',
48
+        'field' => '30',
49
+    ),
49 50
     ),
50
-  ),
51
-  'layout' => 
52
-  array (
51
+    'layout' => 
52
+    array (
53 53
     'basic_search' => 
54 54
     array (
55
-      'name' => 
56
-      array (
55
+        'name' => 
56
+        array (
57 57
         'name' => 'name',
58 58
         'default' => true,
59 59
         'width' => '10%',
60
-      ),
61
-      'current_user_only' => 
62
-      array (
60
+        ),
61
+        'current_user_only' => 
62
+        array (
63 63
         'name' => 'current_user_only',
64 64
         'label' => 'LBL_CURRENT_USER_FILTER',
65 65
         'type' => 'bool',
66 66
         'default' => true,
67 67
         'width' => '10%',
68
-      ),
69
-	  array ('name' => 'open_only', 'label' => 'LBL_OPEN_ITEMS', 'type' => 'bool', 'default' => false, 'width' => '10%'),
70
-      array ('name' => 'favorites_only','label' => 'LBL_FAVORITES_FILTER','type' => 'bool',),
68
+        ),
69
+        array ('name' => 'open_only', 'label' => 'LBL_OPEN_ITEMS', 'type' => 'bool', 'default' => false, 'width' => '10%'),
70
+        array ('name' => 'favorites_only','label' => 'LBL_FAVORITES_FILTER','type' => 'bool',),
71 71
 
72 72
     ),
73 73
     'advanced_search' => 
74 74
     array (
75
-      'name' => 
76
-      array (
75
+        'name' => 
76
+        array (
77 77
         'name' => 'name',
78 78
         'default' => true,
79 79
         'width' => '10%',
80
-      ),
81
-      'account_name' => 
82
-      array (
80
+        ),
81
+        'account_name' => 
82
+        array (
83 83
         'name' => 'account_name',
84 84
         'default' => true,
85 85
         'width' => '10%',
86
-      ),
87
-      'amount' => 
88
-      array (
86
+        ),
87
+        'amount' => 
88
+        array (
89 89
         'name' => 'amount',
90 90
         'default' => true,
91 91
         'width' => '10%',
92
-      ),
93
-      'assigned_user_id' => 
94
-      array (
92
+        ),
93
+        'assigned_user_id' => 
94
+        array (
95 95
         'name' => 'assigned_user_id',
96 96
         'type' => 'enum',
97 97
         'label' => 'LBL_ASSIGNED_TO',
98 98
         'function' => 
99 99
         array (
100
-          'name' => 'get_user_array',
101
-          'params' => 
102
-          array (
100
+            'name' => 'get_user_array',
101
+            'params' => 
102
+            array (
103 103
             0 => false,
104
-          ),
104
+            ),
105 105
         ),
106 106
         'default' => true,
107 107
         'width' => '10%',
108
-      ),
109
-      'sales_stage' => 
110
-      array (
108
+        ),
109
+        'sales_stage' => 
110
+        array (
111 111
         'name' => 'sales_stage',
112 112
         'default' => true,
113 113
         'width' => '10%',
114
-      ),
115
-      'lead_source' => 
116
-      array (
114
+        ),
115
+        'lead_source' => 
116
+        array (
117 117
         'name' => 'lead_source',
118 118
         'default' => true,
119 119
         'width' => '10%',
120
-      ),
121
-      'date_closed' => 
122
-      array (
120
+        ),
121
+        'date_closed' => 
122
+        array (
123 123
         'name' => 'date_closed',
124 124
         'default' => true,
125 125
         'width' => '10%',
126
-      ),
127
-      'next_step' => 
128
-      array (
126
+        ),
127
+        'next_step' => 
128
+        array (
129 129
         'type' => 'varchar',
130 130
         'label' => 'LBL_NEXT_STEP',
131 131
         'width' => '10%',
132 132
         'default' => true,
133 133
         'name' => 'next_step',
134
-      ),
134
+        ),
135
+    ),
135 136
     ),
136
-  ),
137 137
 					
138 138
 );
139 139
 ?>
Please login to merge, or discard this patch.
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -39,67 +39,67 @@  discard block
 block discarded – undo
39 39
 
40 40
 $searchdefs['Opportunities'] = array(
41 41
   'templateMeta' => 
42
-  array (
42
+  array(
43 43
     'maxColumns' => '3',
44 44
     'maxColumnsBasic' => '4', 
45 45
     'widths' => 
46
-    array (
46
+    array(
47 47
       'label' => '10',
48 48
       'field' => '30',
49 49
     ),
50 50
   ),
51 51
   'layout' => 
52
-  array (
52
+  array(
53 53
     'basic_search' => 
54
-    array (
54
+    array(
55 55
       'name' => 
56
-      array (
56
+      array(
57 57
         'name' => 'name',
58 58
         'default' => true,
59 59
         'width' => '10%',
60 60
       ),
61 61
       'current_user_only' => 
62
-      array (
62
+      array(
63 63
         'name' => 'current_user_only',
64 64
         'label' => 'LBL_CURRENT_USER_FILTER',
65 65
         'type' => 'bool',
66 66
         'default' => true,
67 67
         'width' => '10%',
68 68
       ),
69
-	  array ('name' => 'open_only', 'label' => 'LBL_OPEN_ITEMS', 'type' => 'bool', 'default' => false, 'width' => '10%'),
70
-      array ('name' => 'favorites_only','label' => 'LBL_FAVORITES_FILTER','type' => 'bool',),
69
+	  array('name' => 'open_only', 'label' => 'LBL_OPEN_ITEMS', 'type' => 'bool', 'default' => false, 'width' => '10%'),
70
+      array('name' => 'favorites_only', 'label' => 'LBL_FAVORITES_FILTER', 'type' => 'bool',),
71 71
 
72 72
     ),
73 73
     'advanced_search' => 
74
-    array (
74
+    array(
75 75
       'name' => 
76
-      array (
76
+      array(
77 77
         'name' => 'name',
78 78
         'default' => true,
79 79
         'width' => '10%',
80 80
       ),
81 81
       'account_name' => 
82
-      array (
82
+      array(
83 83
         'name' => 'account_name',
84 84
         'default' => true,
85 85
         'width' => '10%',
86 86
       ),
87 87
       'amount' => 
88
-      array (
88
+      array(
89 89
         'name' => 'amount',
90 90
         'default' => true,
91 91
         'width' => '10%',
92 92
       ),
93 93
       'assigned_user_id' => 
94
-      array (
94
+      array(
95 95
         'name' => 'assigned_user_id',
96 96
         'type' => 'enum',
97 97
         'label' => 'LBL_ASSIGNED_TO',
98 98
         'function' => 
99
-        array (
99
+        array(
100 100
           'name' => 'get_user_array',
101 101
           'params' => 
102
-          array (
102
+          array(
103 103
             0 => false,
104 104
           ),
105 105
         ),
@@ -107,25 +107,25 @@  discard block
 block discarded – undo
107 107
         'width' => '10%',
108 108
       ),
109 109
       'sales_stage' => 
110
-      array (
110
+      array(
111 111
         'name' => 'sales_stage',
112 112
         'default' => true,
113 113
         'width' => '10%',
114 114
       ),
115 115
       'lead_source' => 
116
-      array (
116
+      array(
117 117
         'name' => 'lead_source',
118 118
         'default' => true,
119 119
         'width' => '10%',
120 120
       ),
121 121
       'date_closed' => 
122
-      array (
122
+      array(
123 123
         'name' => 'date_closed',
124 124
         'default' => true,
125 125
         'width' => '10%',
126 126
       ),
127 127
       'next_step' => 
128
-      array (
128
+      array(
129 129
         'type' => 'varchar',
130 130
         'label' => 'LBL_NEXT_STEP',
131 131
         'width' => '10%',
Please login to merge, or discard this patch.
modules/Opportunities/metadata/studio.php 3 patches
Indentation   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -42,28 +42,28 @@
 block discarded – undo
42 42
 
43 43
 
44 44
 $GLOBALS['studioDefs']['Opportunities'] = array(
45
-	'LBL_DETAILVIEW'=>array(
46
-				'template'=>'xtpl',
47
-				'template_file'=>'modules/Opportunities/DetailView.html',
48
-				'php_file'=>'modules/Opportunities/DetailView.php',
49
-				'type'=>'DetailView',
50
-				),
51
-	'LBL_EDITVIEW'=>array(
52
-				'template'=>'xtpl',
53
-				'template_file'=>'modules/Opportunities/EditView.html',
54
-				'php_file'=>'modules/Opportunities/EditView.php',
55
-				'type'=>'EditView',
56
-				),
57
-	'LBL_LISTVIEW'=>array(
58
-				'template'=>'listview',
59
-				'meta_file'=>'modules/Opportunities/listviewdefs.php',
60
-				'type'=>'ListView',
61
-				),
62
-	'LBL_SEARCHFORM'=>array(
63
-				'template'=>'xtpl',
64
-				'template_file'=>'modules/Opportunities/SearchForm.html',
65
-				'php_file'=>'modules/Opportunities/ListView.php',
66
-				'type'=>'SearchForm',
67
-				),
45
+    'LBL_DETAILVIEW'=>array(
46
+                'template'=>'xtpl',
47
+                'template_file'=>'modules/Opportunities/DetailView.html',
48
+                'php_file'=>'modules/Opportunities/DetailView.php',
49
+                'type'=>'DetailView',
50
+                ),
51
+    'LBL_EDITVIEW'=>array(
52
+                'template'=>'xtpl',
53
+                'template_file'=>'modules/Opportunities/EditView.html',
54
+                'php_file'=>'modules/Opportunities/EditView.php',
55
+                'type'=>'EditView',
56
+                ),
57
+    'LBL_LISTVIEW'=>array(
58
+                'template'=>'listview',
59
+                'meta_file'=>'modules/Opportunities/listviewdefs.php',
60
+                'type'=>'ListView',
61
+                ),
62
+    'LBL_SEARCHFORM'=>array(
63
+                'template'=>'xtpl',
64
+                'template_file'=>'modules/Opportunities/SearchForm.html',
65
+                'php_file'=>'modules/Opportunities/ListView.php',
66
+                'type'=>'SearchForm',
67
+                ),
68 68
 
69 69
 );
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 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.
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/Opportunities/metadata/detailviewdefs.php 2 patches
Indentation   +56 added lines, -56 removed lines patch added patch discarded remove patch
@@ -39,117 +39,117 @@
 block discarded – undo
39 39
 
40 40
 $viewdefs ['Opportunities'] = 
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',
50
+            0 => 'EDIT',
51
+            1 => 'DUPLICATE',
52
+            2 => 'DELETE',
53
+            3 => 'FIND_DUPLICATES',
54 54
         ),
55
-      ),
56
-      'maxColumns' => '2',
57
-      'widths' => 
58
-      array (
55
+        ),
56
+        'maxColumns' => '2',
57
+        'widths' => 
58
+        array (
59 59
         0 => 
60 60
         array (
61
-          'label' => '10',
62
-          'field' => '30',
61
+            'label' => '10',
62
+            'field' => '30',
63 63
         ),
64 64
         1 => 
65 65
         array (
66
-          'label' => '10',
67
-          'field' => '30',
66
+            'label' => '10',
67
+            'field' => '30',
68 68
         ),
69
-      ),
70
-      'useTabs' => true,
71
-      'tabDefs' => 
72
-      array (
69
+        ),
70
+        'useTabs' => true,
71
+        'tabDefs' => 
72
+        array (
73 73
         'DEFAULT' => 
74 74
         array (
75
-          'newTab' => true,
76
-          'panelDefault' => 'expanded',
75
+            'newTab' => true,
76
+            'panelDefault' => 'expanded',
77 77
         ),
78 78
         'LBL_PANEL_ASSIGNMENT' => 
79 79
         array (
80
-          'newTab' => true,
81
-          'panelDefault' => 'expanded',
80
+            'newTab' => true,
81
+            'panelDefault' => 'expanded',
82
+        ),
82 83
         ),
83
-      ),
84 84
     ),
85 85
     'panels' => 
86 86
     array (
87
-      'default' => 
88
-      array (
87
+        'default' => 
88
+        array (
89 89
         0 => 
90 90
         array (
91
-          0 => 'name',
92
-          1 => 'account_name',
91
+            0 => 'name',
92
+            1 => 'account_name',
93 93
         ),
94 94
         1 => 
95 95
         array (
96
-          0 => 
97
-          array (
96
+            0 => 
97
+            array (
98 98
             'name' => 'amount',
99 99
             'label' => '{$MOD.LBL_AMOUNT} ({$CURRENCY})',
100
-          ),
101
-          1 => 'date_closed',
100
+            ),
101
+            1 => 'date_closed',
102 102
         ),
103 103
         2 => 
104 104
         array (
105
-          0 => 'sales_stage',
106
-          1 => 'opportunity_type',
105
+            0 => 'sales_stage',
106
+            1 => 'opportunity_type',
107 107
         ),
108 108
         3 => 
109 109
         array (
110
-          0 => 'probability',
111
-          1 => 'lead_source',
110
+            0 => 'probability',
111
+            1 => 'lead_source',
112 112
         ),
113 113
         4 => 
114 114
         array (
115
-          0 => 'next_step',
116
-          1 => 'campaign_name',
115
+            0 => 'next_step',
116
+            1 => 'campaign_name',
117 117
         ),
118 118
         5 => 
119 119
         array (
120
-          0 => 
121
-          array (
120
+            0 => 
121
+            array (
122 122
             'name' => 'description',
123 123
             'nl2br' => true,
124
-          ),
124
+            ),
125 125
         ),
126 126
         6 => 
127 127
         array (
128
-          0 => 
129
-          array (
128
+            0 => 
129
+            array (
130 130
             'name' => 'assigned_user_name',
131 131
             'label' => 'LBL_ASSIGNED_TO',
132
-          ),
132
+            ),
133
+        ),
133 134
         ),
134
-      ),
135
-      'LBL_PANEL_ASSIGNMENT' => 
136
-      array (
135
+        'LBL_PANEL_ASSIGNMENT' => 
136
+        array (
137 137
         0 => 
138 138
         array (
139
-          0 => 
140
-          array (
139
+            0 => 
140
+            array (
141 141
             'name' => 'date_modified',
142 142
             'label' => 'LBL_DATE_MODIFIED',
143 143
             'customCode' => '{$fields.date_modified.value} {$APP.LBL_BY} {$fields.modified_by_name.value}',
144
-          ),
145
-          1 =>
146
-          array (
144
+            ),
145
+            1 =>
146
+            array (
147 147
             'name' => 'date_entered',
148 148
             'customCode' => '{$fields.date_entered.value} {$APP.LBL_BY} {$fields.created_by_name.value}',
149
-          ),
149
+            ),
150
+        ),
150 151
         ),
151
-      ),
152 152
     ),
153
-  ),
153
+    ),
154 154
 );
155 155
 ?>
Please login to merge, or discard this patch.
Spacing   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -38,15 +38,15 @@  discard block
 block discarded – undo
38 38
  ********************************************************************************/
39 39
 
40 40
 $viewdefs ['Opportunities'] = 
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',
@@ -55,95 +55,95 @@  discard block
 block discarded – undo
55 55
       ),
56 56
       'maxColumns' => '2',
57 57
       'widths' => 
58
-      array (
58
+      array(
59 59
         0 => 
60
-        array (
60
+        array(
61 61
           'label' => '10',
62 62
           'field' => '30',
63 63
         ),
64 64
         1 => 
65
-        array (
65
+        array(
66 66
           'label' => '10',
67 67
           'field' => '30',
68 68
         ),
69 69
       ),
70 70
       'useTabs' => true,
71 71
       'tabDefs' => 
72
-      array (
72
+      array(
73 73
         'DEFAULT' => 
74
-        array (
74
+        array(
75 75
           'newTab' => true,
76 76
           'panelDefault' => 'expanded',
77 77
         ),
78 78
         'LBL_PANEL_ASSIGNMENT' => 
79
-        array (
79
+        array(
80 80
           'newTab' => true,
81 81
           'panelDefault' => 'expanded',
82 82
         ),
83 83
       ),
84 84
     ),
85 85
     'panels' => 
86
-    array (
86
+    array(
87 87
       'default' => 
88
-      array (
88
+      array(
89 89
         0 => 
90
-        array (
90
+        array(
91 91
           0 => 'name',
92 92
           1 => 'account_name',
93 93
         ),
94 94
         1 => 
95
-        array (
95
+        array(
96 96
           0 => 
97
-          array (
97
+          array(
98 98
             'name' => 'amount',
99 99
             'label' => '{$MOD.LBL_AMOUNT} ({$CURRENCY})',
100 100
           ),
101 101
           1 => 'date_closed',
102 102
         ),
103 103
         2 => 
104
-        array (
104
+        array(
105 105
           0 => 'sales_stage',
106 106
           1 => 'opportunity_type',
107 107
         ),
108 108
         3 => 
109
-        array (
109
+        array(
110 110
           0 => 'probability',
111 111
           1 => 'lead_source',
112 112
         ),
113 113
         4 => 
114
-        array (
114
+        array(
115 115
           0 => 'next_step',
116 116
           1 => 'campaign_name',
117 117
         ),
118 118
         5 => 
119
-        array (
119
+        array(
120 120
           0 => 
121
-          array (
121
+          array(
122 122
             'name' => 'description',
123 123
             'nl2br' => true,
124 124
           ),
125 125
         ),
126 126
         6 => 
127
-        array (
127
+        array(
128 128
           0 => 
129
-          array (
129
+          array(
130 130
             'name' => 'assigned_user_name',
131 131
             'label' => 'LBL_ASSIGNED_TO',
132 132
           ),
133 133
         ),
134 134
       ),
135 135
       'LBL_PANEL_ASSIGNMENT' => 
136
-      array (
136
+      array(
137 137
         0 => 
138
-        array (
138
+        array(
139 139
           0 => 
140
-          array (
140
+          array(
141 141
             'name' => 'date_modified',
142 142
             'label' => 'LBL_DATE_MODIFIED',
143 143
             'customCode' => '{$fields.date_modified.value} {$APP.LBL_BY} {$fields.modified_by_name.value}',
144 144
           ),
145 145
           1 =>
146
-          array (
146
+          array(
147 147
             'name' => 'date_entered',
148 148
             'customCode' => '{$fields.date_entered.value} {$APP.LBL_BY} {$fields.created_by_name.value}',
149 149
           ),
Please login to merge, or discard this patch.
modules/Opportunities/metadata/quickcreatedefs.php 3 patches
Indentation   +35 added lines, -35 removed lines patch added patch discarded remove patch
@@ -46,69 +46,69 @@
 block discarded – undo
46 46
  ********************************************************************************/
47 47
 
48 48
 $viewdefs = array (
49
-  'Opportunities' => 
50
-  array (
49
+    'Opportunities' => 
50
+    array (
51 51
     'QuickCreate' => 
52 52
     array (
53
-      'templateMeta' => 
54
-      array (
53
+        'templateMeta' => 
54
+        array (
55 55
         'maxColumns' => '2',
56 56
         'widths' => 
57 57
         array (
58
-          0 => 
59
-          array (
58
+            0 => 
59
+            array (
60 60
             'label' => '10',
61 61
             'field' => '30',
62
-          ),
63
-          1 => 
64
-          array (
62
+            ),
63
+            1 => 
64
+            array (
65 65
             'label' => '10',
66 66
             'field' => '30',
67
-          ),
67
+            ),
68 68
         ),
69 69
         'javascript' => '{$PROBABILITY_SCRIPT}',
70
-      ),
71
-      'panels' => 
72
-      array (
70
+        ),
71
+        'panels' => 
72
+        array (
73 73
         'DEFAULT' => 
74 74
         array (
75
-          array (
76 75
             array (
77
-              'name' => 'name',
78
-              'displayParams'=>array('required'=>true),
76
+            array (
77
+                'name' => 'name',
78
+                'displayParams'=>array('required'=>true),
79 79
             ),
80 80
             array (
81
-              'name' => 'account_name',
81
+                'name' => 'account_name',
82
+            ),
82 83
             ),
83
-          ),
84
-          array (
85 84
             array (
86
-              'name' => 'currency_id',
85
+            array (
86
+                'name' => 'currency_id',
87 87
             ),
88 88
             array (
89
-              'name' => 'opportunity_type',
89
+                'name' => 'opportunity_type',
90 90
             ),            
91
-          ),
92
-          array (
91
+            ),
92
+            array (
93 93
             'amount',
94 94
             'date_closed'          
95
-          ),
96
-          array (
97
-             'next_step',
98
-             'sales_stage',
99
-          ),
100
-          array (
101
-             'lead_source',
102
-             'probability',
103
-          ),
95
+            ),
96
+            array (
97
+                'next_step',
98
+                'sales_stage',
99
+            ),
100
+            array (
101
+                'lead_source',
102
+                'probability',
103
+            ),
104 104
         array (
105 105
             array (
106
-              'name' => 'assigned_user_name',
106
+                'name' => 'assigned_user_name',
107 107
             ),
108 108
         ),
109 109
         ),
110
-      ),
110
+        ),
111
+    ),
111 112
     ),
112
-  ),
113 113
 );
114 114
 ?>
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.
@@ -45,23 +45,23 @@  discard block
 block discarded – undo
45 45
  * Contributor(s): ______________________________________..
46 46
  ********************************************************************************/
47 47
 
48
-$viewdefs = array (
48
+$viewdefs = array(
49 49
   'Opportunities' => 
50
-  array (
50
+  array(
51 51
     'QuickCreate' => 
52
-    array (
52
+    array(
53 53
       'templateMeta' => 
54
-      array (
54
+      array(
55 55
         'maxColumns' => '2',
56 56
         'widths' => 
57
-        array (
57
+        array(
58 58
           0 => 
59
-          array (
59
+          array(
60 60
             'label' => '10',
61 61
             'field' => '30',
62 62
           ),
63 63
           1 => 
64
-          array (
64
+          array(
65 65
             'label' => '10',
66 66
             'field' => '30',
67 67
           ),
@@ -69,40 +69,40 @@  discard block
 block discarded – undo
69 69
         'javascript' => '{$PROBABILITY_SCRIPT}',
70 70
       ),
71 71
       'panels' => 
72
-      array (
72
+      array(
73 73
         'DEFAULT' => 
74
-        array (
75
-          array (
76
-            array (
74
+        array(
75
+          array(
76
+            array(
77 77
               'name' => 'name',
78 78
               'displayParams'=>array('required'=>true),
79 79
             ),
80
-            array (
80
+            array(
81 81
               'name' => 'account_name',
82 82
             ),
83 83
           ),
84
-          array (
85
-            array (
84
+          array(
85
+            array(
86 86
               'name' => 'currency_id',
87 87
             ),
88
-            array (
88
+            array(
89 89
               'name' => 'opportunity_type',
90 90
             ),            
91 91
           ),
92
-          array (
92
+          array(
93 93
             'amount',
94 94
             'date_closed'          
95 95
           ),
96
-          array (
96
+          array(
97 97
              'next_step',
98 98
              'sales_stage',
99 99
           ),
100
-          array (
100
+          array(
101 101
              'lead_source',
102 102
              'probability',
103 103
           ),
104
-        array (
105
-            array (
104
+        array(
105
+            array(
106 106
               'name' => 'assigned_user_name',
107 107
             ),
108 108
         ),
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/Opportunities/metadata/metafiles.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -43,13 +43,13 @@
 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['Opportunities'] = array(
47
-	'detailviewdefs'  => 	'modules/Opportunities/metadata/detailviewdefs.php', 	
48
-	'editviewdefs'    => 	'modules/Opportunities/metadata/editviewdefs.php',
49
- 	'listviewdefs'    => 	'modules/Opportunities/metadata/listviewdefs.php',
50
- 	'searchdefs'      =>    'modules/Opportunities/metadata/searchdefs.php',
51
- 	'popupdefs'	      =>    'modules/Opportunities/metadata/popupdefs.php',
52
- 	'searchfields'	  =>    'modules/Opportunities/metadata/SearchFields.php',
46
+    $metafiles['Opportunities'] = array(
47
+    'detailviewdefs'  => 	'modules/Opportunities/metadata/detailviewdefs.php', 	
48
+    'editviewdefs'    => 	'modules/Opportunities/metadata/editviewdefs.php',
49
+        'listviewdefs'    => 	'modules/Opportunities/metadata/listviewdefs.php',
50
+        'searchdefs'      =>    'modules/Opportunities/metadata/searchdefs.php',
51
+        'popupdefs'	      =>    'modules/Opportunities/metadata/popupdefs.php',
52
+        'searchfields'	  =>    'modules/Opportunities/metadata/SearchFields.php',
53 53
 
54
- );
54
+    );
55 55
 ?>
Please login to merge, or discard this patch.