Test Failed
Push — CI ( 02428e...3e0292 )
by Adam
55:43
created
modules/TableDictionary.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -125,6 +125,6 @@
 block discarded – undo
125 125
 include('metadata/securitygroups_usersMetaData.php');
126 126
 
127 127
 if(file_exists('custom/application/Ext/TableDictionary/tabledictionary.ext.php')){
128
-	include('custom/application/Ext/TableDictionary/tabledictionary.ext.php');
128
+    include('custom/application/Ext/TableDictionary/tabledictionary.ext.php');
129 129
 }
130 130
 ?>
Please login to merge, or discard this patch.
modules/AOS_Products_Quotes/AOS_Products_Quotes.php 1 patch
Indentation   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -1,26 +1,26 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Advanced OpenSales, Advanced, robust set of sales modules.
4
- * @package Advanced OpenSales for SugarCRM
5
- * @copyright SalesAgility Ltd http://www.salesagility.com
6
- *
7
- * This program is free software; you can redistribute it and/or modify
8
- * it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE as published by
9
- * the Free Software Foundation; either version 3 of the License, or
10
- * (at your option) any later version.
11
- *
12
- * This program is distributed in the hope that it will be useful,
13
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
- * GNU General Public License for more details.
16
- *
17
- * You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
18
- * along with this program; if not, see http://www.gnu.org/licenses
19
- * or write to the Free Software Foundation,Inc., 51 Franklin Street,
20
- * Fifth Floor, Boston, MA 02110-1301  USA
21
- *
22
- * @author SalesAgility <[email protected]>
23
- */
3
+     * Advanced OpenSales, Advanced, robust set of sales modules.
4
+     * @package Advanced OpenSales for SugarCRM
5
+     * @copyright SalesAgility Ltd http://www.salesagility.com
6
+     *
7
+     * This program is free software; you can redistribute it and/or modify
8
+     * it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE as published by
9
+     * the Free Software Foundation; either version 3 of the License, or
10
+     * (at your option) any later version.
11
+     *
12
+     * This program is distributed in the hope that it will be useful,
13
+     * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
+     * GNU General Public License for more details.
16
+     *
17
+     * You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
18
+     * along with this program; if not, see http://www.gnu.org/licenses
19
+     * or write to the Free Software Foundation,Inc., 51 Franklin Street,
20
+     * Fifth Floor, Boston, MA 02110-1301  USA
21
+     *
22
+     * @author SalesAgility <[email protected]>
23
+     */
24 24
 
25 25
 require_once('modules/AOS_Products_Quotes/AOS_Products_Quotes_sugar.php');
