Completed
Push — master ( 24ce66...da2f36 )
by Adam
25:35
created
custom/modules/unified_search_modules_display.php 1 patch
Indentation   +102 added lines, -102 removed lines patch added patch discarded remove patch
@@ -1,140 +1,140 @@
 block discarded – undo
1 1
 <?php
2 2
 // created: 2014-01-29 09:59:23
3 3
 $unified_search_modules_display = array (
4
-  'AOP_Case_Events' => 
5
-  array (
4
+    'AOP_Case_Events' => 
5
+    array (
6 6
     'visible' => false,
7
-  ),
8
-  'AOP_Case_Updates' => 
9
-  array (
7
+    ),
8
+    'AOP_Case_Updates' => 
9
+    array (
10 10
     'visible' => false,
11
-  ),
12
-  'AOR_Reports' => 
13
-  array (
11
+    ),
12
+    'AOR_Reports' => 
13
+    array (
14 14
     'visible' => false,
15
-  ),
16
-  'AOS_Contracts' => 
17
-  array (
15
+    ),
16
+    'AOS_Contracts' => 
17
+    array (
18 18
     'visible' => false,
19
-  ),
20
-  'AOS_Invoices' => 
21
-  array (
19
+    ),
20
+    'AOS_Invoices' => 
21
+    array (
22 22
     'visible' => false,
23
-  ),
24
-  'AOS_PDF_Templates' => 
25
-  array (
23
+    ),
24
+    'AOS_PDF_Templates' => 
25
+    array (
26 26
     'visible' => false,
27
-  ),
28
-  'AOS_Product_Categories' => 
29
-  array (
27
+    ),
28
+    'AOS_Product_Categories' => 
29
+    array (
30 30
     'visible' => false,
31
-  ),
32
-  'AOS_Products' => 
33
-  array (
31
+    ),
32
+    'AOS_Products' => 
33
+    array (
34 34
     'visible' => false,
35
-  ),
36
-  'AOS_Quotes' => 
37
-  array (
35
+    ),
36
+    'AOS_Quotes' => 
37
+    array (
38 38
     'visible' => false,
39
-  ),
40
-  'AOW_Processed' => 
41
-  array (
39
+    ),
40
+    'AOW_Processed' => 
41
+    array (
42 42
     'visible' => false,
43
-  ),
44
-  'AOW_WorkFlow' => 
45
-  array (
43
+    ),
44
+    'AOW_WorkFlow' => 
45
+    array (
46 46
     'visible' => false,
47
-  ),
48
-  'Accounts' => 
49
-  array (
47
+    ),
48
+    'Accounts' => 
49
+    array (
50 50
     'visible' => true,
51
-  ),
52
-  'Bugs' => 
53
-  array (
51
+    ),
52
+    'Bugs' => 
53
+    array (
54 54
     'visible' => false,
55
-  ),
56
-  'Calls' => 
57
-  array (
55
+    ),
56
+    'Calls' => 
57
+    array (
58 58
     'visible' => true,
59
-  ),
60
-  'Calls_Reschedule' => 
61
-  array (
59
+    ),
60
+    'Calls_Reschedule' => 
61
+    array (
62 62
     'visible' => false,
63
-  ),
64
-  'Campaigns' => 
65
-  array (
63
+    ),
64
+    'Campaigns' => 
65
+    array (
66 66
     'visible' => false,
67
-  ),
68
-  'Cases' => 
69
-  array (
67
+    ),
68
+    'Cases' => 
69
+    array (
70 70
     'visible' => true,
71
-  ),
72
-  'Contacts' => 
73
-  array (
71
+    ),
72
+    'Contacts' => 
73
+    array (
74 74
     'visible' => true,
75
-  ),
76
-  'Documents' => 
77
-  array (
75
+    ),
76
+    'Documents' => 
77
+    array (
78 78
     'visible' => true,
79
-  ),
80
-  'FP_Event_Locations' => 
81
-  array (
79
+    ),
80
+    'FP_Event_Locations' => 
81
+    array (
82 82
     'visible' => false,
83
-  ),
84
-  'FP_events' => 
85
-  array (
83
+    ),
84
+    'FP_events' => 
85
+    array (
86 86
     'visible' => false,
87
-  ),
88
-  'Leads' => 
89
-  array (
87
+    ),
88
+    'Leads' => 
89
+    array (
90 90
     'visible' => true,
91
-  ),
92
-  'Meetings' => 
93
-  array (
91
+    ),
92
+    'Meetings' => 
93
+    array (
94 94
     'visible' => true,
95
-  ),
96
-  'Notes' => 
97
-  array (
95
+    ),
96
+    'Notes' => 
97
+    array (
98 98
     'visible' => true,
99
-  ),
100
-  'Opportunities' => 
101
-  array (
99
+    ),
100
+    'Opportunities' => 
101
+    array (
102 102
     'visible' => true,
103
-  ),
104
-  'Project' => 
105
-  array (
103
+    ),
104
+    'Project' => 
105
+    array (
106 106
     'visible' => false,
107
-  ),
108
-  'ProjectTask' => 
109
-  array (
107
+    ),
108
+    'ProjectTask' => 
109
+    array (
110 110
     'visible' => false,
111
-  ),
112
-  'ProspectLists' => 
113
-  array (
111
+    ),
112
+    'ProspectLists' => 
113
+    array (
114 114
     'visible' => false,
115
-  ),
116
-  'Prospects' => 
117
-  array (
115
+    ),
116
+    'Prospects' => 
117
+    array (
118 118
     'visible' => false,
119
-  ),
120
-  'Tasks' => 
121
-  array (
119
+    ),
120
+    'Tasks' => 
121
+    array (
122 122
     'visible' => false,
123
-  ),
124
-  'jjwg_Address_Cache' => 
125
-  array (
123
+    ),
124
+    'jjwg_Address_Cache' => 
125
+    array (
126 126
     'visible' => false,
127
-  ),
128
-  'jjwg_Areas' => 
129
-  array (
127
+    ),
128
+    'jjwg_Areas' => 
129
+    array (
130 130
     'visible' => false,
131
-  ),
132
-  'jjwg_Maps' => 
133
-  array (
131
+    ),
132
+    'jjwg_Maps' => 
133
+    array (
134 134
     'visible' => false,
135
-  ),
136
-  'jjwg_Markers' => 
137
-  array (
135
+    ),
136
+    'jjwg_Markers' => 
137
+    array (
138 138
     'visible' => false,
139
-  ),
139
+    ),
140 140
 );
