Completed
Push — console-installer ( 3d54e5...e2b50d )
by Adam
69:10 queued 48:24
created
modules/Opportunities/field_arrays.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
2
+if (!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
3 3
 /*********************************************************************************
4 4
  * SugarCRM Community Edition is a customer relationship management program developed by
5 5
  * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc.
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
  * All Rights Reserved.
46 46
  * Contributor(s): ______________________________________..
47 47
  ********************************************************************************/
48
-$fields_array['Opportunity'] = array ('column_fields' => Array("id"
48
+$fields_array['Opportunity'] = array('column_fields' => Array("id"
49 49
 		, "name"
50 50
 		, "opportunity_type"
51 51
 		, "lead_source"
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
 		, "description"
65 65
 		,"campaign_id"
66 66
 		),
67
-        'list_fields' => Array('id', 'name', 'account_id', 'sales_stage', 'account_name', 'date_closed', 'amount', 'assigned_user_name', 'assigned_user_id','sales_stage','probability','lead_source','opportunity_type'
67
+        'list_fields' => Array('id', 'name', 'account_id', 'sales_stage', 'account_name', 'date_closed', 'amount', 'assigned_user_name', 'assigned_user_id', 'sales_stage', 'probability', 'lead_source', 'opportunity_type'
68 68
 	, "amount_usdollar"
69 69
 	),
70 70
         'required_fields' => Array('name'=>1, 'date_closed'=>2, 'amount'=>3, 'sales_stage'=>4, 'account_name'=>5),
Please login to merge, or discard this patch.
modules/Opportunities/vardefs.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -319,7 +319,7 @@
 block discarded – undo
319 319
             array(
320 320
                 'name' => 'emails',
321 321
                 'type' => 'link',
322
-                'relationship' => 'emails_opportunities_rel',/* reldef in emails */
322
+                'relationship' => 'emails_opportunities_rel', /* reldef in emails */
323 323
                 'source' => 'non-db',
324 324
                 'vname' => 'LBL_EMAILS',
325 325
             ),
Please login to merge, or discard this patch.
modules/Opportunities/SubPanelViewProjects.php 1 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.
@@ -100,14 +100,14 @@  discard block
 block discarded – undo
100 100
 	."  ' name='button' onclick='open_popup(\"Opportunities\", 600, 400, \"\", false, true, {$encoded_popup_request_data});'>\n";
101 101
 $button .= "</form>\n";
102 102
 $header_text = '';
103
-if(is_admin($current_user) && $_REQUEST['module'] != 'DynamicLayout' && !empty($_SESSION['editinplace'])){	
104
-		$header_text = "&nbsp;<a href='index.php?action=index&module=DynamicLayout&from_action=SubPanelView&from_module=Opportunities&record=". $_REQUEST['record']."'>".SugarThemeRegistry::current()->getImage("EditLayout","border='0' align='bottom'",null,null,'.gif',$mod_strings['LBL_EDITLAYOUT'])."</a>";
103
+if (is_admin($current_user) && $_REQUEST['module'] != 'DynamicLayout' && !empty($_SESSION['editinplace'])) {	
104
+		$header_text = "&nbsp;<a href='index.php?action=index&module=DynamicLayout&from_action=SubPanelView&from_module=Opportunities&record=".$_REQUEST['record']."'>".SugarThemeRegistry::current()->getImage("EditLayout", "border='0' align='bottom'", null, null, '.gif', $mod_strings['LBL_EDITLAYOUT'])."</a>";
105 105
 }
106 106
 $ListView = new ListView();
107
-$ListView->initNewXTemplate('modules/Opportunities/SubPanelViewProjects.html',$current_module_strings);
107
+$ListView->initNewXTemplate('modules/Opportunities/SubPanelViewProjects.html', $current_module_strings);
108 108
 $ListView->xTemplateAssign("RETURN_URL", "&return_module=".$currentModule."&return_action=DetailView&return_id={$_REQUEST['record']}");
109
-$ListView->xTemplateAssign("REMOVE_INLINE_PNG", SugarThemeRegistry::current()->getImage('delete_inline','align="absmiddle" border="0"',null,null,'.gif',$app_strings['LNK_REMOVE']));
110
-$ListView->setHeaderTitle($project_module_strings['LBL_OPPORTUNITY_SUBPANEL_TITLE']. $header_text );
109
+$ListView->xTemplateAssign("REMOVE_INLINE_PNG", SugarThemeRegistry::current()->getImage('delete_inline', 'align="absmiddle" border="0"', null, null, '.gif', $app_strings['LNK_REMOVE']));
110
+$ListView->setHeaderTitle($project_module_strings['LBL_OPPORTUNITY_SUBPANEL_TITLE'].$header_text);
111 111
 $ListView->setHeaderText($button);
112 112
 $ListView->processListView($focus_list, "main", "OPPORTUNITY");
113 113
 
Please login to merge, or discard this patch.
modules/Opportunities/SaveOverload.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
2
+if (!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
3 3
 /*********************************************************************************
4 4
  * SugarCRM Community Edition is a customer relationship management program developed by
5 5
  * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc.
@@ -39,9 +39,9 @@  discard block
 block discarded – undo
39 39
  ********************************************************************************/
40 40
 
41 41
 
42
-function perform_save(&$focus){
42
+function perform_save(&$focus) {
43 43
 	//US DOLLAR
44
-	if(isset($focus->amount) && !number_empty($focus->amount)){
44
+	if (isset($focus->amount) && !number_empty($focus->amount)) {
45 45
 		$currency = new Currency();
46 46
 		$currency->retrieve($focus->currency_id);
47 47
 		$focus->amount_usdollar = $currency->convertToDollar(unformat_number($focus->amount));
Please login to merge, or discard this patch.
modules/Opportunities/SubPanelView.php 1 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.
@@ -134,14 +134,14 @@  discard block
 block discarded – undo
134 134
 }
135 135
 $button .= "</form>\n";
136 136
 $header_text = '';
137
-if(is_admin($current_user) && $_REQUEST['module'] != 'DynamicLayout' && !empty($_SESSION['editinplace'])){	
138
-		$header_text = "&nbsp;<a href='index.php?action=index&module=DynamicLayout&from_action=SubPanelView&from_module=Opportunities&record=". $_REQUEST['record']."'>".SugarThemeRegistry::current()->getImage("EditLayout","border='0' align='bottom'",null,null,'.gif',$mod_strings['LBL_EDITLAYOUT'])."</a>";
137
+if (is_admin($current_user) && $_REQUEST['module'] != 'DynamicLayout' && !empty($_SESSION['editinplace'])) {	
138
+		$header_text = "&nbsp;<a href='index.php?action=index&module=DynamicLayout&from_action=SubPanelView&from_module=Opportunities&record=".$_REQUEST['record']."'>".SugarThemeRegistry::current()->getImage("EditLayout", "border='0' align='bottom'", null, null, '.gif', $mod_strings['LBL_EDITLAYOUT'])."</a>";
139 139
 }
140 140
 $ListView = new ListView();
141
-$ListView->initNewXTemplate( 'modules/Opportunities/SubPanelView.html',$current_module_strings);
141
+$ListView->initNewXTemplate('modules/Opportunities/SubPanelView.html', $current_module_strings);
142 142
 $ListView->xTemplateAssign("RETURN_URL", "&return_module=".$currentModule."&return_action=DetailView&return_id={$_REQUEST['record']}");
143
-$ListView->xTemplateAssign("EDIT_INLINE_PNG",  SugarThemeRegistry::current()->getImage('edit_inline','align="absmiddle" border="0"',null,null,'.gif',$app_strings['LNK_EDIT']));
144
-$ListView->setHeaderTitle($current_module_strings['LBL_MODULE_NAME']. $header_text );
143
+$ListView->xTemplateAssign("EDIT_INLINE_PNG", SugarThemeRegistry::current()->getImage('edit_inline', 'align="absmiddle" border="0"', null, null, '.gif', $app_strings['LNK_EDIT']));
144
+$ListView->setHeaderTitle($current_module_strings['LBL_MODULE_NAME'].$header_text);
145 145
 $ListView->setHeaderText($button);
146 146
 $ListView->processListView($focus_list, "main", "OPPORTUNITY");
147 147
 
Please login to merge, or discard this patch.
modules/Opportunities/metadata/additionalDetails.php 1 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.
modules/Opportunities/metadata/acldefs.php 1 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.
modules/Opportunities/metadata/editviewdefs.php 1 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/searchdefs.php 1 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.