26 26
 class AOS_Products_Quotes extends AOS_Products_Quotes_sugar {
Please login to merge, or discard this patch.
modules/Home/language/en_us.lang.php 1 patch
Indentation   +133 added lines, -133 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
     'LBL_EMAIL_ADDRESS' => 'Email Address:',
56 56
     'LBL_MY_PIPELINE_FORM_TITLE' => 'My Pipeline',
57 57
     'LBL_PIPELINE_FORM_TITLE' => 'Pipeline By Sales Stage',
58
-		'LBL_RGraph_PIPELINE_FORM_TITLE' => 'Pipeline By Sales Stage',
58
+        'LBL_RGraph_PIPELINE_FORM_TITLE' => 'Pipeline By Sales Stage',
59 59
     'LBL_CAMPAIGN_ROI_FORM_TITLE' => 'Campaign ROI',
60 60
     'LBL_MY_CLOSED_OPPORTUNITIES_GAUGE' => 'My Closed Won Opportunities Gauge',
61 61
     'LNK_NEW_CONTACT' => 'Create Contact',
@@ -80,35 +80,35 @@  discard block
 block discarded – undo
80 80
     'LBL_NO_RESULTS' => '<h2>There were no results found. Please search again.</h2><br>',
81 81
     'LBL_NO_RESULTS_TIPS' => '<h3>Search Tips:</h3><ul><li>Make sure you have the proper categories selected above.</li><li>Broaden your search criteria.</li><li>If you still cannot find any results try the advanced search option.</li></ul>',
82 82
 
83
-  'LBL_RELOAD_PAGE' => 'Please <a href="javascript: window.location.reload()">reload the window</a> to use this SuiteCRM Dashlet.',
84
-  'LBL_ADD_DASHLETS' => 'Add SuiteCRM Dashlets',
85
-  'LBL_ADD_PAGE' => 'Add Page',
86
-  'LBL_DEL_PAGE' => 'Delete Page',
87
-  'LBL_WEBSITE_TITLE' => 'Website',
88
-  'LBL_RSS_TITLE' => 'News Feed',
89
-  'LBL_DELETE_PAGE' => 'Delete Page',
90
-  'LBL_CHANGE_LAYOUT' => 'Change Layout',
91
-  'LBL_RENAME_PAGE' => 'Rename Page',
92
-  'LBL_CLOSE_DASHLETS' => 'Close',
93
-  'LBL_OPTIONS' => 'Options',
94
-  // dashlet search fields
95
-  'LBL_TODAY'=>'Today',
96
-  'LBL_YESTERDAY' => 'Yesterday',
97
-  'LBL_TOMORROW'=>'Tomorrow',
98
-  'LBL_LAST_WEEK'=>'Last Week',
99
-  'LBL_NEXT_WEEK'=>'Next Week',
100
-  'LBL_LAST_7_DAYS'=>'Last 7 Days',
101
-  'LBL_NEXT_7_DAYS'=>'Next 7 Days',
102
-  'LBL_LAST_MONTH'=>'Last Month',
103
-  'LBL_NEXT_MONTH'=>'Next Month',
104
-  'LBL_LAST_QUARTER'=>'Last Quarter',
105
-  'LBL_THIS_QUARTER'=>'This Quarter',
106
-  'LBL_LAST_YEAR'=>'Last Year',
107
-  'LBL_NEXT_YEAR'=>'Next Year',
108
-  'LBL_LAST_30_DAYS' => 'Last 30 Days',
109
-  'LBL_NEXT_30_DAYS' => 'Next 30 Days',
110
-  'LBL_THIS_MONTH' => 'This Month',
111
-  'LBL_THIS_YEAR' => 'This Year',
83
+    'LBL_RELOAD_PAGE' => 'Please <a href="javascript: window.location.reload()">reload the window</a> to use this SuiteCRM Dashlet.',
84
+    'LBL_ADD_DASHLETS' => 'Add SuiteCRM Dashlets',
85
+    'LBL_ADD_PAGE' => 'Add Page',
86
+    'LBL_DEL_PAGE' => 'Delete Page',
87
+    'LBL_WEBSITE_TITLE' => 'Website',
88
+    'LBL_RSS_TITLE' => 'News Feed',
89
+    'LBL_DELETE_PAGE' => 'Delete Page',
90
+    'LBL_CHANGE_LAYOUT' => 'Change Layout',
91
+    'LBL_RENAME_PAGE' => 'Rename Page',
92
+    'LBL_CLOSE_DASHLETS' => 'Close',
93
+    'LBL_OPTIONS' => 'Options',
94
+    // dashlet search fields
95
+    'LBL_TODAY'=>'Today',
96
+    'LBL_YESTERDAY' => 'Yesterday',
97
+    'LBL_TOMORROW'=>'Tomorrow',
98
+    'LBL_LAST_WEEK'=>'Last Week',
99
+    'LBL_NEXT_WEEK'=>'Next Week',
100
+    'LBL_LAST_7_DAYS'=>'Last 7 Days',
101
+    'LBL_NEXT_7_DAYS'=>'Next 7 Days',
102
+    'LBL_LAST_MONTH'=>'Last Month',
103
+    'LBL_NEXT_MONTH'=>'Next Month',
104
+    'LBL_LAST_QUARTER'=>'Last Quarter',
105
+    'LBL_THIS_QUARTER'=>'This Quarter',
106
+    'LBL_LAST_YEAR'=>'Last Year',
107
+    'LBL_NEXT_YEAR'=>'Next Year',
108
+    'LBL_LAST_30_DAYS' => 'Last 30 Days',
109
+    'LBL_NEXT_30_DAYS' => 'Next 30 Days',
110
+    'LBL_THIS_MONTH' => 'This Month',
111
+    'LBL_THIS_YEAR' => 'This Year',
112 112
 
113 113
     'LBL_MODULES' => 'Modules',
114 114
     'LBL_CHARTS' => 'Charts',
@@ -116,44 +116,44 @@  discard block
 block discarded – undo
116 116
     'LBL_WEB' => 'Web',
117 117
     'LBL_SEARCH_RESULTS' => 'Search Result',
118 118
 
119
-  // Dashlet Categories
120
-  'dashlet_categories_dom' => array(
121
-      'Module Views' => 'Module Views',
122
-      'Portal' => 'Portal',
123
-      'Charts' => 'Charts',
124
-      'Tools' => 'Tools',
125
-      'Miscellaneous' => 'Miscellaneous'),
126
-  'LBL_MAX_DASHLETS_REACHED' => 'You have reached the maximum number of SuiteCRM Dashlets your administrator has set. Please remove a SuiteCRM Dashlet to add a new one.',
127
-  'LBL_ADDING_DASHLET' => 'Adding SuiteCRM Dashlet ...',
128
-  'LBL_ADDED_DASHLET' => 'SuiteCRM Dashlet Added',
129
-  'LBL_REMOVE_DASHLET_CONFIRM' => 'Are you sure you want to remove this SuiteCRM Dashlet?',
130
-  'LBL_REMOVING_DASHLET' => 'Removing SuiteCRM Dashlet ...',
131
-  'LBL_REMOVED_DASHLET' => 'SuiteCRM Dashlet Removed',
132
-  'LBL_DASHLET_CONFIGURE_GENERAL' => 'General',
133
-  'LBL_DASHLET_CONFIGURE_FILTERS' => 'Filters',
134
-  'LBL_DASHLET_CONFIGURE_MY_ITEMS_ONLY' => 'Only My Items',
135
-  'LBL_DASHLET_CONFIGURE_TITLE' => 'Title',
136
-  'LBL_DASHLET_CONFIGURE_DISPLAY_ROWS' => 'Display Rows',
119
+    // Dashlet Categories
120
+    'dashlet_categories_dom' => array(
121
+        'Module Views' => 'Module Views',
122
+        'Portal' => 'Portal',
123
+        'Charts' => 'Charts',
124
+        'Tools' => 'Tools',
125
+        'Miscellaneous' => 'Miscellaneous'),
126
+    'LBL_MAX_DASHLETS_REACHED' => 'You have reached the maximum number of SuiteCRM Dashlets your administrator has set. Please remove a SuiteCRM Dashlet to add a new one.',
127
+    'LBL_ADDING_DASHLET' => 'Adding SuiteCRM Dashlet ...',
128
+    'LBL_ADDED_DASHLET' => 'SuiteCRM Dashlet Added',
129
+    'LBL_REMOVE_DASHLET_CONFIRM' => 'Are you sure you want to remove this SuiteCRM Dashlet?',
130
+    'LBL_REMOVING_DASHLET' => 'Removing SuiteCRM Dashlet ...',
131
+    'LBL_REMOVED_DASHLET' => 'SuiteCRM Dashlet Removed',
132
+    'LBL_DASHLET_CONFIGURE_GENERAL' => 'General',
133
+    'LBL_DASHLET_CONFIGURE_FILTERS' => 'Filters',
134
+    'LBL_DASHLET_CONFIGURE_MY_ITEMS_ONLY' => 'Only My Items',
135
+    'LBL_DASHLET_CONFIGURE_TITLE' => 'Title',
136
+    'LBL_DASHLET_CONFIGURE_DISPLAY_ROWS' => 'Display Rows',
137 137
 
138
-  'LBL_DASHLET_DELETE' => 'Delete SuiteCRM Dashlet',
139
-  'LBL_DASHLET_REFRESH' => 'Refresh SuiteCRM Dashlet',
140
-  'LBL_DASHLET_EDIT' => 'Edit SuiteCRM Dashlet',
138
+    'LBL_DASHLET_DELETE' => 'Delete SuiteCRM Dashlet',
139
+    'LBL_DASHLET_REFRESH' => 'Refresh SuiteCRM Dashlet',
140
+    'LBL_DASHLET_EDIT' => 'Edit SuiteCRM Dashlet',
141 141
 
142 142
     'LBL_TRAINING_TITLE' => 'Training',
143 143
 
144
-  'LBL_CREATING_NEW_PAGE' => 'Creating New Page...',
145
-  'LBL_NEW_PAGE_FEEDBACK' => 'You have created a new page. You can add new content with the Add SuiteCRM Dashlets option.',
146
-  'LBL_DELETE_PAGE_CONFIRM' => 'Are you sure you want to delete this page?',
147
-  'LBL_SAVING_PAGE_TITLE' => 'Saving Page Title...',
148
-  'LBL_RETRIEVING_PAGE' => 'Retrieving Page...',
144
+    'LBL_CREATING_NEW_PAGE' => 'Creating New Page...',
145
+    'LBL_NEW_PAGE_FEEDBACK' => 'You have created a new page. You can add new content with the Add SuiteCRM Dashlets option.',
146
+    'LBL_DELETE_PAGE_CONFIRM' => 'Are you sure you want to delete this page?',
147
+    'LBL_SAVING_PAGE_TITLE' => 'Saving Page Title...',
148
+    'LBL_RETRIEVING_PAGE' => 'Retrieving Page...',
149 149
 
150
-  // Default out-of-box names for tabs
151
-  'LBL_HOME_PAGE_1_NAME' => 'My SuiteCRM',
152
-  'LBL_HOME_PAGE_2_NAME' => 'Sales',
153
-  'LBL_HOME_PAGE_3_NAME' => 'Support',
154
-  'LBL_HOME_PAGE_6_NAME' => 'Marketing',//bug 16510, separate the support and marketing page from each other
155
-  'LBL_HOME_PAGE_4_NAME' => 'Tracker',
156
-  'LBL_CLOSE_SITEMAP' => 'Close',
150
+    // Default out-of-box names for tabs
151
+    'LBL_HOME_PAGE_1_NAME' => 'My SuiteCRM',
152
+    'LBL_HOME_PAGE_2_NAME' => 'Sales',
153
+    'LBL_HOME_PAGE_3_NAME' => 'Support',
154
+    'LBL_HOME_PAGE_6_NAME' => 'Marketing',//bug 16510, separate the support and marketing page from each other
155
+    'LBL_HOME_PAGE_4_NAME' => 'Tracker',
156
+    'LBL_CLOSE_SITEMAP' => 'Close',
157 157
 
158 158
     'LBL_SEARCH' => 'Search',
159 159
     'LBL_CLEAR' => 'Clear',
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
     'LBL_MY_TEAM_REPORT_CHARTS' => 'My Team Reports',
167 167
     'LBL_MY_SAVED_REPORT_CHARTS' => 'My Saved Reports',
168 168
 
169
-  'LBL_DASHLET_SEARCH' => 'Find SuiteCRM Dashlet',
169
+    'LBL_DASHLET_SEARCH' => 'Find SuiteCRM Dashlet',
170 170
 
171 171
 //ABOUT page
172 172
     'LBL_VERSION' => 'Version',
@@ -177,77 +177,77 @@  discard block
 block discarded – undo
177 177
     'LBL_ADD_TERM_COM' => '<P>The interactive user interfaces in modified source and object code versions of this program must display Appropriate Legal Notices, as required under Section 5 of the GNU Affero General Public License version 3. In accordance with Section 7(b) of the GNU General Public License version 3, these Appropriate Legal Notices must retain the display of the &quot;Powered by SugarCRM&quot; logo. If the display of the logo is not reasonably feasible for technical reasons, the Appropriate Legal Notices must display the words &quot;Powered by SugarCRM&quot;.</P>',
178 178
 
179 179
 
180
-  'LBL_SUGAR_COMMUNITY_EDITION' => 'Sugar Community Edition',
181
-  'LBL_AND' => "and",
182
-  'LBL_ARE' => "are",
183
-  'LBL_TRADEMARKS' => 'trademarks',
184
-  'LBL_OF' => 'of',
185
-  'LBL_FOUNDERS' => 'Founders',
186
-  'LBL_JOIN_SUGAR_COMMUNITY' => 'Join the SuiteCRM Community',
187
-  'LBL_DETAILS_SUGARFORGE' => 'Collaborate and develop SuiteCRM extensions',
188
-  'LBL_DETAILS_SUGAREXCHANGE' => 'Buy and sell certified SuiteCRM extensions',
189
-  'LBL_TRAINING' => 'Training',
190
-  'LBL_DETAILS_TRAINING' => 'Learn about SuiteCRM using online and interactive learning content',
191
-  'LBL_FORUMS' => 'Forums',
192
-  'LBL_DETAILS_FORUMS' => 'Discuss SuiteCRM with expert community users and developers',
193
-  'LBL_WIKI' => 'Wiki',
194
-  'LBL_DETAILS_WIKI' => 'Search the knowledge base of user and developer topics',
195
-  'LBL_DEVSITE' => 'Developer Site',
196
-  'LBL_DETAILS_DEVSITE' => 'Discover resources, tutorials, and helpful links to get you up to speed on SuiteCRM development',
197
- 'LBL_GET_SUGARCRM_RSS' => 'Get SuiteCRM RSS',
198
-  'LBL_SUGARCRM_NEWS' => 'SuiteCRM News',
199
-  'LBL_SUGARCRM_TRAINING_NEWS' => 'SuiteCRM Training News',
200
-  'LBL_SUGARCRM_FORUMS' => 'SuiteCRM Forums',
201
-  'LBL_SUGARFORGE_NEWS' => 'SuiteCRM News',
202
-  'LBL_ALL_NEWS' => 'All News',
203
-  'LBL_SOURCE_CODE' => 'Source Code',
180
+    'LBL_SUGAR_COMMUNITY_EDITION' => 'Sugar Community Edition',
181
+    'LBL_AND' => "and",
182
+    'LBL_ARE' => "are",
183
+    'LBL_TRADEMARKS' => 'trademarks',
184
+    'LBL_OF' => 'of',
185
+    'LBL_FOUNDERS' => 'Founders',
186
+    'LBL_JOIN_SUGAR_COMMUNITY' => 'Join the SuiteCRM Community',
187
+    'LBL_DETAILS_SUGARFORGE' => 'Collaborate and develop SuiteCRM extensions',
188
+    'LBL_DETAILS_SUGAREXCHANGE' => 'Buy and sell certified SuiteCRM extensions',
189
+    'LBL_TRAINING' => 'Training',
190
+    'LBL_DETAILS_TRAINING' => 'Learn about SuiteCRM using online and interactive learning content',
191
+    'LBL_FORUMS' => 'Forums',
192
+    'LBL_DETAILS_FORUMS' => 'Discuss SuiteCRM with expert community users and developers',
193
+    'LBL_WIKI' => 'Wiki',
194
+    'LBL_DETAILS_WIKI' => 'Search the knowledge base of user and developer topics',
195
+    'LBL_DEVSITE' => 'Developer Site',
196
+    'LBL_DETAILS_DEVSITE' => 'Discover resources, tutorials, and helpful links to get you up to speed on SuiteCRM development',
197
+    'LBL_GET_SUGARCRM_RSS' => 'Get SuiteCRM RSS',
198
+    'LBL_SUGARCRM_NEWS' => 'SuiteCRM News',
199
+    'LBL_SUGARCRM_TRAINING_NEWS' => 'SuiteCRM Training News',
200
+    'LBL_SUGARCRM_FORUMS' => 'SuiteCRM Forums',
201
+    'LBL_SUGARFORGE_NEWS' => 'SuiteCRM News',
202
+    'LBL_ALL_NEWS' => 'All News',
203
+    'LBL_SOURCE_CODE' => 'Source Code',
204 204
     'LBL_SOURCE_SUGAR' => 'SugarCRM Inc - providers of CE framework',
205
-  'LBL_SOURCE_XTEMPLATE' => 'XTemplate - A template engine for PHP created by Barnabás Debreceni',
206
-  'LBL_SOURCE_NUSOAP' => 'NuSOAP - A set of PHP classes that allow developers to create and consume web services created by NuSphere Corporation and Dietrich Ayala',
207
-  'LBL_SOURCE_JSCALENDAR' => 'JS Calendar - A calendar for entering dates created by Mihai Bazon',
208
-  'LBL_SOURCE_PHPPDF' => 'PHP PDF - A library for creating PDF documents created by Wayne Munro',
209
-  'LBL_SOURCE_HTTP_WEBDAV_SERVER' => 'HTTP_WebDAV_Server - A WebDAV Server Implementation in PHP.',
210
-  'LBL_SOURCE_PCLZIP' => 'PclZip - library offers compression and extraction functions for Zip formatted archives by Vincent Blavet',
211
-  'LBL_SOURCE_SMARTY' => 'Smarty - A template engine for PHP.',
212
-  'LBL_SOURCE_YAHOO_UI_LIB' => 'Yahoo! User Interface Library - The UI Library Utilities facilitate the implementation of rich client-side features.',
213
-  'LBL_SOURCE_PHPMAILER' => 'PHPMailer - A full featured email transfer class for PHP',
214
-  'LBL_SOURCE_JSHRINK' => 'JShrink - A Javascript minifier written in PHP',
215
-  'LBL_SOURCE_CRYPT_BLOWFISH' => 'Crypt_Blowfish - Allows for quick two-way blowfish encryption without requiring the MCrypt PHP extension.',
216
-  'LBL_SOURCE_XML_HTMLSAX3' => 'XML_HTMLSax3 - A SAX parser for HTML and other badly formed XML documents',
217
-  'LBL_SOURCE_YAHOO_UI_LIB_EXT' => 'Yahoo! UI Extensions Library - Extensions to the Yahoo! User Interface Library by Jack Slocum',
218
-  'LBL_SOURCE_SWFOBJECT' => 'SWFObject - Javascript Flash Player detection and embed script.',
219
-  'LBL_SOURCE_TINYMCE' => 'TinyMCE - A WYSIWYG editor control for web browsers that enables the user to edit HTML contents',
220
-  'LBL_SOURCE_EXT' => 'Ext - A client-side JavaScript framework for building web applications.',
221
-  'LBL_SOURCE_RECAPTCHA' => 'reCAPTCHA - A free CAPTCHA service that helps to digitize books, newspapers and old time radio shows.',
222
-  'LBL_SOURCE_TCPDF' => 'TCPDF - A PHP class for generating PDF documents.',
223
-  'LBL_SOURCE_CSSMIN' => 'CssMin - A css parser and minifier.',
224
-  'LBL_SOURCE_PHPSAML' => 'PHP-SAML - A simple SAML toolkit for PHP.',
225
-  'LBL_SOURCE_ISCROLL' => 'iScroll - The overflow:scroll for mobile webkit.  Native scrolling inside a fixed width/height element.',
226
-  'LBL_SOURCE_FLASHCANVAS' => 'FlashCanvas - FlashCanvas is a JavaScript library which adds the HTML5 Canvas support to Internet Explorer. It renders shapes and images via Flash drawing API. It supports almost all Canvas APIs and, in many cases, runs faster than other similar libraries which use VML or Silverlight.',
227
-  'LBL_SOURCE_JIT' => 'JavaScript InfoVis Toolkit - The JavaScript InfoVis Toolkit provides tools for creating Interactive Data Visualizations for the Web.',
228
-  'LBL_SOURCE_ZEND' => 'Zend Framework - An open source, object oriented web application framework for PHP5.',
229
-  'LBL_SOURCE_PARSECSV' => 'parseCSV - CSV data parser for PHP',
230
-  'LBL_SOURCE_PHPJS' => 'php.js - Use PHP functions in JavaScript',
231
-  'LBL_SOURCE_PHPSQL' => 'PHP SQL Parser',
232
-  'LBL_SOURCE_HTMLPURIFIER' => 'HTML Purifier - A standards-compliant HTML filtering library.',
233
-  'LBL_SOURCE_XHPROF' => 'XHProf - A function-level hierarchical profiler for PHP.',
234
-  'LBL_SOURCE_ELASTICA' => 'Elastica - PHP client for the distributed search engine elasticsearch ',
235
-  'LBL_SOURCE_FACEBOOKSDK' => 'Facebook PHP SDK',
236
-  'LBL_SOURCE_JQUERY' => 'jQuery - jQuery is a fast, small, and feature-rich JavaScript library.',
237
-  'LBL_SOURCE_JQUERY_UI' => 'jQuery UI - jQuery UI is a curated set of user interface interactions, effects, widgets, and themes built on top of the jQuery JavaScript Library.',
238
-  'LBL_SOURCE_OVERLIB' => 'OverlibMWS - The overlibmws library uses javascript for DHTML popups that serve as informational and navigational aids for websites.',
205
+    'LBL_SOURCE_XTEMPLATE' => 'XTemplate - A template engine for PHP created by Barnabás Debreceni',
206
+    'LBL_SOURCE_NUSOAP' => 'NuSOAP - A set of PHP classes that allow developers to create and consume web services created by NuSphere Corporation and Dietrich Ayala',
207
+    'LBL_SOURCE_JSCALENDAR' => 'JS Calendar - A calendar for entering dates created by Mihai Bazon',
208
+    'LBL_SOURCE_PHPPDF' => 'PHP PDF - A library for creating PDF documents created by Wayne Munro',
209
+    'LBL_SOURCE_HTTP_WEBDAV_SERVER' => 'HTTP_WebDAV_Server - A WebDAV Server Implementation in PHP.',
210
+    'LBL_SOURCE_PCLZIP' => 'PclZip - library offers compression and extraction functions for Zip formatted archives by Vincent Blavet',
211
+    'LBL_SOURCE_SMARTY' => 'Smarty - A template engine for PHP.',
212
+    'LBL_SOURCE_YAHOO_UI_LIB' => 'Yahoo! User Interface Library - The UI Library Utilities facilitate the implementation of rich client-side features.',
213
+    'LBL_SOURCE_PHPMAILER' => 'PHPMailer - A full featured email transfer class for PHP',
214
+    'LBL_SOURCE_JSHRINK' => 'JShrink - A Javascript minifier written in PHP',
215
+    'LBL_SOURCE_CRYPT_BLOWFISH' => 'Crypt_Blowfish - Allows for quick two-way blowfish encryption without requiring the MCrypt PHP extension.',
216
+    'LBL_SOURCE_XML_HTMLSAX3' => 'XML_HTMLSax3 - A SAX parser for HTML and other badly formed XML documents',
217
+    'LBL_SOURCE_YAHOO_UI_LIB_EXT' => 'Yahoo! UI Extensions Library - Extensions to the Yahoo! User Interface Library by Jack Slocum',
218
+    'LBL_SOURCE_SWFOBJECT' => 'SWFObject - Javascript Flash Player detection and embed script.',
219
+    'LBL_SOURCE_TINYMCE' => 'TinyMCE - A WYSIWYG editor control for web browsers that enables the user to edit HTML contents',
220
+    'LBL_SOURCE_EXT' => 'Ext - A client-side JavaScript framework for building web applications.',
221
+    'LBL_SOURCE_RECAPTCHA' => 'reCAPTCHA - A free CAPTCHA service that helps to digitize books, newspapers and old time radio shows.',
222
+    'LBL_SOURCE_TCPDF' => 'TCPDF - A PHP class for generating PDF documents.',
223
+    'LBL_SOURCE_CSSMIN' => 'CssMin - A css parser and minifier.',
224
+    'LBL_SOURCE_PHPSAML' => 'PHP-SAML - A simple SAML toolkit for PHP.',
225
+    'LBL_SOURCE_ISCROLL' => 'iScroll - The overflow:scroll for mobile webkit.  Native scrolling inside a fixed width/height element.',
226
+    'LBL_SOURCE_FLASHCANVAS' => 'FlashCanvas - FlashCanvas is a JavaScript library which adds the HTML5 Canvas support to Internet Explorer. It renders shapes and images via Flash drawing API. It supports almost all Canvas APIs and, in many cases, runs faster than other similar libraries which use VML or Silverlight.',
227
+    'LBL_SOURCE_JIT' => 'JavaScript InfoVis Toolkit - The JavaScript InfoVis Toolkit provides tools for creating Interactive Data Visualizations for the Web.',
228
+    'LBL_SOURCE_ZEND' => 'Zend Framework - An open source, object oriented web application framework for PHP5.',
229
+    'LBL_SOURCE_PARSECSV' => 'parseCSV - CSV data parser for PHP',
230
+    'LBL_SOURCE_PHPJS' => 'php.js - Use PHP functions in JavaScript',
231
+    'LBL_SOURCE_PHPSQL' => 'PHP SQL Parser',
232
+    'LBL_SOURCE_HTMLPURIFIER' => 'HTML Purifier - A standards-compliant HTML filtering library.',
233
+    'LBL_SOURCE_XHPROF' => 'XHProf - A function-level hierarchical profiler for PHP.',
234
+    'LBL_SOURCE_ELASTICA' => 'Elastica - PHP client for the distributed search engine elasticsearch ',
235
+    'LBL_SOURCE_FACEBOOKSDK' => 'Facebook PHP SDK',
236
+    'LBL_SOURCE_JQUERY' => 'jQuery - jQuery is a fast, small, and feature-rich JavaScript library.',
237
+    'LBL_SOURCE_JQUERY_UI' => 'jQuery UI - jQuery UI is a curated set of user interface interactions, effects, widgets, and themes built on top of the jQuery JavaScript Library.',
238
+    'LBL_SOURCE_OVERLIB' => 'OverlibMWS - The overlibmws library uses javascript for DHTML popups that serve as informational and navigational aids for websites.',
239 239
 
240
-  'LBL_DASHLET_TITLE' => 'My Sites',
241
-  'LBL_DASHLET_OPT_TITLE' => 'Title',
242
-  'LBL_DASHLET_INCORRECT_URL' => 'Incorrect website location is specified',
243
-  'LBL_DASHLET_OPT_URL' => 'Website Location',
244
-  'LBL_DASHLET_OPT_HEIGHT' => 'Dashlet Height (in pixels)',
245
-  'LBL_DASHLET_SUGAR_NEWS' => 'SuiteCRM News',
246
-  'LBL_DASHLET_DISCOVER_SUGAR_PRO' => 'Discover SuiteCRM',
247
-	'LBL_POWERED_BY_SUGAR' => 'Powered By SugarCRM' /*for 508 compliance fix*/,
248
-	'LBL_MORE_DETAIL' => 'More Detail' /*for 508 compliance fix*/,
249
-	'LBL_BASIC_SEARCH' => 'Basic Search' /*for 508 compliance fix*/,
250
-	'LBL_ADVANCED_SEARCH' => 'Advanced Search' /*for 508 compliance fix*/,
240
+    'LBL_DASHLET_TITLE' => 'My Sites',
241
+    'LBL_DASHLET_OPT_TITLE' => 'Title',
242
+    'LBL_DASHLET_INCORRECT_URL' => 'Incorrect website location is specified',
243
+    'LBL_DASHLET_OPT_URL' => 'Website Location',
244
+    'LBL_DASHLET_OPT_HEIGHT' => 'Dashlet Height (in pixels)',
245
+    'LBL_DASHLET_SUGAR_NEWS' => 'SuiteCRM News',
246
+    'LBL_DASHLET_DISCOVER_SUGAR_PRO' => 'Discover SuiteCRM',
247
+    'LBL_POWERED_BY_SUGAR' => 'Powered By SugarCRM' /*for 508 compliance fix*/,
248
+    'LBL_MORE_DETAIL' => 'More Detail' /*for 508 compliance fix*/,
249
+    'LBL_BASIC_SEARCH' => 'Basic Search' /*for 508 compliance fix*/,
250
+    'LBL_ADVANCED_SEARCH' => 'Advanced Search' /*for 508 compliance fix*/,
251 251
     'LBL_TOUR_HOME' => 'Home Icon',
252 252
     'LBL_TOUR_HOME_DESCRIPTION' => 'Quickly get back to your Home Page dashboard in one click.',
253 253
     'LBL_TOUR_MODULES' => 'Modules',
Please login to merge, or discard this patch.
modules/Home/UnifiedSearchAdvanced.php 1 patch
Indentation   +295 added lines, -295 removed lines patch added patch discarded remove patch
@@ -69,93 +69,93 @@  discard block
 block discarded – undo
69 69
         $this->cache_display = sugar_cached('modules/unified_search_modules_display.php');
70 70
     }