141 141
\ No newline at end of file
Please login to merge, or discard this patch.
include/SugarFields/Fields/Datetimecombo/SugarFieldDatetimecombo.php 1 patch
Indentation   +37 added lines, -37 removed lines patch added patch discarded remove patch
@@ -44,19 +44,19 @@  discard block
 block discarded – undo
44 44
     function getEditViewSmarty($parentFieldArray, $vardef, $displayParams, $tabindex) {
45 45
         // Create Smarty variables for the Calendar picker widget
46 46
         if(!isset($displayParams['showMinutesDropdown'])) {
47
-           $displayParams['showMinutesDropdown'] = false;
47
+            $displayParams['showMinutesDropdown'] = false;
48 48
         }
49 49
 
50 50
         if(!isset($displayParams['showHoursDropdown'])) {
51
-           $displayParams['showHoursDropdown'] = false;
51
+            $displayParams['showHoursDropdown'] = false;
52 52
         }
53 53
 
54 54
         if(!isset($displayParams['showNoneCheckbox'])) {
55
-           $displayParams['showNoneCheckbox'] = false;
55
+            $displayParams['showNoneCheckbox'] = false;
56 56
         }
57 57
 
58 58
         if(!isset($displayParams['showFormats'])) {
59
-           $displayParams['showFormats'] = false;
59
+            $displayParams['showFormats'] = false;
60 60
         }
61 61
 
62 62
         global $timedate;
@@ -75,44 +75,44 @@  discard block
 block discarded – undo
75 75
 	
76 76
     function getSearchViewSmarty($parentFieldArray, $vardef, $displayParams, $tabindex) {
77 77
 
78
-    	 if($this->isRangeSearchView($vardef)) {
79
-           $displayParams['showMinutesDropdown'] = false;
80
-           $displayParams['showHoursDropdown'] = false;
81
-           $displayParams['showNoneCheckbox'] = false;
82
-           $displayParams['showFormats'] = false;
83
-	       global $timedate, $current_language;
84
-	       $displayParams['dateFormat'] = $timedate->get_cal_date_format();
85
-	       $displayParams['timeFormat'] = $timedate->get_user_time_format();
86
-
87
-           $this->setup($parentFieldArray, $vardef, $displayParams, $tabindex);
88
-           $id = isset($displayParams['idName']) ? $displayParams['idName'] : $vardef['name'];
89
-           $this->ss->assign('original_id', "{$id}");
90
-           $this->ss->assign('id_range', "range_{$id}");
91
-           $this->ss->assign('id_range_start', "start_range_{$id}");
92
-           $this->ss->assign('id_range_end', "end_range_{$id}");
93
-           $this->ss->assign('id_range_choice', "{$id}_range_choice");
94
-           if(file_exists('custom/include/SugarFields/Fields/Datetimecombo/RangeSearchForm.tpl'))
95
-           {
96
-              return $this->fetch('custom/include/SugarFields/Fields/Datetimecombo/RangeSearchForm.tpl');
97
-           }
98
-           return $this->fetch('include/SugarFields/Fields/Datetimecombo/RangeSearchForm.tpl');
78
+            if($this->isRangeSearchView($vardef)) {
79
+            $displayParams['showMinutesDropdown'] = false;
80
+            $displayParams['showHoursDropdown'] = false;
81
+            $displayParams['showNoneCheckbox'] = false;
82
+            $displayParams['showFormats'] = false;
83
+            global $timedate, $current_language;
84
+            $displayParams['dateFormat'] = $timedate->get_cal_date_format();
85
+            $displayParams['timeFormat'] = $timedate->get_user_time_format();
86
+
87
+            $this->setup($parentFieldArray, $vardef, $displayParams, $tabindex);
88
+            $id = isset($displayParams['idName']) ? $displayParams['idName'] : $vardef['name'];
89
+            $this->ss->assign('original_id', "{$id}");
90
+            $this->ss->assign('id_range', "range_{$id}");
91
+            $this->ss->assign('id_range_start', "start_range_{$id}");
92
+            $this->ss->assign('id_range_end', "end_range_{$id}");
93
+            $this->ss->assign('id_range_choice', "{$id}_range_choice");
94
+            if(file_exists('custom/include/SugarFields/Fields/Datetimecombo/RangeSearchForm.tpl'))
95
+            {
96
+                return $this->fetch('custom/include/SugarFields/Fields/Datetimecombo/RangeSearchForm.tpl');
97
+            }
98
+            return $this->fetch('include/SugarFields/Fields/Datetimecombo/RangeSearchForm.tpl');
99 99
         }
100 100
 
101
-    	// Create Smarty variables for the Calendar picker widget
101
+        // Create Smarty variables for the Calendar picker widget
102 102
         if(!isset($displayParams['showMinutesDropdown'])) {
103
-           $displayParams['showMinutesDropdown'] = false;
103
+            $displayParams['showMinutesDropdown'] = false;
104 104
         }
105 105
 
106 106
         if(!isset($displayParams['showHoursDropdown'])) {
107
-           $displayParams['showHoursDropdown'] = false;
107
+            $displayParams['showHoursDropdown'] = false;
108 108
         }
109 109
 
110 110
         if(!isset($displayParams['showNoneCheckbox'])) {
111
-           $displayParams['showNoneCheckbox'] = false;
111
+            $displayParams['showNoneCheckbox'] = false;
112 112
         }
113 113
 
114 114
         if(!isset($displayParams['showFormats'])) {
115
-           $displayParams['showFormats'] = false;
115
+            $displayParams['showFormats'] = false;
116 116
         }
117 117
 
118 118
         global $timedate;
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
     }
125 125
 
126 126
 
127
-	public function getEmailTemplateValue($inputField, $vardef, $context = null, $tabindex = 0){
127
+    public function getEmailTemplateValue($inputField, $vardef, $context = null, $tabindex = 0){
128 128
         // This does not return a smarty section, instead it returns a direct value
129 129
         if(isset($context['notify_user'])) {
130 130
             $user = $context['notify_user'];
@@ -143,14 +143,14 @@  discard block
 block discarded – undo
143 143
 
144 144
         if(strpos($params[$prefix.$field], ' ') > 0) {
145 145
             if ($timedate->check_matching_format($params[$prefix.$field], TimeDate::DB_DATETIME_FORMAT)) {
146
-	            $bean->$field = $params[$prefix.$field];
146
+                $bean->$field = $params[$prefix.$field];
147 147
             } else {
148 148
                 $bean->$field = $timedate->to_db($params[$prefix.$field]);
149 149
             }
150 150
         } else {
151
-        	$GLOBALS['log']->error('Field ' . $prefix.$field . ' expecting datetime format, but got value: ' . $params[$prefix.$field]);
152
-	        //Default to assume date format value
153
-        	if ($timedate->check_matching_format($params[$prefix.$field], TimeDate::DB_DATE_FORMAT)) {
151
+            $GLOBALS['log']->error('Field ' . $prefix.$field . ' expecting datetime format, but got value: ' . $params[$prefix.$field]);
152
+            //Default to assume date format value
153
+            if ($timedate->check_matching_format($params[$prefix.$field], TimeDate::DB_DATE_FORMAT)) {
154 154
                 $bean->$field = $params[$prefix.$field];
155 155
             } else {
156 156
                 $bean->$field = $timedate->to_db_date($params[$prefix.$field]);
@@ -175,10 +175,10 @@  discard block
 block discarded – undo
175 175
         if ( !$timedate->check_matching_format($value, $format) ) {
176 176
             $parts = $timedate->split_date_time($value);
177 177
             if(empty($parts[0])) {
178
-               $datepart = $timedate->getNow()->format($settings->dateformat);
178
+                $datepart = $timedate->getNow()->format($settings->dateformat);
179 179
             }
180 180
             else {
181
-               $datepart = $parts[0];
181
+                $datepart = $parts[0];
182 182
             }
183 183
             if(empty($parts[1])) {
184 184
                 $timepart = $timedate->fromTimestamp(0)->format($settings->timeformat);
Please login to merge, or discard this patch.
SugarFields/Fields/Assigned_user_name/SugarFieldAssigned_user_name.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -41,14 +41,14 @@
 block discarded – undo
41 41
 
42 42
 class SugarFieldAssigned_user_name extends SugarFieldBase {
43 43
 
44
-	function getSearchViewSmarty($parentFieldArray, $vardef, $displayParams, $tabindex) {
45
-    	$vardef['options'] = get_user_array(false);
46
-		if(!empty($vardef['function']['returns']) && $vardef['function']['returns']== 'html'){
47
-    	   $this->setup($parentFieldArray, $vardef, $displayParams, $tabindex);
48
-           return $this->fetch($this->findTemplate('EditViewFunction'));
49
-    	}else{
50
-    	   $this->setup($parentFieldArray, $vardef, $displayParams, $tabindex);
51
-           return $this->fetch($this->findTemplate('SearchView'));
52
-    	}
44
+    function getSearchViewSmarty($parentFieldArray, $vardef, $displayParams, $tabindex) {
45
+        $vardef['options'] = get_user_array(false);
46
+        if(!empty($vardef['function']['returns']) && $vardef['function']['returns']== 'html'){
47
+            $this->setup($parentFieldArray, $vardef, $displayParams, $tabindex);
48
+            return $this->fetch($this->findTemplate('EditViewFunction'));
49
+        }else{
50
+            $this->setup($parentFieldArray, $vardef, $displayParams, $tabindex);
51
+            return $this->fetch($this->findTemplate('SearchView'));
52
+        }
53 53
     }
54 54
 }
Please login to merge, or discard this patch.
include/SugarOauth.php 1 patch
Indentation   +39 added lines, -39 removed lines patch added patch discarded remove patch
@@ -145,34 +145,34 @@  discard block
 block discarded – undo
145 145
          * @return array
146 146
          */
147 147
         public function getAccessToken($url,
148
-                                       Zend_Oauth_Token_Request $token = null,
149
-                                       $httpMethod = null,
150
-                                       Zend_Oauth_Http_AccessToken $request = null)
148
+                                        Zend_Oauth_Token_Request $token = null,
149
+                                        $httpMethod = null,
150
+                                        Zend_Oauth_Http_AccessToken $request = null)
151 151
         {
152 152
             $this->setAccessTokenUrl($url);
153 153
             $this->_last = $token = parent::getAccessToken($_REQUEST, $this->makeRequestToken());
154 154
             return array('oauth_token' => $token->getToken(), 'oauth_token_secret' => $token->getTokenSecret());
155 155
         }
156 156
 
157
-       /**
158
-        * Fetch URL with OAuth
159
-        * @param string $url
160
-        * @param string $params Query params
161
-        * @param string $method HTTP method
162
-        * @param array $headers HTTP headers
163
-        * @return string
164
-        */
157
+        /**
158
+         * Fetch URL with OAuth
159
+         * @param string $url
160
+         * @param string $params Query params
161
+         * @param string $method HTTP method
162
+         * @param array $headers HTTP headers
163
+         * @return string
164
+         */
165 165
         
166 166
         public function fetch($url, $params = null, $method = 'GET', $headers = null)
167 167
         {
168 168
             $acc = $this->makeAccessToken();
169 169
             if ( strpos($url,'?') ) {
170
-               list($clean_url, $query) = explode('?', $url);
171
-               if($query) {
172
-                   $url = $clean_url;
173
-                   parse_str($query, $query_params);
174
-                   $params = array_merge($params?$params:array(), $query_params);
175
-               }
170
+                list($clean_url, $query) = explode('?', $url);
171
+                if($query) {
172
+                    $url = $clean_url;
173
+                    parse_str($query, $query_params);
174
+                    $params = array_merge($params?$params:array(), $query_params);
175
+                }
176 176
             }
177 177
             $client = $acc->getHttpClient($this->_oauth_config, $url);
178 178
             
@@ -212,33 +212,33 @@  discard block
 block discarded – undo
212 212
             $this->_last = $resp = $client->request();
213 213
             $this->_lastReq = $client->getLastRequest();
214 214
             return $resp->getBody();
215
-       }
215
+        }
216 216
 
217
-       /**
218
-        * Get HTTP client
219
-        * @return Zend_Oauth_Client
220
-        */
221
-       public function getClient()
222
-       {
217
+        /**
218
+         * Get HTTP client
219
+         * @return Zend_Oauth_Client
220
+         */
221
+        public function getClient()
222
+        {
223 223
             $acc = $this->makeAccessToken();
224 224
             return $acc->getHttpClient($this->_oauth_config);
225
-       }
225
+        }
226 226
 
227
-       /**
228
-        * Get last response
229
-        * @return string
230
-        */
231
-       public function getLastResponse()
232
-       {
227
+        /**
228
+         * Get last response
229
+         * @return string
230
+         */
231
+        public function getLastResponse()
232
+        {
233 233
             return $this->_last;
234
-       }
234
+        }
235 235
 
236
-       /**
237
-        * Get last request
238
-        * @return string
239
-        */
240
-       public function getLastRequest()
241
-       {
236
+        /**
237
+         * Get last request
238
+         * @return string
239
+         */
240
+        public function getLastRequest()
241
+        {
242 242
             return $this->_lastReq;
243
-       }
243
+        }
244 244
     }
Please login to merge, or discard this patch.
include/phpmailer/language/phpmailer.lang-ar.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
 $PHPMAILER_LANG['mailer_not_supported'] = ' برنامج الإرسال غير مدعوم.';
20 20
 $PHPMAILER_LANG['provide_address']      = 'يجب توفير عنوان البريد الإلكتروني لمستلم واحد على الأقل.';
21 21
 $PHPMAILER_LANG['recipients_failed']    = 'خطأ SMTP: الأخطاء التالية ' .
22
-                                          'فشل في الارسال لكل من : ';
22
+                                            'فشل في الارسال لكل من : ';
23 23
 $PHPMAILER_LANG['signing']              = 'خطأ في التوقيع: ';
24 24
 $PHPMAILER_LANG['smtp_connect_failed']  = 'SMTP Connect() غير ممكن.';
25 25
 $PHPMAILER_LANG['smtp_error']           = 'خطأ على مستوى الخادم SMTP: ';
Please login to merge, or discard this patch.
include/SubPanel/registered_layout_defs.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,8 +49,8 @@
 block discarded – undo
49 49
 function get_layout_defs()
50 50
 {
51 51
     //TODO add global memory cache support here.  If there is an in memory cache, leverage it.
52
-	global $layout_defs;
53
-	return $layout_defs;
52
+    global $layout_defs;
53
+    return $layout_defs;
54 54
 }
55 55
 
56 56
 ?>
57 57
\ No newline at end of file
Please login to merge, or discard this patch.
include/generic/SugarWidgets/SugarWidgetSubPanelGetLatestButton.php 1 patch
Indentation   +29 added lines, -29 removed lines patch added patch discarded remove patch
@@ -45,40 +45,40 @@
 block discarded – undo
45 45
 
46 46
 class SugarWidgetSubPanelGetLatestButton extends SugarWidgetField
47 47
 {
48
-	function displayHeaderCell($layout_def)
49
-	{
50
-		return '&nbsp;';
51
-	}
48
+    function displayHeaderCell($layout_def)
49
+    {
50
+        return '&nbsp;';
51
+    }
52 52
 
53
-	function displayList($layout_def)
54
-	{
55
-		//if the contract has been executed or selected_revision is same as latest revision
56
-		//then hide the latest button. 		
57
-		//if the contract state is executed or document is not a template hide this action.
58
-		if ((!empty($layout_def['fields']['CONTRACT_STATUS']) && $layout_def['fields']['CONTRACT_STATUS']=='executed') or
59
-			$layout_def['fields']['SELECTED_REVISION_ID']== $layout_def['fields']['LATEST_REVISION_ID']) {
60
-			return "";
61
-		}
53
+    function displayList($layout_def)
54
+    {
55
+        //if the contract has been executed or selected_revision is same as latest revision
56
+        //then hide the latest button. 		
57
+        //if the contract state is executed or document is not a template hide this action.
58
+        if ((!empty($layout_def['fields']['CONTRACT_STATUS']) && $layout_def['fields']['CONTRACT_STATUS']=='executed') or
59
+            $layout_def['fields']['SELECTED_REVISION_ID']== $layout_def['fields']['LATEST_REVISION_ID']) {
60
+            return "";
61
+        }
62 62
 		
63
-		global $app_strings;
63
+        global $app_strings;
64 64
 		
65 65
 
66
-		$href = 'index.php?module=' . $layout_def['module']
67
-			. '&action=' . 'GetLatestRevision'
68
-			. '&record=' . $layout_def['fields']['ID']
69
-			. '&return_module=' . $_REQUEST['module']
70
-			. '&return_action=' . 'DetailView'
71
-			. '&return_id=' . $_REQUEST['record']
72
-			. '&get_latest_for_id=' . $layout_def['fields']['LINKED_ID'];
66
+        $href = 'index.php?module=' . $layout_def['module']
67
+            . '&action=' . 'GetLatestRevision'
68
+            . '&record=' . $layout_def['fields']['ID']
69
+            . '&return_module=' . $_REQUEST['module']
70
+            . '&return_action=' . 'DetailView'
71
+            . '&return_id=' . $_REQUEST['record']
72
+            . '&get_latest_for_id=' . $layout_def['fields']['LINKED_ID'];
73 73
 
74
-		$edit_icon_html = SugarThemeRegistry::current()->getImage( 'getLatestDocument','align="absmiddle" border="0"',null,null,'.gif',$app_strings['LNK_GET_LATEST']);
75
-		if($layout_def['EditView']){
76
-			return '<a href="' . $href . '"' . "title ='". $app_strings['LNK_GET_LATEST_TOOLTIP']  ."'"
77
-			. 'class="listViewTdToolsS1">' . $edit_icon_html . '&nbsp;' . $app_strings['LNK_GET_LATEST'] .'</a>&nbsp;';
78
-		}else{
79
-			return '';
80
-		}
81
-	}
74
+        $edit_icon_html = SugarThemeRegistry::current()->getImage( 'getLatestDocument','align="absmiddle" border="0"',null,null,'.gif',$app_strings['LNK_GET_LATEST']);
75
+        if($layout_def['EditView']){
76
+            return '<a href="' . $href . '"' . "title ='". $app_strings['LNK_GET_LATEST_TOOLTIP']  ."'"
77
+            . 'class="listViewTdToolsS1">' . $edit_icon_html . '&nbsp;' . $app_strings['LNK_GET_LATEST'] .'</a>&nbsp;';
78
+        }else{
79
+            return '';
80
+        }
81
+    }
82 82
 		
83 83
 }
84 84
 
Please login to merge, or discard this patch.
include/generic/SugarWidgets/SugarWidgetSubPanelTopCreateLeadNameButton.php 1 patch
Indentation   +67 added lines, -67 removed lines patch added patch discarded remove patch
@@ -51,77 +51,77 @@
 block discarded – undo
51 51
         return parent::getWidgetId();
52 52
     }
53 53
 
54
-	function display($defines, $additionalFormFields = NULL, $nonbutton = false)
55
-	{
56
-		global $app_strings;
57
-		global $currentModule;
54
+    function display($defines, $additionalFormFields = NULL, $nonbutton = false)
55
+    {
56
+        global $app_strings;
57
+        global $currentModule;
58 58
 
59
-		$title = $app_strings['LBL_NEW_BUTTON_TITLE'];
60
-		//$accesskey = $app_strings['LBL_NEW_BUTTON_KEY'];
61
-		$value = $app_strings['LBL_NEW_BUTTON_LABEL'];
62
-		$this->module = 'Leads';
63
-		if( ACLController::moduleSupportsACL($defines['module'])  && !ACLController::checkAccess($defines['module'], 'edit', true)){
64
-			$button = "<input title='$title'class='button' type='button' name='button' value='  $value  ' disabled/>\n";
65
-			return $button;
66
-		}
59
+        $title = $app_strings['LBL_NEW_BUTTON_TITLE'];
60
+        //$accesskey = $app_strings['LBL_NEW_BUTTON_KEY'];
61
+        $value = $app_strings['LBL_NEW_BUTTON_LABEL'];
62
+        $this->module = 'Leads';
63
+        if( ACLController::moduleSupportsACL($defines['module'])  && !ACLController::checkAccess($defines['module'], 'edit', true)){
64
+            $button = "<input title='$title'class='button' type='button' name='button' value='  $value  ' disabled/>\n";
65
+            return $button;
66
+        }
67 67
 		
68
-		$additionalFormFields = array();
68
+        $additionalFormFields = array();
69 69
 		
70
-		//from accounts
71
-		if ($defines['focus']->object_name == 'Account') {
72
-			if(isset($defines['focus']->billing_address_street)) 
73
-				$additionalFormFields['primary_address_street'] = $defines['focus']->billing_address_street;
74
-			if(isset($defines['focus']->billing_address_city)) 
75
-				$additionalFormFields['primary_address_city'] = $defines['focus']->billing_address_city;						  		
76
-			if(isset($defines['focus']->billing_address_state)) 
77
-				$additionalFormFields['primary_address_state'] = $defines['focus']->billing_address_state;
78
-			if(isset($defines['focus']->billing_address_country)) 
79
-				$additionalFormFields['primary_address_country'] = $defines['focus']->billing_address_country;
80
-			if(isset($defines['focus']->billing_address_postalcode)) 
81
-				$additionalFormFields['primary_address_postalcode'] = $defines['focus']->billing_address_postalcode;
82
-			if(isset($defines['focus']->phone_office)) 
83
-				$additionalFormFields['phone_work'] = $defines['focus']->phone_office;
84
-			if(isset($defines['focus']->id)) 
85
-				$additionalFormFields['account_id'] = $defines['focus']->id;
86
-		}
87
-		//from contacts
88
-		if ($defines['focus']->object_name == 'Contact') {
89
-			if(isset($defines['focus']->salutation)) 
90
-				$additionalFormFields['salutation'] = $defines['focus']->salutation;
91
-			if(isset($defines['focus']->first_name)) 
92
-				$additionalFormFields['first_name'] = $defines['focus']->first_name;
93
-			if(isset($defines['focus']->last_name)) 
94
-				$additionalFormFields['last_name'] = $defines['focus']->last_name;
95
-			if(isset($defines['focus']->primary_address_street)) 
96
-				$additionalFormFields['primary_address_street'] = $defines['focus']->primary_address_street;
97
-			if(isset($defines['focus']->primary_address_city)) 
98
-				$additionalFormFields['primary_address_city'] = $defines['focus']->primary_address_city;						  		
99
-			if(isset($defines['focus']->primary_address_state)) 
100
-				$additionalFormFields['primary_address_state'] = $defines['focus']->primary_address_state;
101
-			if(isset($defines['focus']->primary_address_country)) 
102
-				$additionalFormFields['primary_address_country'] = $defines['focus']->primary_address_country;
103
-			if(isset($defines['focus']->primary_address_postalcode)) 
104
-				$additionalFormFields['primary_address_postalcode'] = $defines['focus']->primary_address_postalcode;
105
-			if(isset($defines['focus']->phone_work)) 
106
-				$additionalFormFields['phone_work'] = $defines['focus']->phone_work;
107
-			if(isset($defines['focus']->id)) 
108
-				$additionalFormFields['contact_id'] = $defines['focus']->id;
109
-		}
70
+        //from accounts
71
+        if ($defines['focus']->object_name == 'Account') {
72
+            if(isset($defines['focus']->billing_address_street)) 
73
+                $additionalFormFields['primary_address_street'] = $defines['focus']->billing_address_street;
74
+            if(isset($defines['focus']->billing_address_city)) 
75
+                $additionalFormFields['primary_address_city'] = $defines['focus']->billing_address_city;						  		
76
+            if(isset($defines['focus']->billing_address_state)) 
77
+                $additionalFormFields['primary_address_state'] = $defines['focus']->billing_address_state;
78
+            if(isset($defines['focus']->billing_address_country)) 
79
+                $additionalFormFields['primary_address_country'] = $defines['focus']->billing_address_country;
80
+            if(isset($defines['focus']->billing_address_postalcode)) 
81
+                $additionalFormFields['primary_address_postalcode'] = $defines['focus']->billing_address_postalcode;
82
+            if(isset($defines['focus']->phone_office)) 
83
+                $additionalFormFields['phone_work'] = $defines['focus']->phone_office;
84
+            if(isset($defines['focus']->id)) 
85
+                $additionalFormFields['account_id'] = $defines['focus']->id;
86
+        }
87
+        //from contacts
88
+        if ($defines['focus']->object_name == 'Contact') {
89
+            if(isset($defines['focus']->salutation)) 
90
+                $additionalFormFields['salutation'] = $defines['focus']->salutation;
91
+            if(isset($defines['focus']->first_name)) 
92
+                $additionalFormFields['first_name'] = $defines['focus']->first_name;
93
+            if(isset($defines['focus']->last_name)) 
94
+                $additionalFormFields['last_name'] = $defines['focus']->last_name;
95
+            if(isset($defines['focus']->primary_address_street)) 
96
+                $additionalFormFields['primary_address_street'] = $defines['focus']->primary_address_street;
97
+            if(isset($defines['focus']->primary_address_city)) 
98
+                $additionalFormFields['primary_address_city'] = $defines['focus']->primary_address_city;						  		
99
+            if(isset($defines['focus']->primary_address_state)) 
100
+                $additionalFormFields['primary_address_state'] = $defines['focus']->primary_address_state;
101
+            if(isset($defines['focus']->primary_address_country)) 
102
+                $additionalFormFields['primary_address_country'] = $defines['focus']->primary_address_country;
103
+            if(isset($defines['focus']->primary_address_postalcode)) 
104
+                $additionalFormFields['primary_address_postalcode'] = $defines['focus']->primary_address_postalcode;
105
+            if(isset($defines['focus']->phone_work)) 
106
+                $additionalFormFields['phone_work'] = $defines['focus']->phone_work;
107
+            if(isset($defines['focus']->id)) 
108
+                $additionalFormFields['contact_id'] = $defines['focus']->id;
109
+        }
110 110
 		
111
-		//from opportunities
112
-		if ($defines['focus']->object_name == 'Opportunity') {
113
-			if(isset($defines['focus']->id)) 
114
-				$additionalFormFields['opportunity_id'] = $defines['focus']->id;
115
-			if(isset($defines['focus']->account_name)) 
116
-				$additionalFormFields['account_name'] = $defines['focus']->account_name;
117
-			if(isset($defines['focus']->account_id)) 
118
-				$additionalFormFields['account_id'] = $defines['focus']->account_id;
119
-		}
111
+        //from opportunities
112
+        if ($defines['focus']->object_name == 'Opportunity') {
113
+            if(isset($defines['focus']->id)) 
114
+                $additionalFormFields['opportunity_id'] = $defines['focus']->id;
115
+            if(isset($defines['focus']->account_name)) 
116
+                $additionalFormFields['account_name'] = $defines['focus']->account_name;
117
+            if(isset($defines['focus']->account_id)) 
118
+                $additionalFormFields['account_id'] = $defines['focus']->account_id;
119
+        }
120 120
 		
121
-		$button = $this->_get_form($defines, $additionalFormFields);
122
-		$button .= "<input title='$title' class='button' type='submit' name='{$this->getWidgetId()}_button' id='{$this->getWidgetId()}' value='  $value  '/>\n";
123
-		$button .= "</form>";
124
-		return $button;
125
-	}
121
+        $button = $this->_get_form($defines, $additionalFormFields);
122
+        $button .= "<input title='$title' class='button' type='submit' name='{$this->getWidgetId()}_button' id='{$this->getWidgetId()}' value='  $value  '/>\n";
123
+        $button .= "</form>";
124
+        return $button;
125
+    }
126 126
 }
127 127
 ?>
128 128
\ No newline at end of file
Please login to merge, or discard this patch.
include/generic/SugarWidgets/SugarWidgetFieldrelate.php 1 patch
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -174,25 +174,25 @@  discard block
 block discarded – undo
174 174
         return $this->_get_column_select($layout_def) . " IN ('" . implode("', '", $ids) . "')";
175 175
     }
176 176
 
177
-	//for to_pdf/to_csv
178
-	function displayListPlain($layout_def) {
179
-	    $reporter = $this->layout_manager->getAttribute("reporter");
180
-		$field_def = $reporter->all_fields[$layout_def['column_key']];
181
-		$display = strtoupper($field_def['secondary_table'].'_name');
182
-		//#31797  , we should get the table alias in a global registered array:selected_loaded_custom_links
183
-		if(!empty($reporter->selected_loaded_custom_links) && !empty($reporter->selected_loaded_custom_links[$field_def['secondary_table']])){
184
-			$display = strtoupper($reporter->selected_loaded_custom_links[$field_def['secondary_table']]['join_table_alias'].'_name');
185
-		}
177
+    //for to_pdf/to_csv
178
+    function displayListPlain($layout_def) {
179
+        $reporter = $this->layout_manager->getAttribute("reporter");
180
+        $field_def = $reporter->all_fields[$layout_def['column_key']];
181
+        $display = strtoupper($field_def['secondary_table'].'_name');
182
+        //#31797  , we should get the table alias in a global registered array:selected_loaded_custom_links
183
+        if(!empty($reporter->selected_loaded_custom_links) && !empty($reporter->selected_loaded_custom_links[$field_def['secondary_table']])){
184
+            $display = strtoupper($reporter->selected_loaded_custom_links[$field_def['secondary_table']]['join_table_alias'].'_name');
185
+        }
186 186
         elseif(isset($field_def['rep_rel_name']) && isset($reporter->selected_loaded_custom_links) && !empty($reporter->selected_loaded_custom_links[$field_def['secondary_table'].'_'.$field_def['rep_rel_name']]))
187 187
         {
188 188
             $display = strtoupper($reporter->selected_loaded_custom_links[$field_def['secondary_table'].'_'.$field_def['rep_rel_name']]['join_table_alias'].'_name');
189 189
         }
190
-		elseif(!empty($reporter->selected_loaded_custom_links) && !empty($reporter->selected_loaded_custom_links[$field_def['secondary_table'].'_'.$field_def['name']])){
191
-			$display = strtoupper($reporter->selected_loaded_custom_links[$field_def['secondary_table'].'_'.$field_def['name']]['join_table_alias'].'_name');
192
-		}
193
-		$cell = $layout_def['fields'][$display];
194
-		return $cell;
195
-	}
190
+        elseif(!empty($reporter->selected_loaded_custom_links) && !empty($reporter->selected_loaded_custom_links[$field_def['secondary_table'].'_'.$field_def['name']])){
191
+            $display = strtoupper($reporter->selected_loaded_custom_links[$field_def['secondary_table'].'_'.$field_def['name']]['join_table_alias'].'_name');
192
+        }
193
+        $cell = $layout_def['fields'][$display];
194
+        return $cell;
195
+    }
196 196
 
197 197
     function displayList($layout_def) {
198 198
         $reporter = $this->layout_manager->getAttribute("reporter");
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
 
202 202
         //#31797  , we should get the table alias in a global registered array:selected_loaded_custom_links
203 203
         if(!empty($reporter->selected_loaded_custom_links) && !empty($reporter->selected_loaded_custom_links[$field_def['secondary_table']])){
204
-             $display = strtoupper($reporter->selected_loaded_custom_links[$field_def['secondary_table']]['join_table_alias'].'_name');
204
+                $display = strtoupper($reporter->selected_loaded_custom_links[$field_def['secondary_table']]['join_table_alias'].'_name');
205 205
         }
206 206
         elseif(isset($field_def['rep_rel_name']) && isset($reporter->selected_loaded_custom_links) && !empty($reporter->selected_loaded_custom_links[$field_def['secondary_table'].'_'.$field_def['rep_rel_name']]))
207 207
         {
Please login to merge, or discard this patch.