Completed
Push — console-installer ( 186d32...cb4007 )
by Adam
91:14 queued 78:40
created
modules/Cases/metadata/editviewdefs.php 1 patch
Spacing   +34 added lines, -34 removed lines patch added patch discarded remove patch
@@ -38,71 +38,71 @@  discard block
 block discarded – undo
38 38
  ********************************************************************************/
39 39
 
40 40
 $viewdefs ['Cases'] =
41
-array (
41
+array(
42 42
   'EditView' => 
43
-  array (
43
+  array(
44 44
     'templateMeta' => 
45
-    array (
45
+    array(
46 46
       'maxColumns' => '2',
47 47
       'widths' => 
48
-      array (
48
+      array(
49 49
         0 => 
50
-        array (
50
+        array(
51 51
           'label' => '10',
52 52
           'field' => '30',
53 53
         ),
54 54
         1 => 
55
-        array (
55
+        array(
56 56
           'label' => '10',
57 57
           'field' => '30',
58 58
         ),
59 59
       ),
60 60
       'includes' => 
61
-      array (
61
+      array(
62 62
           0 =>
63
-              array (
63
+              array(
64 64
                   'file' => 'include/javascript/bindWithDelay.js',
65 65
               ),
66 66
         1 =>
67
-        array (
67
+        array(
68 68
           'file' => 'modules/AOK_KnowledgeBase/AOK_KnowledgeBase_SuggestionBox.js',
69 69
         ),
70 70
           2 =>
71
-              array (
71
+              array(
72 72
                   'file' => 'include/javascript/qtip/jquery.qtip.min.js',
73 73
               ),
74 74
       ),
75 75
       'useTabs' => false,
76 76
       'tabDefs' => 
77
-      array (
77
+      array(
78 78
         'LBL_CASE_INFORMATION' => 
79
-        array (
79
+        array(
80 80
           'newTab' => false,
81 81
           'panelDefault' => 'expanded',
82 82
         ),
83 83
       ),
84 84
       'form' => 
85
-      array (
85
+      array(
86 86
         'enctype' => 'multipart/form-data',
87 87
       ),
88 88
     ),
89 89
     'panels' => 
90
-    array (
90
+    array(
91 91
       'lbl_case_information' => 
92
-      array (
92
+      array(
93 93
         0 => 
94
-        array (
94
+        array(
95 95
           0 => 
96
-          array (
96
+          array(
97 97
             'name' => 'case_number',
98 98
             'type' => 'readonly',
99 99
           ),
100 100
           1 => 'priority',
101 101
         ),
102 102
         1 => 
103
-        array (
103
+        array(
104 104
           0 => 
105
-          array (
105
+          array(
106 106
             'name' => 'state',
107 107
             'comment' => 'The state of the case (i.e. open/closed)',
108 108
             'label' => 'LBL_STATE',
@@ -110,68 +110,68 @@  discard block
 block discarded – undo
110 110
           1 => 'status',
111 111
         ),
112 112
         2 => 
113
-        array (
113
+        array(
114 114
           0 => 'type',
115 115
           1 => 'account_name',
116 116
         ),
117 117
         3 => 
118
-        array (
118
+        array(
119 119
           0 => 
120
-          array (
120
+          array(
121 121
             'name' => 'name',
122 122
             'displayParams' => 
123
-            array (
123
+            array(
124 124
               //'size' => 75,
125 125
             ),
126 126
           ),
127 127
             1 =>
128
-                array (
128
+                array(
129 129
                     'name' => 'suggestion_box',
130 130
                   //'studio' => 'visible',
131 131
                     'label' => 'LBL_SUGGESTION_BOX'
132 132
                 ),
133 133
         ),
134 134
         4 =>
135
-        array (
135
+        array(
136 136
           0 => 
137
-          array (
137
+          array(
138 138
             'name' => 'description',
139 139
             'nl2br' => true,
140 140
           ),
141 141
         ),
142 142
         5 =>
143
-        array (
143
+        array(
144 144
           0 => 
145
-          array (
145
+          array(
146 146
             'name' => 'resolution',
147 147
             'nl2br' => true,
148 148
           ),
149 149
         ),
150 150
         6 =>
151
-        array (
151
+        array(
152 152
           0 => 
153
-          array (
153
+          array(
154 154
             'name' => 'update_text',
155 155
             'studio' => 'visible',
156 156
             'label' => 'LBL_UPDATE_TEXT',
157 157
           ),
158 158
           1 => 
159
-          array (
159
+          array(
160 160
             'name' => 'internal',
161 161
             'studio' => 'visible',
162 162
             'label' => 'LBL_INTERNAL',
163 163
           ),
164 164
         ),
165 165
         7 =>
166
-        array (
166
+        array(
167 167
           0 => 
168
-          array (
168
+          array(
169 169
             'name' => 'case_update_form',
170 170
             'studio' => 'visible',
171 171
           ),
172 172
         ),
173 173
         8 =>
174
-        array (
174
+        array(
175 175
           0 => 'assigned_user_name',
176 176
         ),
177 177
       ),
Please login to merge, or discard this patch.
modules/Cases/metadata/detailviewdefs.php 1 patch
Spacing   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -38,15 +38,15 @@  discard block
 block discarded – undo
38 38
  ********************************************************************************/
39 39
 
40 40
 $viewdefs ['Cases'] = 
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,50 +55,50 @@  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
         'LBL_CASE_INFORMATION' => 
74
-        array (
74
+        array(
75 75
           'newTab' => true,
76 76
           'panelDefault' => 'expanded',
77 77
         ),
78 78
         'LBL_AOP_CASE_UPDATES' => 
79
-        array (
79
+        array(
80 80
           'newTab' => false,
81 81
           'panelDefault' => 'expanded',
82 82
         ),
83 83
       ),
84 84
     ),
85 85
     'panels' => 
86
-    array (
86
+    array(
87 87
       'lbl_case_information' => 
88
-      array (
88
+      array(
89 89
         0 => 
90
-        array (
90
+        array(
91 91
           0 => 
92
-          array (
92
+          array(
93 93
             'name' => 'case_number',
94 94
             'label' => 'LBL_CASE_NUMBER',
95 95
           ),
96 96
           1 => 'priority',
97 97
         ),
98 98
         1 => 
99
-        array (
99
+        array(
100 100
           0 => 
101
-          array (
101
+          array(
102 102
             'name' => 'state',
103 103
             'comment' => 'The state of the case (i.e. open/closed)',
104 104
             'label' => 'LBL_STATE',
@@ -106,43 +106,43 @@  discard block
 block discarded – undo
106 106
           1 => 'status',
107 107
         ),
108 108
         2 => 
109
-        array (
109
+        array(
110 110
           0 => 'type',
111 111
           1 => 'account_name',
112 112
         ),
113 113
         3 => 
114
-        array (
114
+        array(
115 115
           0 => 
116
-          array (
116
+          array(
117 117
             'name' => 'name',
118 118
             'label' => 'LBL_SUBJECT',
119 119
           ),
120 120
         ),
121 121
         4 => 
122
-        array (
122
+        array(
123 123
           0 => 'description',
124 124
         ),
125 125
         5 => 
126
-        array (
126
+        array(
127 127
           0 => 'resolution',
128 128
         ),
129 129
         6 => 
130
-        array (
130
+        array(
131 131
           0 => 
132
-          array (
132
+          array(
133 133
             'name' => 'assigned_user_name',
134 134
             'label' => 'LBL_ASSIGNED_TO',
135 135
           ),
136 136
         ),
137 137
         7 => 
138
-        array (
138
+        array(
139 139
           0 => 
140
-          array (
140
+          array(
141 141
             'name' => 'date_entered',
142 142
             'customCode' => '{$fields.date_entered.value} {$APP.LBL_BY} {$fields.created_by_name.value}',
143 143
           ),
144 144
           1 => 
145
-          array (
145
+          array(
146 146
             'name' => 'date_modified',
147 147
             'label' => 'LBL_DATE_MODIFIED',
148 148
             'customCode' => '{$fields.date_modified.value} {$APP.LBL_BY} {$fields.modified_by_name.value}',
@@ -150,11 +150,11 @@  discard block
 block discarded – undo
150 150
         ),
151 151
       ),
152 152
       'LBL_AOP_CASE_UPDATES' => 
153
-      array (
153
+      array(
154 154
         0 => 
155
-        array (
155
+        array(
156 156
           0 => 
157
-          array (
157
+          array(
158 158
             'name' => 'aop_case_updates_threaded',
159 159
             'studio' => 'visible',
160 160
             'label' => 'LBL_AOP_CASE_UPDATES_THREADED',
Please login to merge, or discard this patch.
modules/Cases/metadata/quickcreatedefs.php 1 patch
Spacing   +9 added lines, -9 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.
@@ -48,26 +48,26 @@  discard block
 block discarded – undo
48 48
                        ),
49 49
 'panels' =>
50 50
 
51
-array (
51
+array(
52 52
   
53
-  array (
54
-    array ('name'=>'name', 'displayParams'=>array('size'=>65, 'required'=>true)),
53
+  array(
54
+    array('name'=>'name', 'displayParams'=>array('size'=>65, 'required'=>true)),
55 55
     'priority'
56 56
   ),
57 57
   
58
-  array (
58
+  array(
59 59
     'status',
60 60
     array('name'=>'account_name'),
61 61
   ),
62 62
   
63
-  array (
63
+  array(
64 64
     'assigned_user_name',
65 65
   ),
66 66
   
67
-  array (
68
-    array (
67
+  array(
68
+    array(
69 69
       'name' => 'description',
70
-      'displayParams' => array ('rows' => '4','cols' => '60'),
70
+      'displayParams' => array('rows' => '4', 'cols' => '60'),
71 71
       'nl2br' => true,
72 72
     ),
73 73
   ),
Please login to merge, or discard this patch.
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.