71 71
 
72
-	function getDropDownDiv($tpl = 'modules/Home/UnifiedSearchAdvanced.tpl') {
73
-		global $app_list_strings, $app_strings;
72
+    function getDropDownDiv($tpl = 'modules/Home/UnifiedSearchAdvanced.tpl') {
73
+        global $app_list_strings, $app_strings;
74 74
 
75
-		if(!file_exists($this->cache_search))
76
-		{
77
-			$this->buildCache();
78
-		}
75
+        if(!file_exists($this->cache_search))
76
+        {
77
+            $this->buildCache();
78
+        }
79 79
 
80
-		$unified_search_modules_display = $this->getUnifiedSearchModulesDisplay();
80
+        $unified_search_modules_display = $this->getUnifiedSearchModulesDisplay();
81 81
 
82
-		global $mod_strings, $modListHeader, $app_list_strings, $current_user, $app_strings, $beanList;
83
-		$users_modules = $current_user->getPreference('globalSearch', 'search');
82
+        global $mod_strings, $modListHeader, $app_list_strings, $current_user, $app_strings, $beanList;
83
+        $users_modules = $current_user->getPreference('globalSearch', 'search');
84 84
 
85
-		// preferences are empty, select all
86
-		if(empty($users_modules)) {
87
-			$users_modules = array();
88
-			foreach($unified_search_modules_display as $module=>$data) {
89
-				if (!empty($data['visible']) ) {
85
+        // preferences are empty, select all
86
+        if(empty($users_modules)) {
87
+            $users_modules = array();
88
+            foreach($unified_search_modules_display as $module=>$data) {
89
+                if (!empty($data['visible']) ) {
90 90
                     $users_modules[$module] = $beanList[$module];
91 91
                 }
92
-			}
93
-			$current_user->setPreference('globalSearch', $users_modules, 0, 'search');
94
-		}
92
+            }
93
+            $current_user->setPreference('globalSearch', $users_modules, 0, 'search');
94
+        }
95 95
 
96
-		$sugar_smarty = new Sugar_Smarty();
96
+        $sugar_smarty = new Sugar_Smarty();
97 97
 
98
-		$modules_to_search = array();
98
+        $modules_to_search = array();
99 99
 
100
-		foreach($users_modules as $key=>$module)
101
-		{
100
+        foreach($users_modules as $key=>$module)
101
+        {
102 102
             if(ACLController::checkAccess($key, 'list', true))
103 103
             {
104 104
                 $modules_to_search[$key]['checked'] = true;
105 105
             }
106
-		}
107
-
108
-		if(!empty($this->query_string))
109
-		{
110
-			$sugar_smarty->assign('query_string', securexss($this->query_string));
111
-		} else {
112
-			$sugar_smarty->assign('query_string', '');
113
-		}
114
-
115
-		$sugar_smarty->assign('MOD', return_module_language($GLOBALS['current_language'], 'Administration'));
116
-		$sugar_smarty->assign('APP', $app_strings);
117
-		$sugar_smarty->assign('USE_SEARCH_GIF', 0);
118
-		$sugar_smarty->assign('LBL_SEARCH_BUTTON_LABEL', $app_strings['LBL_SEARCH_BUTTON_LABEL']);
119
-
120
-		$json_enabled = array();
121
-		$json_disabled = array();
122
-
123
-		//Now add the rest of the modules that are searchable via Global Search settings
124
-		foreach($unified_search_modules_display as $module=>$data)
125
-		{
126
-			if(!isset($modules_to_search[$module]) && $data['visible'] && ACLController::checkAccess($module, 'list', true))
127
-			{
128
-			   $modules_to_search[$module]['checked'] = false;
129
-			} else if (isset($modules_to_search[$module]) && !$data['visible']) {
130
-			   unset($modules_to_search[$module]);
131
-			}
132
-		}
133
-
134
-		//Create the two lists (doing it this way preserves the user's ordering choice for enabled modules)
135
-		foreach($modules_to_search as $module=>$data)
136
-		{
137
-			$label = isset($app_list_strings['moduleList'][$module]) ? $app_list_strings['moduleList'][$module] : $module;
138
-			if(!empty($data['checked']))
139
-			{
140
-				$json_enabled[] = array("module" => $module, 'label' => $label);
141
-			} else {
142
-				$json_disabled[] = array("module" => $module, 'label' => $label);
143
-			}
144
-		}
145
-
146
-		$sugar_smarty->assign('enabled_modules', json_encode($json_enabled));
147
-		$sugar_smarty->assign('disabled_modules', json_encode($json_disabled));
148
-
149
-		$showDiv = $current_user->getPreference('showGSDiv', 'search');
150
-		if(!isset($showDiv))
151
-		{
152
-		   $showDiv = 'no';
153
-		}
154
-
155
-		$sugar_smarty->assign('SHOWGSDIV', $showDiv);
156
-		$sugar_smarty->debugging = true;
157
-		return $sugar_smarty->fetch($tpl);
158
-	}
106
+        }
107
+
108
+        if(!empty($this->query_string))
109
+        {
110
+            $sugar_smarty->assign('query_string', securexss($this->query_string));
111
+        } else {
112
+            $sugar_smarty->assign('query_string', '');
113
+        }
114
+
115
+        $sugar_smarty->assign('MOD', return_module_language($GLOBALS['current_language'], 'Administration'));
116
+        $sugar_smarty->assign('APP', $app_strings);
117
+        $sugar_smarty->assign('USE_SEARCH_GIF', 0);
118
+        $sugar_smarty->assign('LBL_SEARCH_BUTTON_LABEL', $app_strings['LBL_SEARCH_BUTTON_LABEL']);
119
+
120
+        $json_enabled = array();
121
+        $json_disabled = array();
122
+
123
+        //Now add the rest of the modules that are searchable via Global Search settings
124
+        foreach($unified_search_modules_display as $module=>$data)
125
+        {
126
+            if(!isset($modules_to_search[$module]) && $data['visible'] && ACLController::checkAccess($module, 'list', true))
127
+            {
128
+                $modules_to_search[$module]['checked'] = false;
129
+            } else if (isset($modules_to_search[$module]) && !$data['visible']) {
130
+                unset($modules_to_search[$module]);
131
+            }
132
+        }
133
+
134
+        //Create the two lists (doing it this way preserves the user's ordering choice for enabled modules)
135
+        foreach($modules_to_search as $module=>$data)
136
+        {
137
+            $label = isset($app_list_strings['moduleList'][$module]) ? $app_list_strings['moduleList'][$module] : $module;
138
+            if(!empty($data['checked']))
139
+            {
140
+                $json_enabled[] = array("module" => $module, 'label' => $label);
141
+            } else {
142
+                $json_disabled[] = array("module" => $module, 'label' => $label);
143
+            }
144
+        }
145
+
146
+        $sugar_smarty->assign('enabled_modules', json_encode($json_enabled));
147
+        $sugar_smarty->assign('disabled_modules', json_encode($json_disabled));
148
+
149
+        $showDiv = $current_user->getPreference('showGSDiv', 'search');
150
+        if(!isset($showDiv))
151
+        {
152
+            $showDiv = 'no';
153
+        }
154
+
155
+        $sugar_smarty->assign('SHOWGSDIV', $showDiv);
156
+        $sugar_smarty->debugging = true;
157
+        return $sugar_smarty->fetch($tpl);
158
+    }
159 159
 
160 160
 
161 161
     /**
@@ -168,70 +168,70 @@  discard block
 block discarded – undo
168 168
      *
169 169
      *
170 170
      */
171
-	function search() {
171
+    function search() {
172 172
 
173 173
         $unified_search_modules = $this->getUnifiedSearchModules();
174
-		$unified_search_modules_display = $this->getUnifiedSearchModulesDisplay();
174
+        $unified_search_modules_display = $this->getUnifiedSearchModulesDisplay();
175 175
 
176 176
 
177
-		require_once 'include/ListView/ListViewSmarty.php';
177
+        require_once 'include/ListView/ListViewSmarty.php';
178 178
 
179
-		global $modListHeader, $beanList, $beanFiles, $current_language, $app_strings, $current_user, $mod_strings;
180
-		$home_mod_strings = return_module_language($current_language, 'Home');
179
+        global $modListHeader, $beanList, $beanFiles, $current_language, $app_strings, $current_user, $mod_strings;
180
+        $home_mod_strings = return_module_language($current_language, 'Home');
181 181
 
182
-		$this->query_string = $GLOBALS['db']->quote(securexss(from_html(clean_string($this->query_string, 'UNIFIED_SEARCH'))));
182
+        $this->query_string = $GLOBALS['db']->quote(securexss(from_html(clean_string($this->query_string, 'UNIFIED_SEARCH'))));
183 183
 
184
-		if(!empty($_REQUEST['advanced']) && $_REQUEST['advanced'] != 'false') {
185
-			$modules_to_search = array();
186
-			if(!empty($_REQUEST['search_modules']))
187
-			{
188
-			    foreach(explode (',', $_REQUEST['search_modules'] ) as $key)
189
-	            {
184
+        if(!empty($_REQUEST['advanced']) && $_REQUEST['advanced'] != 'false') {
185
+            $modules_to_search = array();
186
+            if(!empty($_REQUEST['search_modules']))
187
+            {
188
+                foreach(explode (',', $_REQUEST['search_modules'] ) as $key)
189
+                {
190 190
                     if (isset($unified_search_modules_display[$key]) && !empty($unified_search_modules_display[$key]['visible']))
191 191
                     {
192 192
                         $modules_to_search[$key] = $beanList[$key];
193 193
                     }
194
-	            }
195
-			}
196
-
197
-			$current_user->setPreference('showGSDiv', isset($_REQUEST['showGSDiv']) ? $_REQUEST['showGSDiv'] : 'no', 0, 'search');
198
-			$current_user->setPreference('globalSearch', $modules_to_search, 0, 'search'); // save selections to user preference
199
-		} else {
200
-			$users_modules = $current_user->getPreference('globalSearch', 'search');
201
-			$modules_to_search = array();
202
-
203
-			if(!empty($users_modules)) {
204
-				// use user's previous selections
205
-			    foreach ( $users_modules as $key => $value ) {
206
-			    	if (isset($unified_search_modules_display[$key]) && !empty($unified_search_modules_display[$key]['visible'])) {
207
-		            	$modules_to_search[$key] = $beanList[$key];
208
-		        	}
209
-			    }
210
-			} else {
211
-				foreach($unified_search_modules_display as $module=>$data) {
212
-				    if (!empty($data['visible']) ) {
213
-				        $modules_to_search[$module] = $beanList[$module];
214
-				    }
215
-				}
216
-			}
217
-			$current_user->setPreference('globalSearch', $modules_to_search, 'search');
218
-		}
219
-
220
-
221
-		$templateFile = 'modules/Home/UnifiedSearchAdvancedForm.tpl';
222
-		if(file_exists('custom/' . $templateFile))
223
-		{
224
-		   $templateFile = 'custom/'.$templateFile;
225
-		}
226
-
227
-		echo $this->getDropDownDiv($templateFile);
228
-
229
-		$module_results = array();
230
-		$module_counts = array();
231
-		$has_results = false;
232
-
233
-		if(!empty($this->query_string)) {
234
-			foreach($modules_to_search as $moduleName => $beanName) {
194
+                }
195
+            }
196
+
197
+            $current_user->setPreference('showGSDiv', isset($_REQUEST['showGSDiv']) ? $_REQUEST['showGSDiv'] : 'no', 0, 'search');
198
+            $current_user->setPreference('globalSearch', $modules_to_search, 0, 'search'); // save selections to user preference
199
+        } else {
200
+            $users_modules = $current_user->getPreference('globalSearch', 'search');
201
+            $modules_to_search = array();
202
+
203
+            if(!empty($users_modules)) {
204
+                // use user's previous selections
205
+                foreach ( $users_modules as $key => $value ) {
206
+                    if (isset($unified_search_modules_display[$key]) && !empty($unified_search_modules_display[$key]['visible'])) {
207
+                        $modules_to_search[$key] = $beanList[$key];
208
+                    }
209
+                }
210
+            } else {
211
+                foreach($unified_search_modules_display as $module=>$data) {
212
+                    if (!empty($data['visible']) ) {
213
+                        $modules_to_search[$module] = $beanList[$module];
214
+                    }
215
+                }
216
+            }
217
+            $current_user->setPreference('globalSearch', $modules_to_search, 'search');
218
+        }
219
+
220
+
221
+        $templateFile = 'modules/Home/UnifiedSearchAdvancedForm.tpl';
222
+        if(file_exists('custom/' . $templateFile))
223
+        {
224
+            $templateFile = 'custom/'.$templateFile;
225
+        }
226
+
227
+        echo $this->getDropDownDiv($templateFile);
228
+
229
+        $module_results = array();
230
+        $module_counts = array();
231
+        $has_results = false;
232
+
233
+        if(!empty($this->query_string)) {
234
+            foreach($modules_to_search as $moduleName => $beanName) {
235 235
                 require_once $beanFiles[$beanName] ;
236 236
                 $seed = new $beanName();
237 237
 
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
 
242 242
                 //retrieve the original list view defs and store for processing in case of custom layout changes
243 243
                 require('modules/'.$seed->module_dir.'/metadata/listviewdefs.php');
244
-				$orig_listViewDefs = $listViewDefs;
244
+                $orig_listViewDefs = $listViewDefs;
245 245
 
246 246
                 if(file_exists('custom/modules/'.$seed->module_dir.'/metadata/listviewdefs.php'))
247 247
                 {
@@ -253,20 +253,20 @@  discard block
 block discarded – undo
253 253
                     continue;
254 254
                 }
255 255
 
256
-			    $unifiedSearchFields = array () ;
256
+                $unifiedSearchFields = array () ;
257 257
                 $innerJoins = array();
258 258
                 foreach ( $unified_search_modules[ $moduleName ]['fields'] as $field=>$def )
259 259
                 {
260
-                	$listViewCheckField = strtoupper($field);
261
-                	//check to see if the field is in listview defs
262
-					if ( empty($listViewDefs[$seed->module_dir][$listViewCheckField]['default']) ) {
263
-						//check to see if field is in original list view defs (in case we are using custom layout defs)
264
-						if (!empty($orig_listViewDefs[$seed->module_dir][$listViewCheckField]['default']) ) {
265
-							//if we are here then the layout has been customized, but the field is still needed for query creation
266
-							$listViewDefs[$seed->module_dir][$listViewCheckField] = $orig_listViewDefs[$seed->module_dir][$listViewCheckField];
267
-						}
260
+                    $listViewCheckField = strtoupper($field);
261
+                    //check to see if the field is in listview defs
262
+                    if ( empty($listViewDefs[$seed->module_dir][$listViewCheckField]['default']) ) {
263
+                        //check to see if field is in original list view defs (in case we are using custom layout defs)
264
+                        if (!empty($orig_listViewDefs[$seed->module_dir][$listViewCheckField]['default']) ) {
265
+                            //if we are here then the layout has been customized, but the field is still needed for query creation
266
+                            $listViewDefs[$seed->module_dir][$listViewCheckField] = $orig_listViewDefs[$seed->module_dir][$listViewCheckField];
267
+                        }
268 268
 
269
-					}
269
+                    }
270 270
 
271 271
                     //bug: 34125 we might want to try to use the LEFT JOIN operator instead of the INNER JOIN in the case we are
272 272
                     //joining against a field that has not been populated.
@@ -300,7 +300,7 @@  discard block
 block discarded – undo
300 300
                 require_once $beanFiles[$beanName] ;
301 301
                 $seed = new $beanName();
302 302
                 
303
-				require_once $this->searchFormPath;
303
+                require_once $this->searchFormPath;
304 304
                 $searchForm = new $this->searchFormClass ( $seed, $moduleName ) ;
305 305
 
306 306
                 $searchForm->setup (array ( $moduleName => array() ) , $unifiedSearchFields , '' , 'saved_views' /* hack to avoid setup doing further unwanted processing */ ) ;
@@ -309,11 +309,11 @@  discard block
 block discarded – undo
309 309
                 $params = array('custom_select' => "");
310 310
                 foreach($innerJoins as $field=>$def) {
311 311
                     if (isset ($def['db_field'])) {
312
-                      foreach($def['db_field'] as $dbfield)
313
-                          $where_clauses[] = $dbfield . " LIKE '" . $this->query_string . "%'";
314
-                          $params['custom_select'] .= ", $dbfield";
315
-                          $params['distinct'] = true;
316
-                          //$filterFields[$dbfield] = $dbfield;
312
+                        foreach($def['db_field'] as $dbfield)
313
+                            $where_clauses[] = $dbfield . " LIKE '" . $this->query_string . "%'";
314
+                            $params['custom_select'] .= ", $dbfield";
315
+                            $params['distinct'] = true;
316
+                            //$filterFields[$dbfield] = $dbfield;
317 317
                     }
318 318
                 }
319 319
 
@@ -339,9 +339,9 @@  discard block
 block discarded – undo
339 339
 
340 340
                 if(count($displayColumns) > 0)
341 341
                 {
342
-                	$lv->displayColumns = $displayColumns;
342
+                    $lv->displayColumns = $displayColumns;
343 343
                 } else {
344
-                	$lv->displayColumns = $listViewDefs[$seed->module_dir];
344
+                    $lv->displayColumns = $listViewDefs[$seed->module_dir];
345 345
                 }
346 346
 
347 347
                 $lv->export = false;
@@ -366,56 +366,56 @@  discard block
 block discarded – undo
366 366
                     $module_results[$moduleName] .= $lv->display(false, false);
367 367
                 }
368 368
 
369
-			}
370
-		}
369
+            }
370
+        }
371 371
 
372
-		if($has_results) {
373
-			foreach($module_counts as $name=>$value) {
374
-				echo $module_results[$name];
375
-			}
376
-		} else if(empty($_REQUEST['form_only'])) {
377
-			echo $home_mod_strings['LBL_NO_RESULTS'];
378
-			echo $home_mod_strings['LBL_NO_RESULTS_TIPS'];
379
-		}
372
+        if($has_results) {
373
+            foreach($module_counts as $name=>$value) {
374
+                echo $module_results[$name];
375
+            }
376
+        } else if(empty($_REQUEST['form_only'])) {
377
+            echo $home_mod_strings['LBL_NO_RESULTS'];
378
+            echo $home_mod_strings['LBL_NO_RESULTS_TIPS'];
379
+        }
380 380
 
381
-	}
381
+    }
382 382
 
383
-	function buildCache()
384
-	{
383
+    function buildCache()
384
+    {
385 385
 
386
-		global $beanList, $beanFiles, $dictionary;
386
+        global $beanList, $beanFiles, $dictionary;
387 387
 
388
-		$supported_modules = array();
388
+        $supported_modules = array();
389 389
 
390
-		foreach($beanList as $moduleName=>$beanName)
391
-		{
392
-			if (!isset($beanFiles[$beanName]))
393
-				continue;
390
+        foreach($beanList as $moduleName=>$beanName)
391
+        {
392
+            if (!isset($beanFiles[$beanName]))
393
+                continue;
394 394
 
395
-			$beanName = BeanFactory::getObjectName($moduleName);
396
-			$manager = new VardefManager ( );
397
-			$manager->loadVardef( $moduleName , $beanName ) ;
395
+            $beanName = BeanFactory::getObjectName($moduleName);
396
+            $manager = new VardefManager ( );
397
+            $manager->loadVardef( $moduleName , $beanName ) ;
398 398
 
399
-			// obtain the field definitions used by generateSearchWhere (duplicate code in view.list.php)
400
-			if(file_exists('custom/modules/'.$moduleName.'/metadata/metafiles.php')){
399
+            // obtain the field definitions used by generateSearchWhere (duplicate code in view.list.php)
400
+            if(file_exists('custom/modules/'.$moduleName.'/metadata/metafiles.php')){
401 401
                 require('custom/modules/'.$moduleName.'/metadata/metafiles.php');
402 402
             }elseif(file_exists('modules/'.$moduleName.'/metadata/metafiles.php')){
403 403
                 require('modules/'.$moduleName.'/metadata/metafiles.php');
404 404
             }
405 405
 
406 406
 
407
-			if(!empty($metafiles[$moduleName]['searchfields']))
408
-			{
409
-				require $metafiles[$moduleName]['searchfields'] ;
410
-			} else if(file_exists("modules/{$moduleName}/metadata/SearchFields.php")) {
411
-				require "modules/{$moduleName}/metadata/SearchFields.php" ;
412
-			}
407
+            if(!empty($metafiles[$moduleName]['searchfields']))
408
+            {
409
+                require $metafiles[$moduleName]['searchfields'] ;
410
+            } else if(file_exists("modules/{$moduleName}/metadata/SearchFields.php")) {
411
+                require "modules/{$moduleName}/metadata/SearchFields.php" ;
412
+            }
413 413
 
414
-			//Load custom SearchFields.php if it exists
415
-			if(file_exists("custom/modules/{$moduleName}/metadata/SearchFields.php"))
416
-			{
417
-				require "custom/modules/{$moduleName}/metadata/SearchFields.php" ;
418
-			}				
414
+            //Load custom SearchFields.php if it exists
415
+            if(file_exists("custom/modules/{$moduleName}/metadata/SearchFields.php"))
416
+            {
417
+                require "custom/modules/{$moduleName}/metadata/SearchFields.php" ;
418
+            }				
419 419
 
420 420
             //If there are $searchFields are empty, just continue, there are no search fields defined for the module
421 421
             if(empty($searchFields[$moduleName]))
@@ -423,34 +423,34 @@  discard block
 block discarded – undo
423 423
                 continue;
424 424
             }
425 425
 
426
-			$isCustomModule = preg_match('/^([a-z0-9]{1,5})_([a-z0-9_]+)$/i' , $moduleName);
427
-
428
-			//If the bean supports unified search or if it's a custom module bean and unified search is not defined
429
-			if(!empty($dictionary[$beanName]['unified_search']) || $isCustomModule)
430
-			{
431
-				$fields = array();
432
-				foreach ( $dictionary [ $beanName ][ 'fields' ] as $field => $def )
433
-				{
434
-					// We cannot enable or disable unified_search for email in the vardefs as we don't actually have a vardef entry for 'email'
435
-					// the searchFields entry for 'email' doesn't correspond to any vardef entry. Instead it contains SQL to directly perform the search.
436
-					// So as a proxy we allow any field in the vardefs that has a name starting with 'email...' to be tagged with the 'unified_search' parameter
437
-
438
-					if (strpos($field,'email') !== false)
439
-					{
440
-						$field = 'email' ;
441
-					}
442
-
443
-					//bug: 38139 - allow phone to be searched through Global Search
444
-					if (strpos($field,'phone') !== false)
445
-					{
446
-						$field = 'phone' ;
447
-					}
448
-
449
-					if ( !empty($def['unified_search']) && isset ( $searchFields [ $moduleName ] [ $field ]  ))
450
-					{
451
-						$fields [ $field ] = $searchFields [ $moduleName ] [ $field ] ;
452
-					}
453
-				}
426
+            $isCustomModule = preg_match('/^([a-z0-9]{1,5})_([a-z0-9_]+)$/i' , $moduleName);
427
+
428
+            //If the bean supports unified search or if it's a custom module bean and unified search is not defined
429
+            if(!empty($dictionary[$beanName]['unified_search']) || $isCustomModule)
430
+            {
431
+                $fields = array();
432
+                foreach ( $dictionary [ $beanName ][ 'fields' ] as $field => $def )
433
+                {
434
+                    // We cannot enable or disable unified_search for email in the vardefs as we don't actually have a vardef entry for 'email'
435
+                    // the searchFields entry for 'email' doesn't correspond to any vardef entry. Instead it contains SQL to directly perform the search.
436
+                    // So as a proxy we allow any field in the vardefs that has a name starting with 'email...' to be tagged with the 'unified_search' parameter
437
+
438
+                    if (strpos($field,'email') !== false)
439
+                    {
440
+                        $field = 'email' ;
441
+                    }
442
+
443
+                    //bug: 38139 - allow phone to be searched through Global Search
444
+                    if (strpos($field,'phone') !== false)
445
+                    {
446
+                        $field = 'phone' ;
447
+                    }
448
+
449
+                    if ( !empty($def['unified_search']) && isset ( $searchFields [ $moduleName ] [ $field ]  ))
450
+                    {
451
+                        $fields [ $field ] = $searchFields [ $moduleName ] [ $field ] ;
452
+                    }
453
+                }
454 454
 
455 455
                 foreach ($searchFields[$moduleName] as $field => $def)
456 456
                 {
@@ -463,23 +463,23 @@  discard block
 block discarded – undo
463 463
                     }
464 464
                 }
465 465
 
466
-				if(count($fields) > 0) {
467
-					$supported_modules [$moduleName] ['fields'] = $fields;
468
-					if (isset($dictionary[$beanName]['unified_search_default_enabled']) && $dictionary[$beanName]['unified_search_default_enabled'] === TRUE)
469
-					{
466
+                if(count($fields) > 0) {
467
+                    $supported_modules [$moduleName] ['fields'] = $fields;
468
+                    if (isset($dictionary[$beanName]['unified_search_default_enabled']) && $dictionary[$beanName]['unified_search_default_enabled'] === TRUE)
469
+                    {
470 470
                         $supported_modules [$moduleName]['default'] = true;
471 471
                     } else {
472 472
                         $supported_modules [$moduleName]['default'] = false;
473 473
                     }
474
-				}
474
+                }
475 475
 
476
-			}
476
+            }
477 477
 
478
-		}
478
+        }
479 479
 
480
-		ksort($supported_modules);
481
-		write_array_to_file('unified_search_modules', $supported_modules, $this->cache_search);
482
-	}
480
+        ksort($supported_modules);
481
+        write_array_to_file('unified_search_modules', $supported_modules, $this->cache_search);
482
+    }
483 483
 
484 484
     /**
485 485
      * Retrieve the enabled and disabled modules used for global search.
@@ -523,9 +523,9 @@  discard block
 block discarded – undo
523 523
                 $label = isset($app_list_strings['moduleList'][$module]) ? $app_list_strings['moduleList'][$module] : $module;
524 524
                 if($data['default'])
525 525
                 {
526
-                  $json_enabled[] = array("module" => $module, 'label' => $label);
526
+                    $json_enabled[] = array("module" => $module, 'label' => $label);
527 527
                 } else {
528
-                  $json_disabled[] = array("module" => $module, 'label' => $label);
528
+                    $json_disabled[] = array("module" => $module, 'label' => $label);
529 529
                 }
530 530
             }
531 531
         }
@@ -534,47 +534,47 @@  discard block
 block discarded – undo
534 534
     }
535 535
 
536 536
 
537
-	/**
538
-	 * saveGlobalSearchSettings
539
-	 * This method handles the administrator's request to save the searchable modules selected and stores
540
-	 * the results in the unified_search_modules_display.php file
541
-	 *
542
-	 */
543
-	function saveGlobalSearchSettings()
544
-	{
545
-		if(isset($_REQUEST['enabled_modules']))
546
-		{
537
+    /**
538
+     * saveGlobalSearchSettings
539
+     * This method handles the administrator's request to save the searchable modules selected and stores
540
+     * the results in the unified_search_modules_display.php file
541
+     *
542
+     */
543
+    function saveGlobalSearchSettings()
544
+    {
545
+        if(isset($_REQUEST['enabled_modules']))
546
+        {
547 547
             $unified_search_modules_display = $this->getUnifiedSearchModulesDisplay();
548 548
 
549
-			$new_unified_search_modules_display = array();
549
+            $new_unified_search_modules_display = array();
550 550
 
551 551
             foreach(explode (',', $_REQUEST['enabled_modules'] ) as $module)
552 552
             {
553 553
                 $new_unified_search_modules_display[$module]['visible'] = true;
554 554
             }
555 555
 
556
-			foreach($unified_search_modules_display as $module=>$data)
557
-			{
558
-				if(!isset($new_unified_search_modules_display[$module]))
559
-				{
560
-				   $new_unified_search_modules_display[$module]['visible'] = false;
561
-				}
562
-			}
563
-
564
-			$this->writeUnifiedSearchModulesDisplayFile($new_unified_search_modules_display);
565
-		}
566
-	}
567
-
568
-
569
-	public static function unlinkUnifiedSearchModulesFile() {
570
-		//clear the unified_search_module.php file
571
-		$cache_search = sugar_cached('modules/unified_search_modules.php');
572
-    	if(file_exists($cache_search))
573
-    	{
574
-    		$GLOBALS['log']->info("unlink {$cache_search}");
575
-    		unlink($cache_search);
576
-    	}
577
-	}
556
+            foreach($unified_search_modules_display as $module=>$data)
557
+            {
558
+                if(!isset($new_unified_search_modules_display[$module]))
559
+                {
560
+                    $new_unified_search_modules_display[$module]['visible'] = false;
561
+                }
562
+            }
563
+
564
+            $this->writeUnifiedSearchModulesDisplayFile($new_unified_search_modules_display);
565
+        }
566
+    }
567
+
568
+
569
+    public static function unlinkUnifiedSearchModulesFile() {
570
+        //clear the unified_search_module.php file
571
+        $cache_search = sugar_cached('modules/unified_search_modules.php');
572
+        if(file_exists($cache_search))
573
+        {
574
+            $GLOBALS['log']->info("unlink {$cache_search}");
575
+            unlink($cache_search);
576
+        }
577
+    }
578 578
     
579 579
 
580 580
     /**
@@ -587,21 +587,21 @@  discard block
 block discarded – undo
587 587
      */
588 588
     public function getUnifiedSearchModules()
589 589
     {
590
-		//Make directory if it doesn't exist
590
+        //Make directory if it doesn't exist
591 591
         $cachedir = sugar_cached('modules');
592
-		if(!file_exists($cachedir))
593
-		{
594
-		   mkdir_recursive($cachedir);
595
-		}
592
+        if(!file_exists($cachedir))
593
+        {
594
+            mkdir_recursive($cachedir);
595
+        }
596 596
 
597
-		//Load unified_search_modules.php file
597
+        //Load unified_search_modules.php file
598 598
         $cachedFile = sugar_cached('modules/unified_search_modules.php');
599
-		if(!file_exists($cachedFile))
600
-		{
601
-			$this->buildCache();
602
-		}
599
+        if(!file_exists($cachedFile))
600
+        {
601
+            $this->buildCache();
602
+        }
603 603
 
604
-		include $cachedFile;
604
+        include $cachedFile;
605 605
         return $unified_search_modules;
606 606
     }
607 607
 
@@ -616,8 +616,8 @@  discard block
 block discarded – undo
616 616
      */
617 617
     public function getUnifiedSearchModulesDisplay()
618 618
     {
619
-		if(!file_exists('custom/modules/unified_search_modules_display.php'))
620
-		{
619
+        if(!file_exists('custom/modules/unified_search_modules_display.php'))
620
+        {
621 621
             $unified_search_modules = $this->getUnifiedSearchModules();
622 622
 
623 623
             $unified_search_modules_display = array();
@@ -631,13 +631,13 @@  discard block
 block discarded – undo
631 631
             }
632 632
 
633 633
             $this->writeUnifiedSearchModulesDisplayFile($unified_search_modules_display);
634
-		}
634
+        }
635 635
 
636
-		include('custom/modules/unified_search_modules_display.php');
636
+        include('custom/modules/unified_search_modules_display.php');
637 637
         return $unified_search_modules_display;
638 638
     }
