Completed
Push — develop ( 7c1bda...edae1e )
by Adam
18:38 queued 03:14
created
modules/AOR_Reports/metadata/quickcreatedefs.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -31,15 +31,15 @@
 block discarded – undo
31 31
                                             ),
32 32
                                             
33 33
                                             
34
- 'panels' =>array (
35
-  'default' => 
36
-  array (
34
+    'panels' =>array (
35
+    'default' => 
36
+    array (
37 37
     
38 38
     array (
39
-      'name',
40
-      'assigned_user_name',
39
+        'name',
40
+        'assigned_user_name',
41
+    ),
41 42
     ),
42
-  ),
43 43
                                                     
44 44
 ),
45 45
                         
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,11 +31,11 @@
 block discarded – undo
31 31
                                             ),
32 32
                                             
33 33
                                             
34
- 'panels' =>array (
34
+ 'panels' =>array(
35 35
   'default' => 
36
-  array (
36
+  array(
37 37
     
38
-    array (
38
+    array(
39 39
       'name',
40 40
       'assigned_user_name',
41 41
     ),
Please login to merge, or discard this patch.
modules/AOR_Reports/metadata/metafiles.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -22,12 +22,12 @@
 block discarded – undo
22 22
  * @author SalesAgility <[email protected]>
23 23
  */
24 24
  
25
- $metafiles['AOR_Reports'] = array(
26
-	'detailviewdefs'  => 	'modules/AOR_Reports/metadata/detailviewdefs.php', 	
27
-	'editviewdefs'    => 	'modules/AOR_Reports/metadata/editviewdefs.php',
28
- 	'listviewdefs'    => 	'modules/AOR_Reports/metadata/listviewdefs.php',
29
- 	'searchdefs'      =>    'modules/AOR_Reports/metadata/searchdefs.php',
30
- 	'popupdefs'	      =>    'modules/AOR_Reports/metadata/popupdefs.php',
31
- 	'searchfields'	  =>    'modules/AOR_Reports/metadata/SearchFields.php',
32
- );
25
+    $metafiles['AOR_Reports'] = array(
26
+    'detailviewdefs'  => 	'modules/AOR_Reports/metadata/detailviewdefs.php', 	
27
+    'editviewdefs'    => 	'modules/AOR_Reports/metadata/editviewdefs.php',
28
+        'listviewdefs'    => 	'modules/AOR_Reports/metadata/listviewdefs.php',
29
+        'searchdefs'      =>    'modules/AOR_Reports/metadata/searchdefs.php',
30
+        'popupdefs'	      =>    'modules/AOR_Reports/metadata/popupdefs.php',
31
+        'searchfields'	  =>    'modules/AOR_Reports/metadata/SearchFields.php',
32
+    );
33 33
 ?>
Please login to merge, or discard this patch.
modules/AOR_Reports/metadata/listviewdefs.php 3 patches
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
2
+if (!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
3 3
 /**
4 4
  * Advanced OpenReports, SugarCRM Reporting.
5 5
  * @package Advanced OpenReports for SugarCRM
@@ -25,16 +25,16 @@  discard block
 block discarded – undo
25 25
 
26 26
 
27 27
 $listViewDefs ['AOR_Reports'] =
28
-array (
28
+array(
29 29
   'NAME' => 
30
-  array (
30
+  array(
31 31
     'width' => '15%',
32 32
     'label' => 'LBL_NAME',
33 33
     'default' => true,
34 34
     'link' => true,
35 35
   ),
36 36
   'REPORT_MODULE' => 
37
-  array (
37
+  array(
38 38
     'type' => 'enum',
39 39
     'default' => true,
40 40
     'studio' => 'visible',
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
     'width' => '15%',
43 43
   ),
44 44
   'ASSIGNED_USER_NAME' => 
45
-  array (
45
+  array(
46 46
     'width' => '15%',
47 47
     'label' => 'LBL_ASSIGNED_TO_NAME',
48 48
     'module' => 'Employees',
@@ -50,14 +50,14 @@  discard block
 block discarded – undo
50 50
     'default' => true,
51 51
   ),
52 52
   'DATE_ENTERED' => 
53
-  array (
53
+  array(
54 54
     'type' => 'datetime',
55 55
     'label' => 'LBL_DATE_ENTERED',
56 56
     'width' => '15%',
57 57
     'default' => true,
58 58
   ),
59 59
   'DATE_MODIFIED' => 
60
-  array (
60
+  array(
61 61
     'type' => 'datetime',
62 62
     'label' => 'LBL_DATE_MODIFIED',
63 63
     'width' => '15%',
Please login to merge, or discard this patch.
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -26,42 +26,42 @@
 block discarded – undo
26 26
 
27 27
 $listViewDefs ['AOR_Reports'] =
28 28
 array (
29
-  'NAME' => 
30
-  array (
29
+    'NAME' => 
30
+    array (
31 31
     'width' => '15%',
32 32
     'label' => 'LBL_NAME',
33 33
     'default' => true,
34 34
     'link' => true,
35
-  ),
36
-  'REPORT_MODULE' => 
37
-  array (
35
+    ),
36
+    'REPORT_MODULE' => 
37
+    array (
38 38
     'type' => 'enum',
39 39
     'default' => true,
40 40
     'studio' => 'visible',
41 41
     'label' => 'LBL_REPORT_MODULE',
42 42
     'width' => '15%',
43
-  ),
44
-  'ASSIGNED_USER_NAME' => 
45
-  array (
43
+    ),
44
+    'ASSIGNED_USER_NAME' => 
45
+    array (
46 46
     'width' => '15%',
47 47
     'label' => 'LBL_ASSIGNED_TO_NAME',
48 48
     'module' => 'Employees',
49 49
     'id' => 'ASSIGNED_USER_ID',
50 50
     'default' => true,
51
-  ),
52
-  'DATE_ENTERED' => 
53
-  array (
51
+    ),
52
+    'DATE_ENTERED' => 
53
+    array (
54 54
     'type' => 'datetime',
55 55
     'label' => 'LBL_DATE_ENTERED',
56 56
     'width' => '15%',
57 57
     'default' => true,
58
-  ),
59
-  'DATE_MODIFIED' => 
60
-  array (
58
+    ),
59
+    'DATE_MODIFIED' => 
60
+    array (
61 61
     'type' => 'datetime',
62 62
     'label' => 'LBL_DATE_MODIFIED',
63 63
     'width' => '15%',
64 64
     'default' => true,
65
-  ),
65
+    ),
66 66
 );
67 67
 ?>
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,7 @@
 block discarded – undo
1 1
 <?php
2
-if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
2
+if(!defined('sugarEntry') || !sugarEntry) {
3
+    die('Not A Valid Entry Point');
4
+}
3 5
 /**
4 6
  * Advanced OpenReports, SugarCRM Reporting.
5 7
  * @package Advanced OpenReports for SugarCRM
Please login to merge, or discard this patch.
modules/AOR_Reports/views/view.edit.php 3 patches
Spacing   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -38,17 +38,17 @@  discard block
 block discarded – undo
38 38
         //readfile('modules/AOR_Reports/css/edit.css');
39 39
         readfile('modules/AOR_Reports/js/jqtree/jqtree.css');
40 40
         echo "</style>";
41
-        if (!is_file('cache/jsLanguage/AOR_Fields/' . $GLOBALS['current_language'] . '.js')) {
41
+        if (!is_file('cache/jsLanguage/AOR_Fields/'.$GLOBALS['current_language'].'.js')) {
42 42
             require_once ('include/language/jsLanguage.php');
43 43
             jsLanguage::createModuleStringsCache('AOR_Fields', $GLOBALS['current_language']);
44 44
         }
45
-        echo '<script src="cache/jsLanguage/AOR_Fields/'. $GLOBALS['current_language'] . '.js"></script>';
45
+        echo '<script src="cache/jsLanguage/AOR_Fields/'.$GLOBALS['current_language'].'.js"></script>';
46 46
 
47
-        if (!is_file('cache/jsLanguage/AOR_Conditions/' . $GLOBALS['current_language'] . '.js')) {
47
+        if (!is_file('cache/jsLanguage/AOR_Conditions/'.$GLOBALS['current_language'].'.js')) {
48 48
             require_once ('include/language/jsLanguage.php');
49 49
             jsLanguage::createModuleStringsCache('AOR_Conditions', $GLOBALS['current_language']);
50 50
         }
51
-        echo '<script src="cache/jsLanguage/AOR_Conditions/'. $GLOBALS['current_language'] . '.js"></script>';
51
+        echo '<script src="cache/jsLanguage/AOR_Conditions/'.$GLOBALS['current_language'].'.js"></script>';
52 52
         echo '<script src="include/javascript/yui3/build/yui/yui-min.js"></script>';
53 53
 
54 54
         echo "<script>";
@@ -69,8 +69,8 @@  discard block
 block discarded – undo
69 69
         parent::preDisplay();
70 70
     }
71 71
 
72
-    private function getConditionLines(){
73
-        if(!$this->bean->id){
72
+    private function getConditionLines() {
73
+        if (!$this->bean->id) {
74 74
             return array();
75 75
         }
76 76
         $sql = "SELECT id FROM aor_conditions WHERE aor_report_id = '".$this->bean->id."' AND deleted = 0 ORDER BY condition_order ASC";
@@ -79,20 +79,20 @@  discard block
 block discarded – undo
79 79
         while ($row = $this->bean->db->fetchByAssoc($result)) {
80 80
             $condition_name = new AOR_Condition();
81 81
             $condition_name->retrieve($row['id']);
82
-            if(!$condition_name->parenthesis) {
82
+            if (!$condition_name->parenthesis) {
83 83
                 $condition_name->module_path = implode(":", unserialize(base64_decode($condition_name->module_path)));
84 84
             }
85
-            if($condition_name->value_type == 'Date'){
85
+            if ($condition_name->value_type == 'Date') {
86 86
                 $condition_name->value = unserialize(base64_decode($condition_name->value));
87 87
             }
88 88
             $condition_item = $condition_name->toArray();
89 89
 
90
-            if(!$condition_name->parenthesis) {
90
+            if (!$condition_name->parenthesis) {
91 91
                 $display = getDisplayForField($condition_name->module_path, $condition_name->field, $this->bean->report_module);
92 92
                 $condition_item['module_path_display'] = $display['module'];
93 93
                 $condition_item['field_label'] = $display['field'];
94 94
             }
95
-            if(isset($conditions[$condition_item['condition_order']])) {
95
+            if (isset($conditions[$condition_item['condition_order']])) {
96 96
                 $conditions[] = $condition_item;
97 97
             }
98 98
             else {
@@ -102,8 +102,8 @@  discard block
 block discarded – undo
102 102
         return $conditions;
103 103
     }
104 104
 
105
-    private function getFieldLines(){
106
-        if(!$this->bean->id){
105
+    private function getFieldLines() {
106
+        if (!$this->bean->id) {
107 107
             return array();
108 108
         }
109 109
         $sql = "SELECT id FROM aor_fields WHERE aor_report_id = '".$this->bean->id."' AND deleted = 0 ORDER BY field_order ASC";
@@ -113,10 +113,10 @@  discard block
 block discarded – undo
113 113
         while ($row = $this->bean->db->fetchByAssoc($result)) {
114 114
             $field_name = new AOR_Field();
115 115
             $field_name->retrieve($row['id']);
116
-            $field_name->module_path = implode(":",unserialize(base64_decode($field_name->module_path)));
116
+            $field_name->module_path = implode(":", unserialize(base64_decode($field_name->module_path)));
117 117
             $arr = $field_name->toArray();
118 118
 
119
-            $arr['field_type'] = $this->getDisplayForField($field_name->module_path, $field_name->field  , $this->bean->report_module);
119
+            $arr['field_type'] = $this->getDisplayForField($field_name->module_path, $field_name->field, $this->bean->report_module);
120 120
 
121 121
             $display = getDisplayForField($field_name->module_path, $field_name->field, $this->bean->report_module);
122 122
 
@@ -127,42 +127,42 @@  discard block
 block discarded – undo
127 127
         return $fields;
128 128
     }
129 129
 
130
-    private function getChartLines(){
130
+    private function getChartLines() {
131 131
         $charts = array();
132
-        if(!$this->bean->id){
132
+        if (!$this->bean->id) {
133 133
             return array();
134 134
         }
135
-        foreach($this->bean->get_linked_beans('aor_charts','AOR_Charts') as $chart){
135
+        foreach ($this->bean->get_linked_beans('aor_charts', 'AOR_Charts') as $chart) {
136 136
             $charts[] = $chart->toArray();
137 137
         }
138 138
         return $charts;
139 139
     }
140 140
 
141
-    public function getDisplayForField($modulePath, $field, $reportModule){
141
+    public function getDisplayForField($modulePath, $field, $reportModule) {
142 142
         $modulePathDisplay = array();
143 143
         $currentBean = BeanFactory::getBean($reportModule);
144 144
         $modulePathDisplay[] = $currentBean->module_name;
145
-        if(is_array($modulePath)) {
145
+        if (is_array($modulePath)) {
146 146
             $split = $modulePath;
147
-        }else{
147
+        } else {
148 148
             $split = explode(':', $modulePath);
149 149
         }
150 150
         if ($split && $split[0] == $currentBean->module_dir) {
151 151
             array_shift($split);
152 152
         }
153
-        foreach($split as $relName){
154
-            if(empty($relName)){
153
+        foreach ($split as $relName) {
154
+            if (empty($relName)) {
155 155
                 continue;
156 156
             }
157
-            if(!empty($currentBean->field_name_map[$relName]['vname'])){
158
-                $moduleLabel = trim(translate($currentBean->field_name_map[$relName]['vname'],$currentBean->module_dir),':');
157
+            if (!empty($currentBean->field_name_map[$relName]['vname'])) {
158
+                $moduleLabel = trim(translate($currentBean->field_name_map[$relName]['vname'], $currentBean->module_dir), ':');
159 159
             }
160 160
             $thisModule = getRelatedModule($currentBean->module_dir, $relName);
161 161
             $currentBean = BeanFactory::getBean($thisModule);
162 162
 
163
-            if(!empty($moduleLabel)){
163
+            if (!empty($moduleLabel)) {
164 164
                 $modulePathDisplay[] = $moduleLabel;
165
-            }else {
165
+            } else {
166 166
                 $modulePathDisplay[] = $currentBean->module_name;
167 167
             }
168 168
         }
Please login to merge, or discard this patch.
Braces   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -94,8 +94,7 @@  discard block
 block discarded – undo
94 94
             }
95 95
             if(isset($conditions[$condition_item['condition_order']])) {
96 96
                 $conditions[] = $condition_item;
97
-            }
98
-            else {
97
+            } else {
99 98
                 $conditions[$condition_item['condition_order']] = $condition_item;
100 99
             }
101 100
         }
@@ -144,7 +143,7 @@  discard block
 block discarded – undo
144 143
         $modulePathDisplay[] = $currentBean->module_name;
145 144
         if(is_array($modulePath)) {
146 145
             $split = $modulePath;
147
-        }else{
146
+        } else{
148 147
             $split = explode(':', $modulePath);
149 148
         }
150 149
         if ($split && $split[0] == $currentBean->module_dir) {
@@ -162,7 +161,7 @@  discard block
 block discarded – undo
162 161
 
163 162
             if(!empty($moduleLabel)){
164 163
                 $modulePathDisplay[] = $moduleLabel;
165
-            }else {
164
+            } else {
166 165
                 $modulePathDisplay[] = $currentBean->module_name;
167 166
             }
168 167
         }
Please login to merge, or discard this patch.
Indentation   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -1,27 +1,27 @@
 block discarded – undo
1 1
 <?php
2
- /**
3
- *
4
- *
5
- * @package
6
- * @copyright SalesAgility Ltd http://www.salesagility.com
7
- *
8
- * This program is free software; you can redistribute it and/or modify
9
- * it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE as published by
10
- * the Free Software Foundation; either version 3 of the License, or
11
- * (at your option) any later version.
12
- *
13
- * This program is distributed in the hope that it will be useful,
14
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
- * GNU General Public License for more details.
17
- *
18
- * You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
19
- * along with this program; if not, see http://www.gnu.org/licenses
20
- * or write to the Free Software Foundation,Inc., 51 Franklin Street,
21
- * Fifth Floor, Boston, MA 02110-1301  USA
22
- *
23
- * @author Salesagility Ltd <[email protected]>
24
- */
2
+    /**
3
+     *
4
+     *
5
+     * @package
6
+     * @copyright SalesAgility Ltd http://www.salesagility.com
7
+     *
8
+     * This program is free software; you can redistribute it and/or modify
9
+     * it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE as published by
10
+     * the Free Software Foundation; either version 3 of the License, or
11
+     * (at your option) any later version.
12
+     *
13
+     * This program is distributed in the hope that it will be useful,
14
+     * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
+     * GNU General Public License for more details.
17
+     *
18
+     * You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
19
+     * along with this program; if not, see http://www.gnu.org/licenses
20
+     * or write to the Free Software Foundation,Inc., 51 Franklin Street,
21
+     * Fifth Floor, Boston, MA 02110-1301  USA
22
+     *
23
+     * @author Salesagility Ltd <[email protected]>
24
+     */
25 25
 
26 26
 require_once('include/MVC/View/views/view.edit.php');
27 27
 require_once 'modules/AOW_WorkFlow/aow_utils.php';
Please login to merge, or discard this patch.
modules/AOR_Reports/views/view.detail.php 3 patches
Indentation   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -1,27 +1,27 @@
 block discarded – undo
1 1
 <?php
2
- /**
3
- * 
4
- * 
5
- * @package 
6
- * @copyright SalesAgility Ltd http://www.salesagility.com
7
- * 
8
- * This program is free software; you can redistribute it and/or modify
9
- * it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE as published by
10
- * the Free Software Foundation; either version 3 of the License, or
11
- * (at your option) any later version.
12
- *
13
- * This program is distributed in the hope that it will be useful,
14
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
- * GNU General Public License for more details.
17
- *
18
- * You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
19
- * along with this program; if not, see http://www.gnu.org/licenses
20
- * or write to the Free Software Foundation,Inc., 51 Franklin Street,
21
- * Fifth Floor, Boston, MA 02110-1301  USA
22
- *
23
- * @author Salesagility Ltd <[email protected]>
24
- */
2
+    /**
3
+     * 
4
+     * 
5
+     * @package 
6
+     * @copyright SalesAgility Ltd http://www.salesagility.com
7
+     * 
8
+     * This program is free software; you can redistribute it and/or modify
9
+     * it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE as published by
10
+     * the Free Software Foundation; either version 3 of the License, or
11
+     * (at your option) any later version.
12
+     *
13
+     * This program is distributed in the hope that it will be useful,
14
+     * but WITHOUT ANY WARRANTY; without even the implied warranty of
15
+     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16
+     * GNU General Public License for more details.
17
+     *
18
+     * You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
19
+     * along with this program; if not, see http://www.gnu.org/licenses
20
+     * or write to the Free Software Foundation,Inc., 51 Franklin Street,
21
+     * Fifth Floor, Boston, MA 02110-1301  USA
22
+     *
23
+     * @author Salesagility Ltd <[email protected]>
24
+     */
25 25
 require_once 'include/MVC/View/views/view.detail.php';
26 26
 require_once 'modules/AOW_WorkFlow/aow_utils.php';
27 27
 require_once 'modules/AOR_Reports/aor_utils.php';
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,8 +55,7 @@
 block discarded – undo
55 55
             }
56 56
             if(isset($parameters[$condition_item['condition_order']])) {
57 57
                 $parameters[] = $condition_item;
58
-            }
59
-            else {
58
+            } else {
60 59
                 $parameters[$condition_item['condition_order']] = $condition_item;
61 60
             }
62 61
         }
Please login to merge, or discard this patch.
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -27,31 +27,31 @@  discard block
 block discarded – undo
27 27
 require_once 'modules/AOR_Reports/aor_utils.php';
28 28
 class AOR_ReportsViewDetail extends ViewDetail {
29 29
 
30
-    private function getReportParameters(){
31
-        if(!$this->bean->id){
30
+    private function getReportParameters() {
31
+        if (!$this->bean->id) {
32 32
             return array();
33 33
         }
34
-        $conditions = $this->bean->get_linked_beans('aor_conditions','AOR_Conditions', 'condition_order');
34
+        $conditions = $this->bean->get_linked_beans('aor_conditions', 'AOR_Conditions', 'condition_order');
35 35
         $parameters = array();
36
-        foreach($conditions as $condition){
37
-            if(!$condition->parameter){
36
+        foreach ($conditions as $condition) {
37
+            if (!$condition->parameter) {
38 38
                 continue;
39 39
             }
40
-            $condition->module_path = implode(":",unserialize(base64_decode($condition->module_path)));
41
-            if($condition->value_type == 'Date'){
40
+            $condition->module_path = implode(":", unserialize(base64_decode($condition->module_path)));
41
+            if ($condition->value_type == 'Date') {
42 42
                 $condition->value = unserialize(base64_decode($condition->value));
43 43
             }
44 44
             $condition_item = $condition->toArray();
45 45
             $display = getDisplayForField($condition->module_path, $condition->field, $this->bean->report_module);
46 46
             $condition_item['module_path_display'] = $display['module'];
47 47
             $condition_item['field_label'] = $display['field'];
48
-            if(!empty($this->bean->user_parameters[$condition->id])){
48
+            if (!empty($this->bean->user_parameters[$condition->id])) {
49 49
                 $param = $this->bean->user_parameters[$condition->id];
50 50
                 $condition_item['operator'] = $param['operator'];
51 51
                 $condition_item['value_type'] = $param['type'];
52 52
                 $condition_item['value'] = $param['value'];
53 53
             }
54
-            if(isset($parameters[$condition_item['condition_order']])) {
54
+            if (isset($parameters[$condition_item['condition_order']])) {
55 55
                 $parameters[] = $condition_item;
56 56
             }
57 57
             else {
@@ -64,14 +64,14 @@  discard block
 block discarded – undo
64 64
     public function preDisplay() {
65 65
         global $app_list_strings;
66 66
         parent::preDisplay();
67
-        $this->ss->assign('report_module',$this->bean->report_module);
67
+        $this->ss->assign('report_module', $this->bean->report_module);
68 68
 
69 69
 
70 70
 
71 71
         $this->bean->user_parameters = requestToUserParameters();
72 72
 
73 73
         //$reportHTML = $this->bean->build_group_report(0,true);
74
-        $reportHTML = $this->bean->buildMultiGroupReport(0,true);
74
+        $reportHTML = $this->bean->buildMultiGroupReport(0, true);
75 75
 
76 76
         $chartsHTML = $this->bean->build_report_chart(null, AOR_Report::CHART_TYPE_RGRAPH);
77 77
 
@@ -82,11 +82,11 @@  discard block
 block discarded – undo
82 82
         $this->ss->assign('report_content', $reportHTML);
83 83
 
84 84
         echo "<input type='hidden' name='report_module' id='report_module' value='{$this->bean->report_module}'>";
85
-        if (!is_file('cache/jsLanguage/AOR_Conditions/' . $GLOBALS['current_language'] . '.js')) {
85
+        if (!is_file('cache/jsLanguage/AOR_Conditions/'.$GLOBALS['current_language'].'.js')) {
86 86
             require_once ('include/language/jsLanguage.php');
87 87
             jsLanguage::createModuleStringsCache('AOR_Conditions', $GLOBALS['current_language']);
88 88
         }
89
-        echo '<script src="cache/jsLanguage/AOR_Conditions/'. $GLOBALS['current_language'] . '.js"></script>';
89
+        echo '<script src="cache/jsLanguage/AOR_Conditions/'.$GLOBALS['current_language'].'.js"></script>';
90 90
 
91 91
         $params = $this->getReportParameters();
92 92
         echo "<script>var reportParameters = ".json_encode($params).";</script>";
Please login to merge, or discard this patch.
modules/AOR_Reports/Dashlets/AORReportsDashlet/AORReportsDashlet.meta.php 3 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -3,6 +3,6 @@
 block discarded – undo
3 3
 global $app_strings;
4 4
 
5 5
 $dashletMeta['AORReportsDashlet'] = array('module'		=> 'AOR_Reports',
6
-										  'title'       => translate('LBL_AOR_REPORTS_DASHLET', 'AOR_Reports'),
7
-                                          'description' => 'Displays Reports',
8
-                                          'category'    => 'Module Views');
6
+                                            'title'       => translate('LBL_AOR_REPORTS_DASHLET', 'AOR_Reports'),
7
+                                            'description' => 'Displays Reports',
8
+                                            'category'    => 'Module Views');
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
2
+if (!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
3 3
 global $app_strings;
4 4
 
5 5
 $dashletMeta['AORReportsDashlet'] = array('module'		=> 'AOR_Reports',
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,7 @@
 block discarded – undo
1 1
 <?php
2
-if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
2
+if(!defined('sugarEntry') || !sugarEntry) {
3
+    die('Not A Valid Entry Point');
4
+}
3 5
 global $app_strings;
4 6
 
5 7
 $dashletMeta['AORReportsDashlet'] = array('module'		=> 'AOR_Reports',
Please login to merge, or discard this patch.
modules/DynamicFields/UpgradeFields.php 3 patches
Indentation   +74 added lines, -74 removed lines patch added patch discarded remove patch
@@ -40,95 +40,95 @@  discard block
 block discarded – undo
40 40
 
41 41
 require_once('modules/DynamicFields/FieldCases.php');
42 42
 require_once('modules/DynamicFields/DynamicField.php');
43
- global $db;
44
- if(!isset($db)){
45
- 	$db = DBManagerFactory::getInstance();
46
- }
47
- $result = $db->query( 'SELECT * FROM fields_meta_data WHERE deleted = 0 ORDER BY custom_module');
48
- $modules = array();
49
- /*
43
+    global $db;
44
+    if(!isset($db)){
45
+        $db = DBManagerFactory::getInstance();
46
+    }
47
+    $result = $db->query( 'SELECT * FROM fields_meta_data WHERE deleted = 0 ORDER BY custom_module');
48
+    $modules = array();
49
+    /*
50 50
   * get the real field_meta_data
51 51
   */
52
- while($row = $db->fetchByAssoc($result)){
53
- 	$the_modules = $row['custom_module'];
54
- 	if(!isset($modules[$the_modules])){
55
- 		$modules[$the_modules] = array();	
56
- 	}
57
- 	$modules[$the_modules][$row['name']] = $row['name'];
58
- }
52
+    while($row = $db->fetchByAssoc($result)){
53
+        $the_modules = $row['custom_module'];
54
+        if(!isset($modules[$the_modules])){
55
+            $modules[$the_modules] = array();	
56
+        }
57
+        $modules[$the_modules][$row['name']] = $row['name'];
58
+    }
59 59
  	
60
- $simulate = false;
61
- if(!isset($_REQUEST['run'])){
62
- 	$simulate = true;
63
- 	echo "SIMULATION MODE - NO CHANGES WILL BE MADE EXCEPT CLEARING CACHE";
64
- }	
60
+    $simulate = false;
61
+    if(!isset($_REQUEST['run'])){
62
+        $simulate = true;
63
+        echo "SIMULATION MODE - NO CHANGES WILL BE MADE EXCEPT CLEARING CACHE";
64
+    }	
65 65
 
66
- foreach($modules as $the_module=>$fields){
67
-         if(isset($beanList[$the_module]))
68
-         {
69
- 	$class_name = $beanList[$the_module];
70
- 	echo "<br><br>Scanning $the_module <br>";
66
+    foreach($modules as $the_module=>$fields){
67
+            if(isset($beanList[$the_module]))
68
+            {
69
+        $class_name = $beanList[$the_module];
70
+        echo "<br><br>Scanning $the_module <br>";
71 71
 		
72
-		require_once($beanFiles[$class_name]);
73
-		$mod = new $class_name();
74
-		if(!$db->tableExists($mod->table_name . "_cstm")){
75
-			$mod->custom_fields = new DynamicField();
76
-			$mod->custom_fields->setup($mod);
77
-		$mod->custom_fields->createCustomTable();
78
-		}
72
+        require_once($beanFiles[$class_name]);
73
+        $mod = new $class_name();
74
+        if(!$db->tableExists($mod->table_name . "_cstm")){
75
+            $mod->custom_fields = new DynamicField();
76
+            $mod->custom_fields->setup($mod);
77
+        $mod->custom_fields->createCustomTable();
78
+        }
79 79
 
80
-		$result = $db->query("DESCRIBE $mod->table_name" . "_cstm");
80
+        $result = $db->query("DESCRIBE $mod->table_name" . "_cstm");
81 81
 		
82
-		while($row = $db->fetchByAssoc($result)){
82
+        while($row = $db->fetchByAssoc($result)){
83 83
 			
84 84
 			
85
-			$col = $row['Field'];
86
-			$type = $row['Type'];
87
-			$fieldDef = $mod->getFieldDefinition($col);
88
-			$the_field = get_widget($fieldDef['type']);
89
-			$the_field->set($fieldDef);
85
+            $col = $row['Field'];
86
+            $type = $row['Type'];
87
+            $fieldDef = $mod->getFieldDefinition($col);
88
+            $the_field = get_widget($fieldDef['type']);
89
+            $the_field->set($fieldDef);
90 90
 				
91
-				if(!isset($fields[$col]) && $col != 'id_c'){
92
-					if(!$simulate)$db->query("ALTER TABLE $mod->table_name" . "_cstm DROP COLUMN $col");
93
-					unset($fields[$col]);
94
-					echo "Dropping Column $col from $mod->table_name" . "_cstm for module $the_module<br>";
95
-				}	else{
96
-					if($col != 'id_c'){
97
-					if(trim($the_field->get_db_type()) != trim($type)){
91
+                if(!isset($fields[$col]) && $col != 'id_c'){
92
+                    if(!$simulate)$db->query("ALTER TABLE $mod->table_name" . "_cstm DROP COLUMN $col");
93
+                    unset($fields[$col]);
94
+                    echo "Dropping Column $col from $mod->table_name" . "_cstm for module $the_module<br>";
95
+                }	else{
96
+                    if($col != 'id_c'){
97
+                    if(trim($the_field->get_db_type()) != trim($type)){
98 98
 						
99
-					echo "Fixing Column Type for $col changing $type to ". $the_field->get_db_type() . "<br>";
100
-					if(!$simulate)$db->query($the_field->get_db_modify_alter_table($mod->table_name . '_cstm'));		
101
-					}
102
-					}
99
+                    echo "Fixing Column Type for $col changing $type to ". $the_field->get_db_type() . "<br>";
100
+                    if(!$simulate)$db->query($the_field->get_db_modify_alter_table($mod->table_name . '_cstm'));		
101
+                    }
102
+                    }
103 103
 					
104
-					unset($fields[$col]);
105
-				}
104
+                    unset($fields[$col]);
105
+                }
106 106
 			
107
-		}
107
+        }
108 108
 			
109
-			echo sizeof($fields) . " field(s) missing from $mod->table_name" . "_cstm<br>";
110
-			foreach($fields as $field){
111
-				echo "Adding Column $field to $mod->table_name" . "_cstm<br>";
112
-				if(!$simulate){
113
-					$the_field = $mod->getFieldDefinition($field);
114
-					$field = get_widget($the_field['type']);
115
-					$field->set($the_field);
116
-					$query = $field->get_db_add_alter_table($mod->table_name . '_cstm');
117
-					echo $query;
118
-            		if(!empty($query)){
119
-                		$mod->db->query($query);
120
-            		}
121
-				}
122
-			}
123
-         }
124
-	}
109
+            echo sizeof($fields) . " field(s) missing from $mod->table_name" . "_cstm<br>";
110
+            foreach($fields as $field){
111
+                echo "Adding Column $field to $mod->table_name" . "_cstm<br>";
112
+                if(!$simulate){
113
+                    $the_field = $mod->getFieldDefinition($field);
114
+                    $field = get_widget($the_field['type']);
115
+                    $field->set($the_field);
116
+                    $query = $field->get_db_add_alter_table($mod->table_name . '_cstm');
117
+                    echo $query;
118
+                    if(!empty($query)){
119
+                        $mod->db->query($query);
120
+                    }
121
+                }
122
+            }
123
+            }
124
+    }
125 125
 	
126 126
 	
127
-	DynamicField::deleteCache();	
128
-	echo '<br>Done<br>';
129
-	if($simulate){
130
-		echo '<a href="index.php?module=Administration&action=UpgradeFields&run=true">Execute non-simulation mode</a>';	
131
-	}
127
+    DynamicField::deleteCache();	
128
+    echo '<br>Done<br>';
129
+    if($simulate){
130
+        echo '<a href="index.php?module=Administration&action=UpgradeFields&run=true">Execute non-simulation mode</a>';	
131
+    }
132 132
 		
133 133
 		
134 134
  
@@ -137,4 +137,4 @@  discard block
 block discarded – undo
137 137
  
138 138
  
139 139
  
140
- ?>
141 140
\ No newline at end of file
141
+    ?>
142 142
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); 
2
+if (!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); 
3 3
 /*********************************************************************************
4 4
  * SugarCRM Community Edition is a customer relationship management program developed by
5 5
  * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc.
@@ -41,45 +41,45 @@  discard block
 block discarded – undo
41 41
 require_once('modules/DynamicFields/FieldCases.php');
42 42
 require_once('modules/DynamicFields/DynamicField.php');
43 43
  global $db;
44
- if(!isset($db)){
44
+ if (!isset($db)) {
45 45
  	$db = DBManagerFactory::getInstance();
46 46
  }
47
- $result = $db->query( 'SELECT * FROM fields_meta_data WHERE deleted = 0 ORDER BY custom_module');
47
+ $result = $db->query('SELECT * FROM fields_meta_data WHERE deleted = 0 ORDER BY custom_module');
48 48
  $modules = array();
49 49
  /*
50 50
   * get the real field_meta_data
51 51
   */
52
- while($row = $db->fetchByAssoc($result)){
52
+ while ($row = $db->fetchByAssoc($result)) {
53 53
  	$the_modules = $row['custom_module'];
54
- 	if(!isset($modules[$the_modules])){
54
+ 	if (!isset($modules[$the_modules])) {
55 55
  		$modules[$the_modules] = array();	
56 56
  	}
57 57
  	$modules[$the_modules][$row['name']] = $row['name'];
58 58
  }
59 59
  	
60 60
  $simulate = false;
61
- if(!isset($_REQUEST['run'])){
61
+ if (!isset($_REQUEST['run'])) {
62 62
  	$simulate = true;
63 63
  	echo "SIMULATION MODE - NO CHANGES WILL BE MADE EXCEPT CLEARING CACHE";
64 64
  }	
65 65
 
66
- foreach($modules as $the_module=>$fields){
67
-         if(isset($beanList[$the_module]))
66
+ foreach ($modules as $the_module=>$fields) {
67
+         if (isset($beanList[$the_module]))
68 68
          {
69 69
  	$class_name = $beanList[$the_module];
70 70
  	echo "<br><br>Scanning $the_module <br>";
71 71
 		
72 72
 		require_once($beanFiles[$class_name]);
73 73
 		$mod = new $class_name();
74
-		if(!$db->tableExists($mod->table_name . "_cstm")){
74
+		if (!$db->tableExists($mod->table_name."_cstm")) {
75 75
 			$mod->custom_fields = new DynamicField();
76 76
 			$mod->custom_fields->setup($mod);
77 77
 		$mod->custom_fields->createCustomTable();
78 78
 		}
79 79
 
80
-		$result = $db->query("DESCRIBE $mod->table_name" . "_cstm");
80
+		$result = $db->query("DESCRIBE $mod->table_name"."_cstm");
81 81
 		
82
-		while($row = $db->fetchByAssoc($result)){
82
+		while ($row = $db->fetchByAssoc($result)) {
83 83
 			
84 84
 			
85 85
 			$col = $row['Field'];
@@ -88,16 +88,16 @@  discard block
 block discarded – undo
88 88
 			$the_field = get_widget($fieldDef['type']);
89 89
 			$the_field->set($fieldDef);
90 90
 				
91
-				if(!isset($fields[$col]) && $col != 'id_c'){
92
-					if(!$simulate)$db->query("ALTER TABLE $mod->table_name" . "_cstm DROP COLUMN $col");
91
+				if (!isset($fields[$col]) && $col != 'id_c') {
92
+					if (!$simulate)$db->query("ALTER TABLE $mod->table_name"."_cstm DROP COLUMN $col");
93 93
 					unset($fields[$col]);
94
-					echo "Dropping Column $col from $mod->table_name" . "_cstm for module $the_module<br>";
95
-				}	else{
96
-					if($col != 'id_c'){
97
-					if(trim($the_field->get_db_type()) != trim($type)){
94
+					echo "Dropping Column $col from $mod->table_name"."_cstm for module $the_module<br>";
95
+				} else {
96
+					if ($col != 'id_c') {
97
+					if (trim($the_field->get_db_type()) != trim($type)) {
98 98
 						
99
-					echo "Fixing Column Type for $col changing $type to ". $the_field->get_db_type() . "<br>";
100
-					if(!$simulate)$db->query($the_field->get_db_modify_alter_table($mod->table_name . '_cstm'));		
99
+					echo "Fixing Column Type for $col changing $type to ".$the_field->get_db_type()."<br>";
100
+					if (!$simulate)$db->query($the_field->get_db_modify_alter_table($mod->table_name.'_cstm'));		
101 101
 					}
102 102
 					}
103 103
 					
@@ -106,16 +106,16 @@  discard block
 block discarded – undo
106 106
 			
107 107
 		}
108 108
 			
109
-			echo sizeof($fields) . " field(s) missing from $mod->table_name" . "_cstm<br>";
110
-			foreach($fields as $field){
111
-				echo "Adding Column $field to $mod->table_name" . "_cstm<br>";
112
-				if(!$simulate){
109
+			echo sizeof($fields)." field(s) missing from $mod->table_name"."_cstm<br>";
110
+			foreach ($fields as $field) {
111
+				echo "Adding Column $field to $mod->table_name"."_cstm<br>";
112
+				if (!$simulate) {
113 113
 					$the_field = $mod->getFieldDefinition($field);
114 114
 					$field = get_widget($the_field['type']);
115 115
 					$field->set($the_field);
116
-					$query = $field->get_db_add_alter_table($mod->table_name . '_cstm');
116
+					$query = $field->get_db_add_alter_table($mod->table_name.'_cstm');
117 117
 					echo $query;
118
-            		if(!empty($query)){
118
+            		if (!empty($query)) {
119 119
                 		$mod->db->query($query);
120 120
             		}
121 121
 				}
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
 	
127 127
 	DynamicField::deleteCache();	
128 128
 	echo '<br>Done<br>';
129
-	if($simulate){
129
+	if ($simulate) {
130 130
 		echo '<a href="index.php?module=Administration&action=UpgradeFields&run=true">Execute non-simulation mode</a>';	
131 131
 	}
132 132
 		
Please login to merge, or discard this patch.
Braces   +10 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,5 +1,7 @@  discard block
 block discarded – undo
1 1
 <?php
2
-if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point'); 
2
+if(!defined('sugarEntry') || !sugarEntry) {
3
+    die('Not A Valid Entry Point');
4
+}
3 5
 /*********************************************************************************
4 6
  * SugarCRM Community Edition is a customer relationship management program developed by
5 7
  * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc.
@@ -89,15 +91,19 @@  discard block
 block discarded – undo
89 91
 			$the_field->set($fieldDef);
90 92
 				
91 93
 				if(!isset($fields[$col]) && $col != 'id_c'){
92
-					if(!$simulate)$db->query("ALTER TABLE $mod->table_name" . "_cstm DROP COLUMN $col");
94
+					if(!$simulate) {
95
+					    $db->query("ALTER TABLE $mod->table_name" . "_cstm DROP COLUMN $col");
96
+					}
93 97
 					unset($fields[$col]);
94 98
 					echo "Dropping Column $col from $mod->table_name" . "_cstm for module $the_module<br>";
95
-				}	else{
99
+				} else{
96 100
 					if($col != 'id_c'){
97 101
 					if(trim($the_field->get_db_type()) != trim($type)){
98 102
 						
99 103
 					echo "Fixing Column Type for $col changing $type to ". $the_field->get_db_type() . "<br>";
100
-					if(!$simulate)$db->query($the_field->get_db_modify_alter_table($mod->table_name . '_cstm'));		
104
+					if(!$simulate) {
105
+					    $db->query($the_field->get_db_modify_alter_table($mod->table_name . '_cstm'));
106
+					}
101 107
 					}
102 108
 					}
103 109
 					
Please login to merge, or discard this patch.
modules/Relationships/field_arrays.php 3 patches
Indentation   +32 added lines, -32 removed lines patch added patch discarded remove patch
@@ -46,39 +46,39 @@
 block discarded – undo
46 46
  * Contributor(s): ______________________________________..
47 47
  ********************************************************************************/
48 48
 $fields_array['Relationship'] = array ('column_fields' => Array(
49
-		'id',
50
-		'relationship_name',
51
-		'lhs_module',
52
-		'lhs_table',
53
-		'lhs_key',
54
-		'rhs_module',
55
-		'rhs_table',
56
-		'rhs_key',
57
-		'join_table',
58
-		'join_key_lhs',
59
-		'join_key_rhs',
60
-		'relationship_type',
61
-		'relationship_role_column',
62
-		'relationship_role_column_value',
63
-		'reverse',
64
-	),
49
+        'id',
50
+        'relationship_name',
51
+        'lhs_module',
52
+        'lhs_table',
53
+        'lhs_key',
54
+        'rhs_module',
55
+        'rhs_table',
56
+        'rhs_key',
57
+        'join_table',
58
+        'join_key_lhs',
59
+        'join_key_rhs',
60
+        'relationship_type',
61
+        'relationship_role_column',
62
+        'relationship_role_column_value',
63
+        'reverse',
64
+    ),
65 65
         'list_fields' =>  Array(
66
-		'id',
67
-		'relationship_name',
68
-		'lhs_module',
69
-		'lhs_table',
70
-		'lhs_key',
71
-		'rhs_module',
72
-		'rhs_table',
73
-		'rhs_key',
74
-		'join_table',
75
-		'join_key_lhs',
76
-		'join_key_rhs',
77
-		'relationship_type',
78
-		'relationship_role_column',
79
-		'relationship_role_column_value',
80
-		'reverse',
81
-	),
66
+        'id',
67
+        'relationship_name',
68
+        'lhs_module',
69
+        'lhs_table',
70
+        'lhs_key',
71
+        'rhs_module',
72
+        'rhs_table',
73
+        'rhs_key',
74
+        'join_table',
75
+        'join_key_lhs',
76
+        'join_key_rhs',
77
+        'relationship_type',
78
+        'relationship_role_column',
79
+        'relationship_role_column_value',
80
+        'reverse',
81
+    ),
82 82
     'required_fields' =>   array("relationship_name"=>1),
83 83
 );
84 84
 ?>
85 85
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
2
+if (!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
3 3
 /*********************************************************************************
4 4
  * SugarCRM Community Edition is a customer relationship management program developed by
5 5
  * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc.
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
  * All Rights Reserved.
46 46
  * Contributor(s): ______________________________________..
47 47
  ********************************************************************************/
48
-$fields_array['Relationship'] = array ('column_fields' => Array(
48
+$fields_array['Relationship'] = array('column_fields' => Array(
49 49
 		'id',
50 50
 		'relationship_name',
51 51
 		'lhs_module',
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,7 @@
 block discarded – undo
1 1
 <?php
2
-if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
2
+if(!defined('sugarEntry') || !sugarEntry) {
3
+    die('Not A Valid Entry Point');
4
+}
3 5
 /*********************************************************************************
4 6
  * SugarCRM Community Edition is a customer relationship management program developed by
5 7
  * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc.
Please login to merge, or discard this patch.
modules/jjwg_Maps/jjwg_Maps_Router.php 3 patches
Indentation   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -11,21 +11,21 @@  discard block
 block discarded – undo
11 11
 
12 12
 if (!empty($_REQUEST['cron'])) {
13 13
   
14
-  require_once('modules/jjwg_Maps/jjwg_Maps.php');
15
-  require_once('modules/jjwg_Maps/controller.php');
16
-  /*
14
+    require_once('modules/jjwg_Maps/jjwg_Maps.php');
15
+    require_once('modules/jjwg_Maps/controller.php');
16
+    /*
17 17
    * This script can be used as an entry point for a cron
18 18
    * job to run the address geocoding on a regular basis.
19 19
    * index.php?module=jjwg_Maps&entryPoint=jjwg_Maps&cron=1&limit=2500
20 20
    */
21
-  $controller = new jjwg_MapsController();
22
-  $controller->action_geocode_addresses();
21
+    $controller = new jjwg_MapsController();
22
+    $controller->action_geocode_addresses();
23 23
   
24
-  exit;
24
+    exit;
25 25
 
26 26
 } else {
27 27
   
28
-  /*
28
+    /*
29 29
    * This script is also used to pass selected records from 
30 30
    * a module list view to the Maps Module (jjwg_Maps).
31 31
    *
@@ -45,25 +45,25 @@  discard block
 block discarded – undo
45 45
    * 4.) Parameter Search - Checked Records - Map
46 46
    *     Uses 'uid'(s) parameter to define search
47 47
    */
48
-  //echo 'Test:<pre>'."\n";
49
-  //foreach (array_keys($_REQUEST) as $key) {
50
-  //  echo 'Name: '.htmlspecialchars($key).'  Value: '.htmlspecialchars($_REQUEST[$key])."\n";
51
-  //}
48
+    //echo 'Test:<pre>'."\n";
49
+    //foreach (array_keys($_REQUEST) as $key) {
50
+    //  echo 'Name: '.htmlspecialchars($key).'  Value: '.htmlspecialchars($_REQUEST[$key])."\n";
51
+    //}
52 52
   
53
-  // Redirect parameters to view/action using Javascript form post.
54
-  echo '<html><head></head><body>';
55
-  echo '<form name="redirect" action="index.php" method="POST">'."\n";
56
-  echo '<input type="hidden" name="module" value="jjwg_Maps">'."\n";
57
-  echo '<input type="hidden" name="action" value="map_display">'."\n";
58
-  foreach (array_keys($_REQUEST) as $key) {
53
+    // Redirect parameters to view/action using Javascript form post.
54
+    echo '<html><head></head><body>';
55
+    echo '<form name="redirect" action="index.php" method="POST">'."\n";
56
+    echo '<input type="hidden" name="module" value="jjwg_Maps">'."\n";
57
+    echo '<input type="hidden" name="action" value="map_display">'."\n";
58
+    foreach (array_keys($_REQUEST) as $key) {
59 59
     if (!in_array($key, array('action','module','entryPoint','display_module', 'quick_address'))) {
60
-      echo '<input type="hidden" name="'.htmlspecialchars($key).'" value="'.htmlspecialchars($_REQUEST[$key]).'">'."\n";
60
+        echo '<input type="hidden" name="'.htmlspecialchars($key).'" value="'.htmlspecialchars($_REQUEST[$key]).'">'."\n";
61 61
     }
62
-  }
63
-  echo '<input type="hidden" name="display_module" value="'.htmlspecialchars($_REQUEST['display_module']).'">'."\n";
64
-  echo '</form>'."\n";
65
-  echo '<script language="javascript" type="text/javascript">document.redirect.submit();</script>'."\n"; 
66
-  echo '</body></html>';
62
+    }
63
+    echo '<input type="hidden" name="display_module" value="'.htmlspecialchars($_REQUEST['display_module']).'">'."\n";
64
+    echo '</form>'."\n";
65
+    echo '<script language="javascript" type="text/javascript">document.redirect.submit();</script>'."\n"; 
66
+    echo '</body></html>';
67 67
   
68
-  exit;
68
+    exit;
69 69
 }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
2
+if (!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
3 3
 
4 4
 require_once('include/utils.php');
5 5
 require_once('include/export_utils.php');
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
   echo '<input type="hidden" name="module" value="jjwg_Maps">'."\n";
57 57
   echo '<input type="hidden" name="action" value="map_display">'."\n";
58 58
   foreach (array_keys($_REQUEST) as $key) {
59
-    if (!in_array($key, array('action','module','entryPoint','display_module', 'quick_address'))) {
59
+    if (!in_array($key, array('action', 'module', 'entryPoint', 'display_module', 'quick_address'))) {
60 60
       echo '<input type="hidden" name="'.htmlspecialchars($key).'" value="'.htmlspecialchars($_REQUEST[$key]).'">'."\n";
61 61
     }
62 62
   }
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,7 @@
 block discarded – undo
1 1
 <?php
2
-if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
2
+if(!defined('sugarEntry') || !sugarEntry) {
3
+    die('Not A Valid Entry Point');
4
+}
3 5
 
4 6
 require_once('include/utils.php');
5 7
 require_once('include/export_utils.php');
Please login to merge, or discard this patch.