639 639
 
640
-	/*
640
+    /*
641 641
 	 * writeUnifiedSearchModulesDisplayFile
642 642
 	 * Private method to handle writing the unified_search_modules_display value to file
643 643
 	 *
@@ -645,35 +645,35 @@  discard block
 block discarded – undo
645 645
 	 * @return boolean value indication whether or not file was successfully written
646 646
 	 * @throws Exception Thrown if the file write operation fails
647 647
 	 */
648
-	private function writeUnifiedSearchModulesDisplayFile($unified_search_modules_display)
649
-	{
650
-		if(is_null($unified_search_modules_display) || empty($unified_search_modules_display))
651
-		{
652
-		   return false;
653
-		}
654
-
655
-	    if(!write_array_to_file("unified_search_modules_display", $unified_search_modules_display, 'custom/modules/unified_search_modules_display.php'))
656
-	    {
657
-	    	//Log error message and throw Exception
658
-	    	global $app_strings;
659
-	    	$msg = string_format($app_strings['ERR_FILE_WRITE'], array('custom/modules/unified_search_modules_display.php'));
660
-	    	$GLOBALS['log']->error($msg);
661
-	    	throw new Exception($msg);
662
-	    }
663
-
664
-	    return true;
665
-	}
648
+    private function writeUnifiedSearchModulesDisplayFile($unified_search_modules_display)
649
+    {
650
+        if(is_null($unified_search_modules_display) || empty($unified_search_modules_display))
651
+        {
652
+            return false;
653
+        }
654
+
655
+        if(!write_array_to_file("unified_search_modules_display", $unified_search_modules_display, 'custom/modules/unified_search_modules_display.php'))
656
+        {
657
+            //Log error message and throw Exception
658
+            global $app_strings;
659
+            $msg = string_format($app_strings['ERR_FILE_WRITE'], array('custom/modules/unified_search_modules_display.php'));
660
+            $GLOBALS['log']->error($msg);
661
+            throw new Exception($msg);
662
+        }
663
+
664
+        return true;
665
+    }
666 666
 }
667 667
 
668 668
 
669 669
 function unified_search_modules_cmp($a, $b) {
670
-	if(!isset($a['translated']) || !isset($b['translated']))
671
-	{
672
-	   return 0;
673
-	}
670
+    if(!isset($a['translated']) || !isset($b['translated']))
671
+    {
672
+        return 0;
673
+    }
674 674
 
675
-	$name1 = strtolower($a['translated']);
676
-	$name2 = strtolower($b['translated']);
675
+    $name1 = strtolower($a['translated']);
676
+    $name2 = strtolower($b['translated']);
677 677
 
678
-	return $name1 < $name2 ? -1 : 1;
678
+    return $name1 < $name2 ? -1 : 1;
679 679
 }
Please login to merge, or discard this patch.
modules/Project/ProjectQuickCreate.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -66,24 +66,24 @@
 block discarded – undo
66 66
         $this->javascript->setSugarBean($focus);
67 67
         $this->javascript->addAllFields('');
68 68
 
69
-		//$this->ss->assign("STATUS_OPTIONS", get_select_options_with_id($app_list_strings['project_status_dom'], $focus->status));
69
+        //$this->ss->assign("STATUS_OPTIONS", get_select_options_with_id($app_list_strings['project_status_dom'], $focus->status));
70 70
         $this->ss->assign('additionalScripts', $this->javascript->getScript(false));
71 71
         $this->ss->assign('CALENDAR_DATEFORMAT', $timedate->get_cal_date_format());
72 72
         
73 73
         
74 74
         $json = getJSONobj();
75 75
         
76
-		$popup_request_data = array(
77
-			'call_back_function' => 'set_return',
78
-			'form_name' => 'projectsQuickCreate',
79
-			'field_to_name_array' => array(
80
-				'id' => 'account_id',
81
-				'name' => 'account_name',
82
-			),
83
-		);
76
+        $popup_request_data = array(
77
+            'call_back_function' => 'set_return',
78
+            'form_name' => 'projectsQuickCreate',
79
+            'field_to_name_array' => array(
80
+                'id' => 'account_id',
81
+                'name' => 'account_name',
82
+            ),
83
+        );
84 84
 	
85
-		$encoded_popup_request_data = $json->encode($popup_request_data);
86
-		$this->ss->assign('encoded_popup_request_data', $encoded_popup_request_data);        
85
+        $encoded_popup_request_data = $json->encode($popup_request_data);
86
+        $this->ss->assign('encoded_popup_request_data', $encoded_popup_request_data);        
87 87
 
88 88
         
89 89
     }   
Please login to merge, or discard this patch.
modules/Project/metadata/additionalDetails.php 1 patch
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -42,25 +42,25 @@
 block discarded – undo
42 42
 
43 43
 
44 44
 function additionalDetailsProject($fields) {
45
-	static $mod_strings;
46
-	if(empty($mod_strings)) {
47
-		global $current_language;
48
-		$mod_strings = return_module_language($current_language, 'Project');
49
-	}
45
+    static $mod_strings;
46
+    if(empty($mod_strings)) {
47
+        global $current_language;
48
+        $mod_strings = return_module_language($current_language, 'Project');
49
+    }
50 50
 		
51
-	$overlib_string = '';
51
+    $overlib_string = '';
52 52
 	
53
-	if(!empty($fields['DESCRIPTION'])) {
54
-		$overlib_string .= '<b>'. $mod_strings['LBL_DESCRIPTION'] . '</b> ' . substr($fields['DESCRIPTION'], 0, 300);
55
-		if(strlen($fields['DESCRIPTION']) > 300) $overlib_string .= '...';
56
-	}	
53
+    if(!empty($fields['DESCRIPTION'])) {
54
+        $overlib_string .= '<b>'. $mod_strings['LBL_DESCRIPTION'] . '</b> ' . substr($fields['DESCRIPTION'], 0, 300);
55
+        if(strlen($fields['DESCRIPTION']) > 300) $overlib_string .= '...';
56
+    }	
57 57
 
58
-	return array('fieldToAddTo' => 'NAME', 
59
-				 'string' => $overlib_string, 
60
-				 'editLink' => "index.php?action=EditView&module=Project&return_module=Project&record={$fields['ID']}", 
61
-				 'viewLink' => "index.php?action=DetailView&module=Project&return_module=Project&record={$fields['ID']}");
58
+    return array('fieldToAddTo' => 'NAME', 
59
+                    'string' => $overlib_string, 
60
+                    'editLink' => "index.php?action=EditView&module=Project&return_module=Project&record={$fields['ID']}", 
61
+                    'viewLink' => "index.php?action=DetailView&module=Project&return_module=Project&record={$fields['ID']}");
62 62
 }
63 63
  
64
- ?>
64
+    ?>
65 65
  
66 66
  
67 67
\ No newline at end of file
Please login to merge, or discard this patch.
modules/Project/metadata/dashletviewdefs.php 1 patch
Indentation   +33 added lines, -33 removed lines patch added patch discarded remove patch
@@ -1,78 +1,78 @@
 block discarded – undo
1 1
 <?php
2 2
 $dashletData['ProjectDashlet']['searchFields'] = array (
3
-  'date_entered' => 
4
-  array (
3
+    'date_entered' => 
4
+    array (
5 5
     'default' => '',
6
-  ),
7
-  'date_modified' => 
8
-  array (
6
+    ),
7
+    'date_modified' => 
8
+    array (
9 9
     'default' => '',
10
-  ),
11
-  'assigned_user_id' => 
12
-  array (
10
+    ),
11
+    'assigned_user_id' => 
12
+    array (
13 13
     'type' => 'assigned_user_name',
14 14
     'default' => 'Administrator',
15
-  ),
15
+    ),
16 16
 );
17 17
 $dashletData['ProjectDashlet']['columns'] = array (
18
-  'name' => 
19
-  array (
18
+    'name' => 
19
+    array (
20 20
     'width' => '30%',
21 21
     'label' => 'LBL_LIST_NAME',
22 22
     'link' => true,
23 23
     'default' => true,
24 24
     'name' => 'name',
25
-  ),
26
-  'status' => 
27
-  array (
25
+    ),
26
+    'status' => 
27
+    array (
28 28
     'type' => 'enum',
29 29
     'default' => true,
30 30
     'label' => 'LBL_STATUS',
31 31
     'width' => '10%',
32 32
     'name' => 'status',
33
-  ),
34
-  'estimated_start_date' => 
35
-  array (
33
+    ),
34
+    'estimated_start_date' => 
35
+    array (
36 36
     'type' => 'date',
37 37
     'label' => 'LBL_DATE_START',
38 38
     'width' => '10%',
39 39
     'default' => true,
40 40
     'name' => 'estimated_start_date',
41
-  ),
42
-  'assigned_user_name' => 
43
-  array (
41
+    ),
42
+    'assigned_user_name' => 
43
+    array (
44 44
     'width' => '8%',
45 45
     'label' => 'LBL_LIST_ASSIGNED_USER',
46 46
     'name' => 'assigned_user_name',
47 47
     'default' => true,
48
-  ),
49
-  'estimated_end_date' => 
50
-  array (
48
+    ),
49
+    'estimated_end_date' => 
50
+    array (
51 51
     'type' => 'date',
52 52
     'label' => 'LBL_DATE_END',
53 53
     'width' => '10%',
54 54
     'default' => true,
55 55
     'name' => 'estimated_end_date',
56
-  ),
57
-  'date_modified' => 
58
-  array (
56
+    ),
57
+    'date_modified' => 
58
+    array (
59 59
     'width' => '15%',
60 60
     'label' => 'LBL_DATE_MODIFIED',
61 61
     'name' => 'date_modified',
62 62
     'default' => false,
63
-  ),
64
-  'date_entered' => 
65
-  array (
63
+    ),
64
+    'date_entered' => 
65
+    array (
66 66
     'width' => '15%',
67 67
     'label' => 'LBL_DATE_ENTERED',
68 68
     'default' => false,
69 69
     'name' => 'date_entered',
70
-  ),
71
-  'created_by' => 
72
-  array (
70
+    ),
71
+    'created_by' => 
72
+    array (
73 73
     'width' => '8%',
74 74
     'label' => 'LBL_CREATED',
75 75
     'name' => 'created_by',
76 76
     'default' => false,
77
-  ),
77
+    ),
78 78
 );
Please login to merge, or discard this patch.
modules/Project/metadata/editviewdefs.php 1 patch
Indentation   +49 added lines, -49 removed lines patch added patch discarded remove patch
@@ -42,102 +42,102 @@
 block discarded – undo
42 42
 
43 43
 $viewdefs ['Project'] =
44 44
 array (
45
-  'EditView' => 
46
-  array (
45
+    'EditView' => 
46
+    array (
47 47
     'templateMeta' => 
48 48
     array (
49
-      'maxColumns' => '2',
50
-      'widths' => 
51
-      array (
49
+        'maxColumns' => '2',
50
+        'widths' => 
51
+        array (
52 52
         0 => 
53 53
         array (
54
-          'label' => '10',
55
-          'field' => '30',
54
+            'label' => '10',
55
+            'field' => '30',
56 56
         ),
57 57
         1 => 
58 58
         array (
59
-          'label' => '10',
60
-          'field' => '30',
59
+            'label' => '10',
60
+            'field' => '30',
61 61
         ),
62
-      ),
63
-      'form' => 
64
-      array (
62
+        ),
63
+        'form' => 
64
+        array (
65 65
         'hidden' => '<input type="hidden" name="is_template" value="{$is_template}" />',
66 66
         'buttons' => 
67 67
         array (
68
-          0 => 'SAVE',
69
-          1 => 
70
-          array (
68
+            0 => 'SAVE',
69
+            1 => 
70
+            array (
71 71
             'customCode' => '{if !empty($smarty.request.return_action) && $smarty.request.return_action == "ProjectTemplatesDetailView" && (!empty($fields.id.value) || !empty($smarty.request.return_id)) }<input title="{$APP.LBL_CANCEL_BUTTON_TITLE}" accessKey="{$APP.LBL_CANCEL_BUTTON_KEY}" class="button" onclick="this.form.action.value=\'ProjectTemplatesDetailView\'; this.form.module.value=\'{$smarty.request.return_module}\'; this.form.record.value=\'{$smarty.request.return_id}\';" type="submit" name="button" value="{$APP.LBL_CANCEL_BUTTON_LABEL}" id="CANCEL{$place}"> {elseif !empty($smarty.request.return_action) && $smarty.request.return_action == "DetailView" && (!empty($fields.id.value) || !empty($smarty.request.return_id)) }<input title="{$APP.LBL_CANCEL_BUTTON_TITLE}" accessKey="{$APP.LBL_CANCEL_BUTTON_KEY}" class="button" onclick="this.form.action.value=\'DetailView\'; this.form.module.value=\'{$smarty.request.return_module}\'; this.form.record.value=\'{$smarty.request.return_id}\';" type="submit" name="button" value="{$APP.LBL_CANCEL_BUTTON_LABEL}" id="CANCEL{$place}"> {elseif $is_template}<input title="{$APP.LBL_CANCEL_BUTTON_TITLE}" accessKey="{$APP.LBL_CANCEL_BUTTON_KEY}" class="button" onclick="this.form.action.value=\'ProjectTemplatesListView\'; this.form.module.value=\'{$smarty.request.return_module}\'; this.form.record.value=\'{$smarty.request.return_id}\';" type="submit" name="button" value="{$APP.LBL_CANCEL_BUTTON_LABEL}" id="CANCEL{$place}"> {else}<input title="{$APP.LBL_CANCEL_BUTTON_TITLE}" accessKey="{$APP.LBL_CANCEL_BUTTON_KEY}" class="button" onclick="this.form.action.value=\'index\'; this.form.module.value=\'{$smarty.request.return_module}\'; this.form.record.value=\'{$smarty.request.return_id}\';" type="submit" name="button" value="{$APP.LBL_CANCEL_BUTTON_LABEL}" id="CANCEL{$place}"> {/if}',
72
-          ),
72
+            ),
73 73
         ),
74
-      ),
75
-      'useTabs' => false,
76
-      'tabDefs' => 
77
-      array (
74
+        ),
75
+        'useTabs' => false,
76
+        'tabDefs' => 
77
+        array (
78 78
         'LBL_PROJECT_INFORMATION' => 
79 79
         array (
80
-          'newTab' => false,
81
-          'panelDefault' => 'expanded',
80
+            'newTab' => false,
81
+            'panelDefault' => 'expanded',
82 82
         ),
83 83
         'LBL_PANEL_ASSIGNMENT' => 
84 84
         array (
85
-          'newTab' => false,
86
-          'panelDefault' => 'expanded',
85
+            'newTab' => false,
86
+            'panelDefault' => 'expanded',
87
+        ),
87 88
         ),
88
-      ),
89 89
     ),
90 90
     'panels' => 
91 91
     array (
92
-      'lbl_project_information' => 
93
-      array (
92
+        'lbl_project_information' => 
93
+        array (
94 94
         0 => 
95 95
         array (
96
-          0 => 'name',
97
-          1 => 'status',
96
+            0 => 'name',
97
+            1 => 'status',
98 98
         ),
99 99
         1 => 
100 100
         array (
101
-          0 => 'estimated_start_date',
102
-          1 => 'priority',
101
+            0 => 'estimated_start_date',
102
+            1 => 'priority',
103 103
         ),
104 104
         2 => 
105 105
         array (
106
-          0 => 'estimated_end_date',
107
-          1 => '',
106
+            0 => 'estimated_end_date',
107
+            1 => '',
108 108
         ),
109 109
         3 => 
110 110
         array (
111
-          0 => 'description',
111
+            0 => 'description',
112
+        ),
112 113
         ),
113
-      ),
114
-      'LBL_PANEL_ASSIGNMENT' => 
115
-      array (
114
+        'LBL_PANEL_ASSIGNMENT' => 
115
+        array (
116 116
         0 => 
117 117
         array (
118
-          0 => 'assigned_user_name',
119
-          1 => 
120
-          array (
118
+            0 => 'assigned_user_name',
119
+            1 => 
120
+            array (
121 121
             'name' => 'am_projecttemplates_project_1_name',
122
-          ),
122
+            ),
123 123
         ),
124 124
         1 => 
125 125
         array (
126
-          0 => 
127
-          array (
126
+            0 => 
127
+            array (
128 128
             'name' => 'date_entered',
129 129
             'comment' => 'Date record created',
130 130
             'label' => 'LBL_DATE_ENTERED',
131
-          ),
132
-          1 => 
133
-          array (
131
+            ),
132
+            1 => 
133
+            array (
134 134
             'name' => 'date_modified',
135 135
             'comment' => 'Date record last modified',
136 136
             'label' => 'LBL_DATE_MODIFIED',
137
-          ),
137
+            ),
138
+        ),
138 139
         ),
139
-      ),
140 140
     ),
141
-  ),
141
+    ),
142 142
 );
143 143
 ?>
Please login to merge, or discard this patch.
modules/Project/metadata/popupdefs.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -40,13 +40,13 @@
 block discarded – undo
40 40
 
41 41
 
42 42
 $popupMeta = array('moduleMain' => 'Project',
43
-						'varName' => 'PROJECT',
44
-						'orderBy' => 'name',
45
-						'whereClauses' => 
46
-							array('name' => 'project.name'),
47
-						'searchInputs' =>
48
-							array('name')
49
-						);
43
+                        'varName' => 'PROJECT',
44
+                        'orderBy' => 'name',
45
+                        'whereClauses' => 
46
+                            array('name' => 'project.name'),
47
+                        'searchInputs' =>
48
+                            array('name')
49
+                        );
50 50
 
51 51
 
52 52
 ?>
Please login to merge, or discard this patch.