Completed
Push — develop ( 7c1bda...edae1e )
by Adam
18:38 queued 03:14
created
include/generic/SugarWidgets/SugarWidgetFieldfloat.php 3 patches
Indentation   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -41,8 +41,8 @@  discard block
 block discarded – undo
41 41
 
42 42
 class SugarWidgetFieldFloat extends SugarWidgetFieldInt
43 43
 {
44
- function displayList($layout_def)
45
- {
44
+    function displayList($layout_def)
45
+    {
46 46
  	
47 47
     $vardef = $this->getVardef($layout_def);
48 48
 
@@ -51,37 +51,37 @@  discard block
 block discarded – undo
51 51
     } else {
52 52
         $precision = null;
53 53
     }
54
-	return format_number(parent::displayListPlain($layout_def), $precision, $precision);
55
- }
54
+    return format_number(parent::displayListPlain($layout_def), $precision, $precision);
55
+    }
56 56
 
57
- function displayListPlain($layout_def)
58
- {
59
-     return $this->displayList($layout_def);
60
- }
61
- function queryFilterEquals(&$layout_def)
62
- {	
57
+    function displayListPlain($layout_def)
58
+    {
59
+        return $this->displayList($layout_def);
60
+    }
61
+    function queryFilterEquals(&$layout_def)
62
+    {	
63 63
     return $this->_get_column_select($layout_def)."= ".$GLOBALS['db']->quote(unformat_number($layout_def['input_name0']))."\n";
64
- }
64
+    }
65 65
                                                                                  
66
- function queryFilterNot_Equals(&$layout_def)
67
- {
68
-	return $this->_get_column_select($layout_def)."!=".$GLOBALS['db']->quote(unformat_number($layout_def['input_name0']))."\n";
69
- }
66
+    function queryFilterNot_Equals(&$layout_def)
67
+    {
68
+    return $this->_get_column_select($layout_def)."!=".$GLOBALS['db']->quote(unformat_number($layout_def['input_name0']))."\n";
69
+    }
70 70
                                                                                  
71
- function queryFilterGreater(&$layout_def)
72
- {
71
+    function queryFilterGreater(&$layout_def)
72
+    {
73 73
     return $this->_get_column_select($layout_def)." > ".$GLOBALS['db']->quote(unformat_number($layout_def['input_name0']))."\n";
74
- }
74
+    }
75 75
                                                                                  
76
- function queryFilterLess(&$layout_def)
77
- {
78
-	return $this->_get_column_select($layout_def)." < ".$GLOBALS['db']->quote(unformat_number($layout_def['input_name0']))."\n";
79
- }
76
+    function queryFilterLess(&$layout_def)
77
+    {
78
+    return $this->_get_column_select($layout_def)." < ".$GLOBALS['db']->quote(unformat_number($layout_def['input_name0']))."\n";
79
+    }
80 80
 
81
- function queryFilterBetween(&$layout_def)
82
- {
83
-	return $this->_get_column_select($layout_def)." BETWEEN ".$GLOBALS['db']->quote(unformat_number($layout_def['input_name0'])). " AND " . $GLOBALS['db']->quote(unformat_number($layout_def['input_name1'])) . "\n";
84
- }
81
+    function queryFilterBetween(&$layout_def)
82
+    {
83
+    return $this->_get_column_select($layout_def)." BETWEEN ".$GLOBALS['db']->quote(unformat_number($layout_def['input_name0'])). " AND " . $GLOBALS['db']->quote(unformat_number($layout_def['input_name1'])) . "\n";
84
+    }
85 85
 
86 86
 
87 87
 }
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
2
+if (!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
3 3
 /*********************************************************************************
4 4
  * SugarCRM Community Edition is a customer relationship management program developed by
5 5
  * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc.
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
  	
47 47
     $vardef = $this->getVardef($layout_def);
48 48
 
49
-    if ( isset($vardef['precision']) ) {
49
+    if (isset($vardef['precision'])) {
50 50
         $precision = $vardef['precision'];
51 51
     } else {
52 52
         $precision = null;
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
 
81 81
  function queryFilterBetween(&$layout_def)
82 82
  {
83
-	return $this->_get_column_select($layout_def)." BETWEEN ".$GLOBALS['db']->quote(unformat_number($layout_def['input_name0'])). " AND " . $GLOBALS['db']->quote(unformat_number($layout_def['input_name1'])) . "\n";
83
+	return $this->_get_column_select($layout_def)." BETWEEN ".$GLOBALS['db']->quote(unformat_number($layout_def['input_name0']))." AND ".$GLOBALS['db']->quote(unformat_number($layout_def['input_name1']))."\n";
84 84
  }
85 85
 
86 86
 
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.
include/generic/SugarWidgets/SugarWidgetFieldsingleenum.php 3 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -51,13 +51,13 @@
 block discarded – undo
51 51
                 $ops = $layout_def['options'];
52 52
             }
53 53
             elseif (isset($layout_def['options']) && isset($app_list_strings[$layout_def['options']])){ 
54
-            	$ops = $app_list_strings[$layout_def['options']];
54
+                $ops = $app_list_strings[$layout_def['options']];
55 55
                 if(array_key_exists('', $app_list_strings[$layout_def['options']])) {
56
-             	   unset($ops['']);
57
-	            }
56
+                    unset($ops['']);
57
+                }
58 58
             }
59 59
             else{
60
-            	$ops = array();
60
+                $ops = array();
61 61
             }
62 62
         }
63 63
         else {
Please login to merge, or discard this patch.
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
  * SugarCRM Community Edition is a customer relationship management program developed by
5 5
  * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc.
@@ -46,17 +46,17 @@  discard block
 block discarded – undo
46 46
     function displayInput(&$layout_def) {
47 47
         global $app_list_strings;
48 48
 
49
-        if(!empty($layout_def['remove_blank']) && $layout_def['remove_blank']) {
50
-            if ( is_array($layout_def['options']) ) {
49
+        if (!empty($layout_def['remove_blank']) && $layout_def['remove_blank']) {
50
+            if (is_array($layout_def['options'])) {
51 51
                 $ops = $layout_def['options'];
52 52
             }
53
-            elseif (isset($layout_def['options']) && isset($app_list_strings[$layout_def['options']])){ 
53
+            elseif (isset($layout_def['options']) && isset($app_list_strings[$layout_def['options']])) { 
54 54
             	$ops = $app_list_strings[$layout_def['options']];
55
-                if(array_key_exists('', $app_list_strings[$layout_def['options']])) {
55
+                if (array_key_exists('', $app_list_strings[$layout_def['options']])) {
56 56
              	   unset($ops['']);
57 57
 	            }
58 58
             }
59
-            else{
59
+            else {
60 60
             	$ops = array();
61 61
             }
62 62
         }
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
             $ops = $app_list_strings[$layout_def['options']];
65 65
         }
66 66
         
67
-        $str = '<select name="' . $layout_def['name'] . '">';
67
+        $str = '<select name="'.$layout_def['name'].'">';
68 68
         $str .= get_select_options_with_id($ops, $layout_def['input_name0']);
69 69
         $str .= '</select>';
70 70
         return $str;
Please login to merge, or discard this patch.
Braces   +6 added lines, -7 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.
@@ -49,18 +51,15 @@  discard block
 block discarded – undo
49 51
         if(!empty($layout_def['remove_blank']) && $layout_def['remove_blank']) {
50 52
             if ( is_array($layout_def['options']) ) {
51 53
                 $ops = $layout_def['options'];
52
-            }
53
-            elseif (isset($layout_def['options']) && isset($app_list_strings[$layout_def['options']])){ 
54
+            } elseif (isset($layout_def['options']) && isset($app_list_strings[$layout_def['options']])){ 
54 55
             	$ops = $app_list_strings[$layout_def['options']];
55 56
                 if(array_key_exists('', $app_list_strings[$layout_def['options']])) {
56 57
              	   unset($ops['']);
57 58
 	            }
58
-            }
59
-            else{
59
+            } else{
60 60
             	$ops = array();
61 61
             }
62
-        }
63
-        else {
62
+        } else {
64 63
             $ops = $app_list_strings[$layout_def['options']];
65 64
         }
66 65
         
Please login to merge, or discard this patch.
generic/SugarWidgets/SugarWidgetSubPanelTopCreateCampaignLogEntryButton.php 2 patches
Spacing   +27 added lines, -27 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.
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
 {
47 47
     public function getWidgetId($buttonSuffix = true)
48 48
     {
49
-        return parent::getWidgetId() . '_select_button';
49
+        return parent::getWidgetId().'_select_button';
50 50
     }
51 51
 
52 52
     function display($widget_data)
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 
60 60
         $this->title = $app_strings['LBL_SELECT_BUTTON_TITLE'];
61 61
         $this->value = $app_strings['LBL_SELECT_BUTTON_LABEL'];
62
-        $this->module = 'Campaigns';//'CampaignLog';
62
+        $this->module = 'Campaigns'; //'CampaignLog';
63 63
         $this->module_name = 'Campaigns';
64 64
 
65 65
 
@@ -68,52 +68,52 @@  discard block
 block discarded – undo
68 68
 
69 69
 
70 70
         $focus = $widget_data['focus'];
71
-        if(ACLController::moduleSupportsACL($widget_data['module']) && !ACLController::checkAccess($widget_data['module'], 'list', true)){
72
-            $button = ' <input type="button" name="' . $this->getWidgetId() . '" id="' . $this->getWidgetId() . '" class="button"' . "\n"
73
-            . ' title="' . $this->title . '"'
74
-            . ' value="' . $this->value . "\"\n"
71
+        if (ACLController::moduleSupportsACL($widget_data['module']) && !ACLController::checkAccess($widget_data['module'], 'list', true)) {
72
+            $button = ' <input type="button" name="'.$this->getWidgetId().'" id="'.$this->getWidgetId().'" class="button"'."\n"
73
+            . ' title="'.$this->title.'"'
74
+            . ' value="'.$this->value."\"\n"
75 75
             .' disabled />';
76 76
             return $button;
77 77
         }
78 78
 
79 79
         //refresh the whole page after end of action?
80 80
         $refresh_page = 0;
81
-        if(!empty($widget_data['subpanel_definition']->_instance_properties['refresh_page'])){
81
+        if (!empty($widget_data['subpanel_definition']->_instance_properties['refresh_page'])) {
82 82
             $refresh_page = 1;
83 83
         }
84 84
 
85 85
         $subpanel_definition = $widget_data['subpanel_definition'];
86 86
         $button_definition = $subpanel_definition->get_buttons();
87
-        $subpanel_name = $this->module;    //"Campaigns";//$subpanel_definition->get_module_name();
87
+        $subpanel_name = $this->module; //"Campaigns";//$subpanel_definition->get_module_name();
88 88
         if (empty($this->module_name)) {
89 89
             $this->module_name = $subpanel_name;
90 90
         }
91 91
         $link_field_name = $subpanel_definition->get_data_source_name(true);
92
-        $popup_mode='multiselect';
93
-        if(isset($widget_data['mode'])){
94
-            $popup_mode=$widget_data['mode'];
92
+        $popup_mode = 'multiselect';
93
+        if (isset($widget_data['mode'])) {
94
+            $popup_mode = $widget_data['mode'];
95 95
         }
96
-        if(isset($widget_data['initial_filter_fields'])){
96
+        if (isset($widget_data['initial_filter_fields'])) {
97 97
             if (is_array($widget_data['initial_filter_fields'])) {
98 98
                 foreach ($widget_data['initial_filter_fields'] as $value=>$alias) {
99 99
                     if (isset($focus->$value) and !empty($focus->$value)) {
100
-                        $initial_filter.="&".$alias . '='.urlencode($focus->$value);
100
+                        $initial_filter .= "&".$alias.'='.urlencode($focus->$value);
101 101
                     }
102 102
                 }
103 103
             }
104 104
         }
105
-        $create="true";
106
-        if(isset($widget_data['create'])){
107
-            $create=$widget_data['create'];
105
+        $create = "true";
106
+        if (isset($widget_data['create'])) {
107
+            $create = $widget_data['create'];
108 108
         }
109 109
         $return_module = $_REQUEST['module'];
110 110
         $return_action = 'SubPanelViewer';
111 111
         $return_id = $_REQUEST['record'];
112 112
 
113 113
         //field_to_name_array
114
-        $fton_array= array('id' => 'subpanel_id');
115
-        if(isset($widget_data['field_to_name_array']) && is_array($widget_data['field_to_name_array'])){
116
-            $fton_array=array_merge($fton_array,$widget_data['field_to_name_array']);
114
+        $fton_array = array('id' => 'subpanel_id');
115
+        if (isset($widget_data['field_to_name_array']) && is_array($widget_data['field_to_name_array'])) {
116
+            $fton_array = array_merge($fton_array, $widget_data['field_to_name_array']);
117 117
         }
118 118
 
119 119
         $return_url = "index.php?module=$return_module&action=$return_action&subpanel=$subpanel_name&record=$return_id&sugar_body_only=1";
@@ -132,20 +132,20 @@  discard block
 block discarded – undo
132 132
         );
133 133
 
134 134
         if (is_array($this->button_properties) && !empty($this->button_properties['add_to_passthru_data'])) {
135
-            $popup_request_data['passthru_data']= array_merge($popup_request_data['passthru_data'],$this->button_properties['add_to_passthru_data']);
135
+            $popup_request_data['passthru_data'] = array_merge($popup_request_data['passthru_data'], $this->button_properties['add_to_passthru_data']);
136 136
         }
137 137
 
138 138
         if (is_array($this->button_properties) && !empty($this->button_properties['add_to_passthru_data']['return_type'])) {
139 139
 
140
-            if ($this->button_properties['add_to_passthru_data']['return_type']=='report') {
141
-                $initial_filter = "&module_name=". urlencode($widget_data['module']);
140
+            if ($this->button_properties['add_to_passthru_data']['return_type'] == 'report') {
141
+                $initial_filter = "&module_name=".urlencode($widget_data['module']);
142 142
             }
143 143
         }
144 144
         $json_encoded_php_array = $this->_create_json_encoded_popup_request($popup_request_data);
145
-        return '<form action="index.php?module=CampaignLog&action=AddCampaignLog&type=contact">' . "\n"
146
-            . ' <input type="button" name="' . $this->getWidgetId() . '_select_button" id="' . $this->getWidgetId() . '" class="button"' . "\n"
147
-                . ' title="' . $this->title . '"'
148
-            . ' value="' . $this->value . "\"\n"
145
+        return '<form action="index.php?module=CampaignLog&action=AddCampaignLog&type=contact">'."\n"
146
+            . ' <input type="button" name="'.$this->getWidgetId().'_select_button" id="'.$this->getWidgetId().'" class="button"'."\n"
147
+                . ' title="'.$this->title.'"'
148
+            . ' value="'.$this->value."\"\n"
149 149
             . " onclick='open_popup(\"$this->module_name\",600,400,\"$initial_filter\",true,true,$json_encoded_php_array,\"$popup_mode\",$create);' /></form>\n";
150 150
     }
151 151
 }
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.
include/generic/SugarWidgets/SugarWidgetSubPanelTopMessage.php 3 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -46,8 +46,8 @@
 block discarded – undo
46 46
 
47 47
 class SugarWidgetSubPanelTopMessage extends SugarWidgetSubPanelTopButton
48 48
 {
49
-	function display($defines)
50
-	{
49
+    function display($defines)
50
+    {
51 51
         return $defines['message'];
52
-	}
52
+    }
53 53
 }
54 54
\ No newline at end of file
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
 /*********************************************************************************
4 4
  * SugarCRM Community Edition is a customer relationship management program developed by
5 5
  * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc.
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.
include/generic/SugarWidgets/SugarWidgetFieldenum.php 3 patches
Indentation   +104 added lines, -104 removed lines patch added patch discarded remove patch
@@ -58,39 +58,39 @@  discard block
 block discarded – undo
58 58
     }
59 59
 
60 60
     public function queryFilteris($layout_def) {
61
-		$input_name0 = $layout_def['input_name0'];
62
-		if (is_array($layout_def['input_name0'])) {
63
-			$input_name0 = $layout_def['input_name0'][0];
64
-		}
65
-		return $this->_get_column_select($layout_def)." = ".$this->reporter->db->quoted($input_name0)."\n";
66
-	}
67
-
68
-	public function queryFilteris_not($layout_def) {
69
-		$input_name0 = $layout_def['input_name0'];
70
-		if (is_array($layout_def['input_name0'])) {
71
-			$input_name0 = $layout_def['input_name0'][0];
72
-		}
73
-		return $this->_get_column_select($layout_def)." <> ".$this->reporter->db->quoted($input_name0)."\n";
74
-	}
75
-
76
-	public function queryFilterone_of($layout_def) {
77
-		$arr = array ();
78
-		foreach ($layout_def['input_name0'] as $value) {
79
-			$arr[] = $this->reporter->db->quoted($value);
80
-		}
81
-		$str = implode(",", $arr);
82
-		return $this->_get_column_select($layout_def)." IN (".$str.")\n";
83
-	}
84
-
85
-	public function queryFilternot_one_of($layout_def) {
86
-		$arr = array ();
87
-		foreach ($layout_def['input_name0'] as $value) {
88
-			$arr[] = $this->reporter->db->quoted($value);
89
-		}
90
-	    $reporter = $this->layout_manager->getAttribute("reporter");
91
-		$str = implode(",", $arr);
92
-		return $this->_get_column_select($layout_def)." NOT IN (".$str.")\n";
93
-	}
61
+        $input_name0 = $layout_def['input_name0'];
62
+        if (is_array($layout_def['input_name0'])) {
63
+            $input_name0 = $layout_def['input_name0'][0];
64
+        }
65
+        return $this->_get_column_select($layout_def)." = ".$this->reporter->db->quoted($input_name0)."\n";
66
+    }
67
+
68
+    public function queryFilteris_not($layout_def) {
69
+        $input_name0 = $layout_def['input_name0'];
70
+        if (is_array($layout_def['input_name0'])) {
71
+            $input_name0 = $layout_def['input_name0'][0];
72
+        }
73
+        return $this->_get_column_select($layout_def)." <> ".$this->reporter->db->quoted($input_name0)."\n";
74
+    }
75
+
76
+    public function queryFilterone_of($layout_def) {
77
+        $arr = array ();
78
+        foreach ($layout_def['input_name0'] as $value) {
79
+            $arr[] = $this->reporter->db->quoted($value);
80
+        }
81
+        $str = implode(",", $arr);
82
+        return $this->_get_column_select($layout_def)." IN (".$str.")\n";
83
+    }
84
+
85
+    public function queryFilternot_one_of($layout_def) {
86
+        $arr = array ();
87
+        foreach ($layout_def['input_name0'] as $value) {
88
+            $arr[] = $this->reporter->db->quoted($value);
89
+        }
90
+        $reporter = $this->layout_manager->getAttribute("reporter");
91
+        $str = implode(",", $arr);
92
+        return $this->_get_column_select($layout_def)." NOT IN (".$str.")\n";
93
+    }
94 94
 
95 95
     function & displayList($layout_def) {
96 96
         if(!empty($layout_def['column_key'])){
@@ -116,84 +116,84 @@  discard block
 block discarded – undo
116 116
                 $field_type = $field_def['type'];
117 117
                 $div_id = $field_def['module'] ."&$record&$field_name";
118 118
                 $str = "<div id='$div_id'>" . $cell . "&nbsp;"
119
-                     . SugarThemeRegistry::current()->getImage(
119
+                        . SugarThemeRegistry::current()->getImage(
120 120
                         "edit_inline",
121 121
                         "border='0' alt='Edit Layout' align='bottom' onClick='SUGAR.reportsInlineEdit.inlineEdit(" .
122 122
                         "\"$div_id\",\"$cell\",\"$module\",\"$record\",\"$field_name\",\"$field_type\");'"
123
-                       )
124
-                     . "</div>";
123
+                        )
124
+                        . "</div>";
125 125
             }
126 126
         }
127 127
         return $str;
128 128
     }
129
-	function & displayListPlain($layout_def) {
130
-		if(!empty($layout_def['column_key'])){
131
-			$field_def = $this->reporter->all_fields[$layout_def['column_key']];
132
-		}else if(!empty($layout_def['fields'])){
133
-			$field_def = $layout_def['fields'];
134
-		}
135
-
136
-		if (!empty($layout_def['table_key'] ) &&( empty ($field_def['fields']) || empty ($field_def['fields'][0]) || empty ($field_def['fields'][1]))){
137
-			$value = $this->_get_list_value($layout_def);
138
-		}else if(!empty($layout_def['name']) && !empty($layout_def['fields'])){
139
-			$key = strtoupper($layout_def['name']);
140
-			$value = $layout_def['fields'][$key];
141
-		}
142
-		$cell = '';
143
-
144
-			if(isset($field_def['options'])){
145
-				$cell = translate($field_def['options'], $field_def['module'], $value);
146
-			}else if(isset($field_def['type']) && $field_def['type'] == 'enum' && isset($field_def['function'])){
147
-	            global $beanFiles;
148
-	            if(empty($beanFiles)) {
149
-	                include('include/modules.php');
150
-	            }
151
-	            $bean_name = get_singular_bean_name($field_def['module']);
152
-	            require_once($beanFiles[$bean_name]);
153
-	            $list = $field_def['function']();
154
-	            $cell = $list[$value];
155
-	        }
156
-		if (is_array($cell)) {
157
-
158
-			//#22632
159
-			$value = unencodeMultienum($value);
160
-			$cell=array();
161
-			foreach($value as $val){
162
-				$returnVal = translate($field_def['options'],$field_def['module'],$val);
163
-				if(!is_array($returnVal)){
164
-					array_push( $cell, translate($field_def['options'],$field_def['module'],$val));
165
-				}
166
-			}
167
-			$cell = implode(", ",$cell);
168
-		}
169
-		return $cell;
170
-	}
171
-
172
-	public function queryOrderBy($layout_def) {
173
-		$field_def = $this->reporter->all_fields[$layout_def['column_key']];
174
-		if (!empty ($field_def['sort_on'])) {
175
-			$order_by = $layout_def['table_alias'].".".$field_def['sort_on'];
176
-		} else {
177
-			$order_by = $this->_get_column_select($layout_def);
178
-		}
179
-		$list = array();
129
+    function & displayListPlain($layout_def) {
130
+        if(!empty($layout_def['column_key'])){
131
+            $field_def = $this->reporter->all_fields[$layout_def['column_key']];
132
+        }else if(!empty($layout_def['fields'])){
133
+            $field_def = $layout_def['fields'];
134
+        }
135
+
136
+        if (!empty($layout_def['table_key'] ) &&( empty ($field_def['fields']) || empty ($field_def['fields'][0]) || empty ($field_def['fields'][1]))){
137
+            $value = $this->_get_list_value($layout_def);
138
+        }else if(!empty($layout_def['name']) && !empty($layout_def['fields'])){
139
+            $key = strtoupper($layout_def['name']);
140
+            $value = $layout_def['fields'][$key];
141
+        }
142
+        $cell = '';
143
+
144
+            if(isset($field_def['options'])){
145
+                $cell = translate($field_def['options'], $field_def['module'], $value);
146
+            }else if(isset($field_def['type']) && $field_def['type'] == 'enum' && isset($field_def['function'])){
147
+                global $beanFiles;
148
+                if(empty($beanFiles)) {
149
+                    include('include/modules.php');
150
+                }
151
+                $bean_name = get_singular_bean_name($field_def['module']);
152
+                require_once($beanFiles[$bean_name]);
153
+                $list = $field_def['function']();
154
+                $cell = $list[$value];
155
+            }
156
+        if (is_array($cell)) {
157
+
158
+            //#22632
159
+            $value = unencodeMultienum($value);
160
+            $cell=array();
161
+            foreach($value as $val){
162
+                $returnVal = translate($field_def['options'],$field_def['module'],$val);
163
+                if(!is_array($returnVal)){
164
+                    array_push( $cell, translate($field_def['options'],$field_def['module'],$val));
165
+                }
166
+            }
167
+            $cell = implode(", ",$cell);
168
+        }
169
+        return $cell;
170
+    }
171
+
172
+    public function queryOrderBy($layout_def) {
173
+        $field_def = $this->reporter->all_fields[$layout_def['column_key']];
174
+        if (!empty ($field_def['sort_on'])) {
175
+            $order_by = $layout_def['table_alias'].".".$field_def['sort_on'];
176
+        } else {
177
+            $order_by = $this->_get_column_select($layout_def);
178
+        }
179
+        $list = array();
180 180
         if(isset($field_def['options'])) {
181
-		    $list = translate($field_def['options'], $field_def['module']);
181
+            $list = translate($field_def['options'], $field_def['module']);
182 182
         } elseif(isset($field_def['type']) && $field_def['type'] == 'enum' && isset($field_def['function'])) {
183
-	        global $beanFiles;
184
-		    if(empty($beanFiles)) {
185
-		        include('include/modules.php');
186
-		    }
187
-		    $bean_name = get_singular_bean_name($field_def['module']);
188
-		    require_once($beanFiles[$bean_name]);
183
+            global $beanFiles;
184
+            if(empty($beanFiles)) {
185
+                include('include/modules.php');
186
+            }
187
+            $bean_name = get_singular_bean_name($field_def['module']);
188
+            require_once($beanFiles[$bean_name]);
189 189
             $list = $field_def['function']();
190 190
         }
191
-		if (empty ($layout_def['sort_dir']) || $layout_def['sort_dir'] == 'a') {
192
-			$order_dir = "ASC";
193
-		} else {
194
-			$order_dir = "DESC";
195
-		}
196
-		return $this->reporter->db->orderByEnum($order_by, $list, $order_dir);
191
+        if (empty ($layout_def['sort_dir']) || $layout_def['sort_dir'] == 'a') {
192
+            $order_dir = "ASC";
193
+        } else {
194
+            $order_dir = "DESC";
195
+        }
196
+        return $this->reporter->db->orderByEnum($order_by, $list, $order_dir);
197 197
     }
198 198
 
199 199
     public function displayInput($layout_def) {
@@ -204,13 +204,13 @@  discard block
 block discarded – undo
204 204
                 $ops = $layout_def['options'];
205 205
             }
206 206
             elseif (isset($layout_def['options']) && isset($app_list_strings[$layout_def['options']])){
207
-            	$ops = $app_list_strings[$layout_def['options']];
207
+                $ops = $app_list_strings[$layout_def['options']];
208 208
                 if(array_key_exists('', $app_list_strings[$layout_def['options']])) {
209
-             	   unset($ops['']);
210
-	            }
209
+                    unset($ops['']);
210
+                }
211 211
             }
212 212
             else{
213
-            	$ops = array();
213
+                $ops = array();
214 214
             }
215 215
         }
216 216
         else {
Please login to merge, or discard this patch.
Spacing   +34 added lines, -34 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
2
+if (!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
3 3
 /*********************************************************************************
4 4
  * SugarCRM Community Edition is a customer relationship management program developed by
5 5
  * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc.
@@ -48,9 +48,9 @@  discard block
 block discarded – undo
48 48
     /**
49 49
      * @deprecated deprecated since version 7.6, PHP4 Style Constructors are deprecated and will be remove in 7.8, please update your code, use __construct instead
50 50
      */
51
-    public function SugarWidgetFieldEnum($layout_manager){
51
+    public function SugarWidgetFieldEnum($layout_manager) {
52 52
         $deprecatedMessage = 'PHP4 Style Constructors are deprecated and will be remove in 7.8, please update your code';
53
-        if(isset($GLOBALS['log'])) {
53
+        if (isset($GLOBALS['log'])) {
54 54
             $GLOBALS['log']->deprecated($deprecatedMessage);
55 55
         }
56 56
         else {
@@ -63,13 +63,13 @@  discard block
 block discarded – undo
63 63
     public function queryFilterEmpty($layout_def)
64 64
     {
65 65
         $column = $this->_get_column_select($layout_def);
66
-        return "(coalesce(" . $this->reporter->db->convert($column, "length") . ",0) = 0 OR $column = '^^')";
66
+        return "(coalesce(".$this->reporter->db->convert($column, "length").",0) = 0 OR $column = '^^')";
67 67
     }
68 68
 
69 69
     public function queryFilterNot_Empty($layout_def)
70 70
     {
71 71
         $column = $this->_get_column_select($layout_def);
72
-        return "(coalesce(" . $this->reporter->db->convert($column, "length") . ",0) > 0 AND $column != '^^' )\n";
72
+        return "(coalesce(".$this->reporter->db->convert($column, "length").",0) > 0 AND $column != '^^' )\n";
73 73
     }
74 74
 
75 75
     public function queryFilteris($layout_def) {
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
 	}
90 90
 
91 91
 	public function queryFilterone_of($layout_def) {
92
-		$arr = array ();
92
+		$arr = array();
93 93
 		foreach ($layout_def['input_name0'] as $value) {
94 94
 			$arr[] = $this->reporter->db->quoted($value);
95 95
 		}
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
 	}
99 99
 
100 100
 	public function queryFilternot_one_of($layout_def) {
101
-		$arr = array ();
101
+		$arr = array();
102 102
 		foreach ($layout_def['input_name0'] as $value) {
103 103
 			$arr[] = $this->reporter->db->quoted($value);
104 104
 		}
@@ -108,9 +108,9 @@  discard block
 block discarded – undo
108 108
 	}
109 109
 
110 110
     function & displayList($layout_def) {
111
-        if(!empty($layout_def['column_key'])){
111
+        if (!empty($layout_def['column_key'])) {
112 112
             $field_def = $this->reporter->all_fields[$layout_def['column_key']];
113
-        }else if(!empty($layout_def['fields'])){
113
+        } else if (!empty($layout_def['fields'])) {
114 114
             $field_def = $layout_def['fields'];
115 115
         }
116 116
         $cell = $this->displayListPlain($layout_def);
@@ -129,11 +129,11 @@  discard block
 block discarded – undo
129 129
                 $record = $layout_def['fields'][$key];
130 130
                 $field_name = $field_def['name'];
131 131
                 $field_type = $field_def['type'];
132
-                $div_id = $field_def['module'] ."&$record&$field_name";
133
-                $str = "<div id='$div_id'>" . $cell . "&nbsp;"
132
+                $div_id = $field_def['module']."&$record&$field_name";
133
+                $str = "<div id='$div_id'>".$cell."&nbsp;"
134 134
                      . SugarThemeRegistry::current()->getImage(
135 135
                         "edit_inline",
136
-                        "border='0' alt='Edit Layout' align='bottom' onClick='SUGAR.reportsInlineEdit.inlineEdit(" .
136
+                        "border='0' alt='Edit Layout' align='bottom' onClick='SUGAR.reportsInlineEdit.inlineEdit(".
137 137
                         "\"$div_id\",\"$cell\",\"$module\",\"$record\",\"$field_name\",\"$field_type\");'"
138 138
                        )
139 139
                      . "</div>";
@@ -142,25 +142,25 @@  discard block
 block discarded – undo
142 142
         return $str;
143 143
     }
144 144
 	function & displayListPlain($layout_def) {
145
-		if(!empty($layout_def['column_key'])){
145
+		if (!empty($layout_def['column_key'])) {
146 146
 			$field_def = $this->reporter->all_fields[$layout_def['column_key']];
147
-		}else if(!empty($layout_def['fields'])){
147
+		} else if (!empty($layout_def['fields'])) {
148 148
 			$field_def = $layout_def['fields'];
149 149
 		}
150 150
 
151
-		if (!empty($layout_def['table_key'] ) &&( empty ($field_def['fields']) || empty ($field_def['fields'][0]) || empty ($field_def['fields'][1]))){
151
+		if (!empty($layout_def['table_key']) && (empty ($field_def['fields']) || empty ($field_def['fields'][0]) || empty ($field_def['fields'][1]))) {
152 152
 			$value = $this->_get_list_value($layout_def);
153
-		}else if(!empty($layout_def['name']) && !empty($layout_def['fields'])){
153
+		} else if (!empty($layout_def['name']) && !empty($layout_def['fields'])) {
154 154
 			$key = strtoupper($layout_def['name']);
155 155
 			$value = $layout_def['fields'][$key];
156 156
 		}
157 157
 		$cell = '';
158 158
 
159
-			if(isset($field_def['options'])){
159
+			if (isset($field_def['options'])) {
160 160
 				$cell = translate($field_def['options'], $field_def['module'], $value);
161
-			}else if(isset($field_def['type']) && $field_def['type'] == 'enum' && isset($field_def['function'])){
161
+			} else if (isset($field_def['type']) && $field_def['type'] == 'enum' && isset($field_def['function'])) {
162 162
 	            global $beanFiles;
163
-	            if(empty($beanFiles)) {
163
+	            if (empty($beanFiles)) {
164 164
 	                include('include/modules.php');
165 165
 	            }
166 166
 	            $bean_name = get_singular_bean_name($field_def['module']);
@@ -172,14 +172,14 @@  discard block
 block discarded – undo
172 172
 
173 173
 			//#22632
174 174
 			$value = unencodeMultienum($value);
175
-			$cell=array();
176
-			foreach($value as $val){
177
-				$returnVal = translate($field_def['options'],$field_def['module'],$val);
178
-				if(!is_array($returnVal)){
179
-					array_push( $cell, translate($field_def['options'],$field_def['module'],$val));
175
+			$cell = array();
176
+			foreach ($value as $val) {
177
+				$returnVal = translate($field_def['options'], $field_def['module'], $val);
178
+				if (!is_array($returnVal)) {
179
+					array_push($cell, translate($field_def['options'], $field_def['module'], $val));
180 180
 				}
181 181
 			}
182
-			$cell = implode(", ",$cell);
182
+			$cell = implode(", ", $cell);
183 183
 		}
184 184
 		return $cell;
185 185
 	}
@@ -192,11 +192,11 @@  discard block
 block discarded – undo
192 192
 			$order_by = $this->_get_column_select($layout_def);
193 193
 		}
194 194
 		$list = array();
195
-        if(isset($field_def['options'])) {
195
+        if (isset($field_def['options'])) {
196 196
 		    $list = translate($field_def['options'], $field_def['module']);
197
-        } elseif(isset($field_def['type']) && $field_def['type'] == 'enum' && isset($field_def['function'])) {
197
+        } elseif (isset($field_def['type']) && $field_def['type'] == 'enum' && isset($field_def['function'])) {
198 198
 	        global $beanFiles;
199
-		    if(empty($beanFiles)) {
199
+		    if (empty($beanFiles)) {
200 200
 		        include('include/modules.php');
201 201
 		    }
202 202
 		    $bean_name = get_singular_bean_name($field_def['module']);
@@ -214,17 +214,17 @@  discard block
 block discarded – undo
214 214
     public function displayInput($layout_def) {
215 215
         global $app_list_strings;
216 216
 
217
-        if(!empty($layout_def['remove_blank']) && $layout_def['remove_blank']) {
218
-            if ( isset($layout_def['options']) &&  is_array($layout_def['options']) ) {
217
+        if (!empty($layout_def['remove_blank']) && $layout_def['remove_blank']) {
218
+            if (isset($layout_def['options']) && is_array($layout_def['options'])) {
219 219
                 $ops = $layout_def['options'];
220 220
             }
221
-            elseif (isset($layout_def['options']) && isset($app_list_strings[$layout_def['options']])){
221
+            elseif (isset($layout_def['options']) && isset($app_list_strings[$layout_def['options']])) {
222 222
             	$ops = $app_list_strings[$layout_def['options']];
223
-                if(array_key_exists('', $app_list_strings[$layout_def['options']])) {
223
+                if (array_key_exists('', $app_list_strings[$layout_def['options']])) {
224 224
              	   unset($ops['']);
225 225
 	            }
226 226
             }
227
-            else{
227
+            else {
228 228
             	$ops = array();
229 229
             }
230 230
         }
@@ -232,7 +232,7 @@  discard block
 block discarded – undo
232 232
             $ops = $app_list_strings[$layout_def['options']];
233 233
         }
234 234
 
235
-        $str = '<select multiple="true" size="3" name="' . $layout_def['name'] . '[]">';
235
+        $str = '<select multiple="true" size="3" name="'.$layout_def['name'].'[]">';
236 236
         $str .= get_select_options_with_id($ops, $layout_def['input_name0']);
237 237
         $str .= '</select>';
238 238
         return $str;
Please login to merge, or discard this patch.
Braces   +11 added lines, -13 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.
@@ -52,8 +54,7 @@  discard block
 block discarded – undo
52 54
         $deprecatedMessage = 'PHP4 Style Constructors are deprecated and will be remove in 7.8, please update your code';
53 55
         if(isset($GLOBALS['log'])) {
54 56
             $GLOBALS['log']->deprecated($deprecatedMessage);
55
-        }
56
-        else {
57
+        } else {
57 58
             trigger_error($deprecatedMessage, E_USER_DEPRECATED);
58 59
         }
59 60
         self::__construct($layout_manager);
@@ -110,7 +111,7 @@  discard block
 block discarded – undo
110 111
     function & displayList($layout_def) {
111 112
         if(!empty($layout_def['column_key'])){
112 113
             $field_def = $this->reporter->all_fields[$layout_def['column_key']];
113
-        }else if(!empty($layout_def['fields'])){
114
+        } else if(!empty($layout_def['fields'])){
114 115
             $field_def = $layout_def['fields'];
115 116
         }
116 117
         $cell = $this->displayListPlain($layout_def);
@@ -144,13 +145,13 @@  discard block
 block discarded – undo
144 145
 	function & displayListPlain($layout_def) {
145 146
 		if(!empty($layout_def['column_key'])){
146 147
 			$field_def = $this->reporter->all_fields[$layout_def['column_key']];
147
-		}else if(!empty($layout_def['fields'])){
148
+		} else if(!empty($layout_def['fields'])){
148 149
 			$field_def = $layout_def['fields'];
149 150
 		}
150 151
 
151 152
 		if (!empty($layout_def['table_key'] ) &&( empty ($field_def['fields']) || empty ($field_def['fields'][0]) || empty ($field_def['fields'][1]))){
152 153
 			$value = $this->_get_list_value($layout_def);
153
-		}else if(!empty($layout_def['name']) && !empty($layout_def['fields'])){
154
+		} else if(!empty($layout_def['name']) && !empty($layout_def['fields'])){
154 155
 			$key = strtoupper($layout_def['name']);
155 156
 			$value = $layout_def['fields'][$key];
156 157
 		}
@@ -158,7 +159,7 @@  discard block
 block discarded – undo
158 159
 
159 160
 			if(isset($field_def['options'])){
160 161
 				$cell = translate($field_def['options'], $field_def['module'], $value);
161
-			}else if(isset($field_def['type']) && $field_def['type'] == 'enum' && isset($field_def['function'])){
162
+			} else if(isset($field_def['type']) && $field_def['type'] == 'enum' && isset($field_def['function'])){
162 163
 	            global $beanFiles;
163 164
 	            if(empty($beanFiles)) {
164 165
 	                include('include/modules.php');
@@ -217,18 +218,15 @@  discard block
 block discarded – undo
217 218
         if(!empty($layout_def['remove_blank']) && $layout_def['remove_blank']) {
218 219
             if ( isset($layout_def['options']) &&  is_array($layout_def['options']) ) {
219 220
                 $ops = $layout_def['options'];
220
-            }
221
-            elseif (isset($layout_def['options']) && isset($app_list_strings[$layout_def['options']])){
221
+            } elseif (isset($layout_def['options']) && isset($app_list_strings[$layout_def['options']])){
222 222
             	$ops = $app_list_strings[$layout_def['options']];
223 223
                 if(array_key_exists('', $app_list_strings[$layout_def['options']])) {
224 224
              	   unset($ops['']);
225 225
 	            }
226
-            }
227
-            else{
226
+            } else{
228 227
             	$ops = array();
229 228
             }
230
-        }
231
-        else {
229
+        } else {
232 230
             $ops = $app_list_strings[$layout_def['options']];
233 231
         }
234 232
 
Please login to merge, or discard this patch.
include/generic/SugarWidgets/SugarWidgetSubPanelEditRoleButton.php 3 patches
Indentation   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -45,33 +45,33 @@
 block discarded – undo
45 45
 
46 46
 class SugarWidgetSubPanelEditRoleButton extends SugarWidgetField
47 47
 {
48
-	function displayHeaderCell(&$layout_def)
49
-	{
50
-		return '&nbsp;';
51
-	}
48
+    function displayHeaderCell(&$layout_def)
49
+    {
50
+        return '&nbsp;';
51
+    }
52 52
 
53
-	function displayList(&$layout_def)
54
-	{
55
-		global $app_strings;
53
+    function displayList(&$layout_def)
54
+    {
55
+        global $app_strings;
56 56
         global $subpanel_item_count;
57 57
         $unique_id = $layout_def['subpanel_id']."_edit_".$subpanel_item_count; //bug 51512
58 58
 	
59
-		$href = 'index.php?module=' . $layout_def['module']
60
-			. '&action=' . 'ContactOpportunityRelationshipEdit'
61
-			. '&record=' . $layout_def['fields']['OPPORTUNITY_ROLE_ID']
62
-			. '&return_module=' . $_REQUEST['module']
63
-			. '&return_action=' . 'DetailView'
64
-			. '&return_id=' . $_REQUEST['record'];
59
+        $href = 'index.php?module=' . $layout_def['module']
60
+            . '&action=' . 'ContactOpportunityRelationshipEdit'
61
+            . '&record=' . $layout_def['fields']['OPPORTUNITY_ROLE_ID']
62
+            . '&return_module=' . $_REQUEST['module']
63
+            . '&return_action=' . 'DetailView'
64
+            . '&return_id=' . $_REQUEST['record'];
65 65
 			
66
-	//based on listview since that lets you select records
67
-	if($layout_def['ListView']){
68
-		return '<a href="' . $href . '"'
66
+    //based on listview since that lets you select records
67
+    if($layout_def['ListView']){
68
+        return '<a href="' . $href . '"'
69 69
             . "id=\"$unique_id\""
70
-			. 'class="listViewTdToolsS1">' . $app_strings['LNK_EDIT'] .'</a>&nbsp;';
71
-	}else{
72
-		return '';
73
-	}
74
-	}
70
+            . 'class="listViewTdToolsS1">' . $app_strings['LNK_EDIT'] .'</a>&nbsp;';
71
+    }else{
72
+        return '';
73
+    }
74
+    }
75 75
 }
76 76
 
77 77
 ?>
78 78
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +11 added lines, -11 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.
@@ -56,19 +56,19 @@  discard block
 block discarded – undo
56 56
         global $subpanel_item_count;
57 57
         $unique_id = $layout_def['subpanel_id']."_edit_".$subpanel_item_count; //bug 51512
58 58
 	
59
-		$href = 'index.php?module=' . $layout_def['module']
60
-			. '&action=' . 'ContactOpportunityRelationshipEdit'
61
-			. '&record=' . $layout_def['fields']['OPPORTUNITY_ROLE_ID']
62
-			. '&return_module=' . $_REQUEST['module']
63
-			. '&return_action=' . 'DetailView'
64
-			. '&return_id=' . $_REQUEST['record'];
59
+		$href = 'index.php?module='.$layout_def['module']
60
+			. '&action='.'ContactOpportunityRelationshipEdit'
61
+			. '&record='.$layout_def['fields']['OPPORTUNITY_ROLE_ID']
62
+			. '&return_module='.$_REQUEST['module']
63
+			. '&return_action='.'DetailView'
64
+			. '&return_id='.$_REQUEST['record'];
65 65
 			
66 66
 	//based on listview since that lets you select records
67
-	if($layout_def['ListView']){
68
-		return '<a href="' . $href . '"'
67
+	if ($layout_def['ListView']) {
68
+		return '<a href="'.$href.'"'
69 69
             . "id=\"$unique_id\""
70
-			. 'class="listViewTdToolsS1">' . $app_strings['LNK_EDIT'] .'</a>&nbsp;';
71
-	}else{
70
+			. 'class="listViewTdToolsS1">'.$app_strings['LNK_EDIT'].'</a>&nbsp;';
71
+	} else {
72 72
 		return '';
73 73
 	}
74 74
 	}
Please login to merge, or discard this patch.
Braces   +4 added lines, -2 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.
@@ -68,7 +70,7 @@  discard block
 block discarded – undo
68 70
 		return '<a href="' . $href . '"'
69 71
             . "id=\"$unique_id\""
70 72
 			. 'class="listViewTdToolsS1">' . $app_strings['LNK_EDIT'] .'</a>&nbsp;';
71
-	}else{
73
+	} else{
72 74
 		return '';
73 75
 	}
74 76
 	}
Please login to merge, or discard this patch.
include/generic/SugarWidgets/SugarWidgetSubPanelTopCreateNoteButton.php 3 patches
Indentation   +115 added lines, -115 removed lines patch added patch discarded remove patch
@@ -45,121 +45,121 @@
 block discarded – undo
45 45
 
46 46
 class SugarWidgetSubPanelTopCreateNoteButton extends SugarWidgetSubPanelTopButtonQuickCreate
47 47
 {
48
-	function &_get_form($defines, $additionalFormFields = null, $asUrl = false)
49
-	{
50
-		global $app_strings;
51
-		global $currentModule;
52
-
53
-		$this->module="Notes";
54
-		$this->subpanelDiv = "history";
55
-
56
-		// Create the additional form fields with real values if they were not passed in
57
-		if(empty($additionalFormFields) && $this->additional_form_fields)
58
-		{
59
-			foreach($this->additional_form_fields as $key=>$value)
60
-			{
61
-				if(!empty($defines['focus']->$value))
62
-				{
63
-					$additionalFormFields[$key] = $defines['focus']->$value;
64
-				}
65
-				else
66
-				{
67
-					$additionalFormFields[$key] = '';
68
-				}
69
-			}
70
-		}
71
-
72
-		if(!empty($this->module))
73
-		{
74
-			$defines['child_module_name'] = $this->module;
75
-		}
76
-		else
77
-		{
78
-			$defines['child_module_name'] = $defines['module'];
79
-		}
80
-
81
-		if(!empty($this->subpanelDiv))
82
-		{
83
-			$defines['subpanelDiv'] = $this->subpanelDiv;
84
-		}
85
-
86
-		$defines['parent_bean_name'] = get_class( $defines['focus']);
87
-
88
-		$form = 'form' . $defines['child_module_name'];
89
-		$button = '<form onsubmit="return SUGAR.subpanelUtils.sendAndRetrieve(this.id, \'subpanel_' . strtolower($defines['subpanelDiv']) . '\', \'' . addslashes($app_strings['LBL_LOADING']) . '\');" action="index.php" method="post" name="form" id="form' . $form . "\">\n";
90
-
91
-		//module_button is used to override the value of module name
92
-		$button .= "<input type='hidden' name='target_module' value='".$defines['child_module_name']."'>\n";
93
-		$button .= "<input type='hidden' name='".strtolower($defines['parent_bean_name'])."_id' value='".$defines['focus']->id."'>\n";
94
-
95
-		if(isset($defines['focus']->name))
96
-		{
97
-			$button .= "<input type='hidden' name='".strtolower($defines['parent_bean_name'])."_name' value='".$defines['focus']->name."'>";
98
-		}
99
-
100
-		$button .= '<input type="hidden" name="to_pdf" value="true" />';
48
+    function &_get_form($defines, $additionalFormFields = null, $asUrl = false)
49
+    {
50
+        global $app_strings;
51
+        global $currentModule;
52
+
53
+        $this->module="Notes";
54
+        $this->subpanelDiv = "history";
55
+
56
+        // Create the additional form fields with real values if they were not passed in
57
+        if(empty($additionalFormFields) && $this->additional_form_fields)
58
+        {
59
+            foreach($this->additional_form_fields as $key=>$value)
60
+            {
61
+                if(!empty($defines['focus']->$value))
62
+                {
63
+                    $additionalFormFields[$key] = $defines['focus']->$value;
64
+                }
65
+                else
66
+                {
67
+                    $additionalFormFields[$key] = '';
68
+                }
69
+            }
70
+        }
71
+
72
+        if(!empty($this->module))
73
+        {
74
+            $defines['child_module_name'] = $this->module;
75
+        }
76
+        else
77
+        {
78
+            $defines['child_module_name'] = $defines['module'];
79
+        }
80
+
81
+        if(!empty($this->subpanelDiv))
82
+        {
83
+            $defines['subpanelDiv'] = $this->subpanelDiv;
84
+        }
85
+
86
+        $defines['parent_bean_name'] = get_class( $defines['focus']);
87
+
88
+        $form = 'form' . $defines['child_module_name'];
89
+        $button = '<form onsubmit="return SUGAR.subpanelUtils.sendAndRetrieve(this.id, \'subpanel_' . strtolower($defines['subpanelDiv']) . '\', \'' . addslashes($app_strings['LBL_LOADING']) . '\');" action="index.php" method="post" name="form" id="form' . $form . "\">\n";
90
+
91
+        //module_button is used to override the value of module name
92
+        $button .= "<input type='hidden' name='target_module' value='".$defines['child_module_name']."'>\n";
93
+        $button .= "<input type='hidden' name='".strtolower($defines['parent_bean_name'])."_id' value='".$defines['focus']->id."'>\n";
94
+
95
+        if(isset($defines['focus']->name))
96
+        {
97
+            $button .= "<input type='hidden' name='".strtolower($defines['parent_bean_name'])."_name' value='".$defines['focus']->name."'>";
98
+        }
99
+
100
+        $button .= '<input type="hidden" name="to_pdf" value="true" />';
101 101
         $button .= '<input type="hidden" name="tpl" value="QuickCreate.tpl" />';
102
-		$button .= '<input type="hidden" name="return_module" value="' . $currentModule . "\" />\n";
103
-		$button .= '<input type="hidden" name="return_action" value="' . $defines['action'] . "\" />\n";
104
-		$button .= '<input type="hidden" name="return_id" value="' . $defines['focus']->id . "\" />\n";
105
-		$button .= '<input type="hidden" name="record" value="" />';
106
-
107
-		// TODO: move this out and get $additionalFormFields working properly
108
-		if(empty($additionalFormFields['parent_type']))
109
-		{
110
-			if($defines['focus']->object_name=='Contact') {
111
-				$additionalFormFields['parent_type'] = 'Accounts';
112
-			}
113
-			else {
114
-				$additionalFormFields['parent_type'] = $defines['focus']->module_dir;
115
-			}
116
-		}
117
-		if(empty($additionalFormFields['parent_name']))
118
-		{
119
-			if($defines['focus']->object_name=='Contact') {
120
-				$additionalFormFields['parent_name'] = $defines['focus']->account_name;
121
-				$additionalFormFields['account_name'] = $defines['focus']->account_name;
122
-			}
123
-			else {
124
-				$additionalFormFields['parent_name'] = $defines['focus']->name;
125
-			}
126
-		}
127
-		if(empty($additionalFormFields['parent_id']))
128
-		{
129
-			if($defines['focus']->object_name=='Contact') {
130
-				$additionalFormFields['parent_id'] = $defines['focus']->account_id;
131
-				$additionalFormFields['account_id'] = $defines['focus']->account_id;
132
-			}
133
-			else {
134
-				$additionalFormFields['parent_id'] = $defines['focus']->id;
135
-			}
136
-		}
137
-
138
-		$button .= '<input type="hidden" name="action" value="SubpanelCreates" />' . "\n";
139
-		$button .= '<input type="hidden" name="module" value="Home" />' . "\n";
140
-		$button .= '<input type="hidden" name="target_action" value="QuickCreate" />' . "\n";
141
-
142
-		// fill in additional form fields for all but action
143
-		foreach($additionalFormFields as $key => $value)
144
-		{
145
-			if($key != 'action')
146
-			{
147
-				$button .= '<input type="hidden" name="' . $key . '" value="' . $value . '" />' . "\n";
148
-			}
149
-		}
150
-
151
-		return $button;
152
-	}
153
-
154
-
155
-	function display($defines, $additionalFormFields = null, $nonbutton = false)
156
-	{
157
-	    $focus = new Note;
158
-		if ( !$focus->ACLAccess('EditView') ) {
159
-		    return '';
160
-	    }
161
-
162
-		return parent::display($defines, $additionalFormFields);
163
-	}
102
+        $button .= '<input type="hidden" name="return_module" value="' . $currentModule . "\" />\n";
103
+        $button .= '<input type="hidden" name="return_action" value="' . $defines['action'] . "\" />\n";
104
+        $button .= '<input type="hidden" name="return_id" value="' . $defines['focus']->id . "\" />\n";
105
+        $button .= '<input type="hidden" name="record" value="" />';
106
+
107
+        // TODO: move this out and get $additionalFormFields working properly
108
+        if(empty($additionalFormFields['parent_type']))
109
+        {
110
+            if($defines['focus']->object_name=='Contact') {
111
+                $additionalFormFields['parent_type'] = 'Accounts';
112
+            }
113
+            else {
114
+                $additionalFormFields['parent_type'] = $defines['focus']->module_dir;
115
+            }
116
+        }
117
+        if(empty($additionalFormFields['parent_name']))
118
+        {
119
+            if($defines['focus']->object_name=='Contact') {
120
+                $additionalFormFields['parent_name'] = $defines['focus']->account_name;
121
+                $additionalFormFields['account_name'] = $defines['focus']->account_name;
122
+            }
123
+            else {
124
+                $additionalFormFields['parent_name'] = $defines['focus']->name;
125
+            }
126
+        }
127
+        if(empty($additionalFormFields['parent_id']))
128
+        {
129
+            if($defines['focus']->object_name=='Contact') {
130
+                $additionalFormFields['parent_id'] = $defines['focus']->account_id;
131
+                $additionalFormFields['account_id'] = $defines['focus']->account_id;
132
+            }
133
+            else {
134
+                $additionalFormFields['parent_id'] = $defines['focus']->id;
135
+            }
136
+        }
137
+
138
+        $button .= '<input type="hidden" name="action" value="SubpanelCreates" />' . "\n";
139
+        $button .= '<input type="hidden" name="module" value="Home" />' . "\n";
140
+        $button .= '<input type="hidden" name="target_action" value="QuickCreate" />' . "\n";
141
+
142
+        // fill in additional form fields for all but action
143
+        foreach($additionalFormFields as $key => $value)
144
+        {
145
+            if($key != 'action')
146
+            {
147
+                $button .= '<input type="hidden" name="' . $key . '" value="' . $value . '" />' . "\n";
148
+            }
149
+        }
150
+
151
+        return $button;
152
+    }
153
+
154
+
155
+    function display($defines, $additionalFormFields = null, $nonbutton = false)
156
+    {
157
+        $focus = new Note;
158
+        if ( !$focus->ACLAccess('EditView') ) {
159
+            return '';
160
+        }
161
+
162
+        return parent::display($defines, $additionalFormFields);
163
+    }
164 164
 }
165 165
 ?>
Please login to merge, or discard this patch.
Spacing   +27 added lines, -27 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.
@@ -50,15 +50,15 @@  discard block
 block discarded – undo
50 50
 		global $app_strings;
51 51
 		global $currentModule;
52 52
 
53
-		$this->module="Notes";
53
+		$this->module = "Notes";
54 54
 		$this->subpanelDiv = "history";
55 55
 
56 56
 		// Create the additional form fields with real values if they were not passed in
57
-		if(empty($additionalFormFields) && $this->additional_form_fields)
57
+		if (empty($additionalFormFields) && $this->additional_form_fields)
58 58
 		{
59
-			foreach($this->additional_form_fields as $key=>$value)
59
+			foreach ($this->additional_form_fields as $key=>$value)
60 60
 			{
61
-				if(!empty($defines['focus']->$value))
61
+				if (!empty($defines['focus']->$value))
62 62
 				{
63 63
 					$additionalFormFields[$key] = $defines['focus']->$value;
64 64
 				}
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
 			}
70 70
 		}
71 71
 
72
-		if(!empty($this->module))
72
+		if (!empty($this->module))
73 73
 		{
74 74
 			$defines['child_module_name'] = $this->module;
75 75
 		}
@@ -78,45 +78,45 @@  discard block
 block discarded – undo
78 78
 			$defines['child_module_name'] = $defines['module'];
79 79
 		}
80 80
 
81
-		if(!empty($this->subpanelDiv))
81
+		if (!empty($this->subpanelDiv))
82 82
 		{
83 83
 			$defines['subpanelDiv'] = $this->subpanelDiv;
84 84
 		}
85 85
 
86
-		$defines['parent_bean_name'] = get_class( $defines['focus']);
86
+		$defines['parent_bean_name'] = get_class($defines['focus']);
87 87
 
88
-		$form = 'form' . $defines['child_module_name'];
89
-		$button = '<form onsubmit="return SUGAR.subpanelUtils.sendAndRetrieve(this.id, \'subpanel_' . strtolower($defines['subpanelDiv']) . '\', \'' . addslashes($app_strings['LBL_LOADING']) . '\');" action="index.php" method="post" name="form" id="form' . $form . "\">\n";
88
+		$form = 'form'.$defines['child_module_name'];
89
+		$button = '<form onsubmit="return SUGAR.subpanelUtils.sendAndRetrieve(this.id, \'subpanel_'.strtolower($defines['subpanelDiv']).'\', \''.addslashes($app_strings['LBL_LOADING']).'\');" action="index.php" method="post" name="form" id="form'.$form."\">\n";
90 90
 
91 91
 		//module_button is used to override the value of module name
92 92
 		$button .= "<input type='hidden' name='target_module' value='".$defines['child_module_name']."'>\n";
93 93
 		$button .= "<input type='hidden' name='".strtolower($defines['parent_bean_name'])."_id' value='".$defines['focus']->id."'>\n";
94 94
 
95
-		if(isset($defines['focus']->name))
95
+		if (isset($defines['focus']->name))
96 96
 		{
97 97
 			$button .= "<input type='hidden' name='".strtolower($defines['parent_bean_name'])."_name' value='".$defines['focus']->name."'>";
98 98
 		}
99 99
 
100 100
 		$button .= '<input type="hidden" name="to_pdf" value="true" />';
101 101
         $button .= '<input type="hidden" name="tpl" value="QuickCreate.tpl" />';
102
-		$button .= '<input type="hidden" name="return_module" value="' . $currentModule . "\" />\n";
103
-		$button .= '<input type="hidden" name="return_action" value="' . $defines['action'] . "\" />\n";
104
-		$button .= '<input type="hidden" name="return_id" value="' . $defines['focus']->id . "\" />\n";
102
+		$button .= '<input type="hidden" name="return_module" value="'.$currentModule."\" />\n";
103
+		$button .= '<input type="hidden" name="return_action" value="'.$defines['action']."\" />\n";
104
+		$button .= '<input type="hidden" name="return_id" value="'.$defines['focus']->id."\" />\n";
105 105
 		$button .= '<input type="hidden" name="record" value="" />';
106 106
 
107 107
 		// TODO: move this out and get $additionalFormFields working properly
108
-		if(empty($additionalFormFields['parent_type']))
108
+		if (empty($additionalFormFields['parent_type']))
109 109
 		{
110
-			if($defines['focus']->object_name=='Contact') {
110
+			if ($defines['focus']->object_name == 'Contact') {
111 111
 				$additionalFormFields['parent_type'] = 'Accounts';
112 112
 			}
113 113
 			else {
114 114
 				$additionalFormFields['parent_type'] = $defines['focus']->module_dir;
115 115
 			}
116 116
 		}
117
-		if(empty($additionalFormFields['parent_name']))
117
+		if (empty($additionalFormFields['parent_name']))
118 118
 		{
119
-			if($defines['focus']->object_name=='Contact') {
119
+			if ($defines['focus']->object_name == 'Contact') {
120 120
 				$additionalFormFields['parent_name'] = $defines['focus']->account_name;
121 121
 				$additionalFormFields['account_name'] = $defines['focus']->account_name;
122 122
 			}
@@ -124,9 +124,9 @@  discard block
 block discarded – undo
124 124
 				$additionalFormFields['parent_name'] = $defines['focus']->name;
125 125
 			}
126 126
 		}
127
-		if(empty($additionalFormFields['parent_id']))
127
+		if (empty($additionalFormFields['parent_id']))
128 128
 		{
129
-			if($defines['focus']->object_name=='Contact') {
129
+			if ($defines['focus']->object_name == 'Contact') {
130 130
 				$additionalFormFields['parent_id'] = $defines['focus']->account_id;
131 131
 				$additionalFormFields['account_id'] = $defines['focus']->account_id;
132 132
 			}
@@ -135,16 +135,16 @@  discard block
 block discarded – undo
135 135
 			}
136 136
 		}
137 137
 
138
-		$button .= '<input type="hidden" name="action" value="SubpanelCreates" />' . "\n";
139
-		$button .= '<input type="hidden" name="module" value="Home" />' . "\n";
140
-		$button .= '<input type="hidden" name="target_action" value="QuickCreate" />' . "\n";
138
+		$button .= '<input type="hidden" name="action" value="SubpanelCreates" />'."\n";
139
+		$button .= '<input type="hidden" name="module" value="Home" />'."\n";
140
+		$button .= '<input type="hidden" name="target_action" value="QuickCreate" />'."\n";
141 141
 
142 142
 		// fill in additional form fields for all but action
143
-		foreach($additionalFormFields as $key => $value)
143
+		foreach ($additionalFormFields as $key => $value)
144 144
 		{
145
-			if($key != 'action')
145
+			if ($key != 'action')
146 146
 			{
147
-				$button .= '<input type="hidden" name="' . $key . '" value="' . $value . '" />' . "\n";
147
+				$button .= '<input type="hidden" name="'.$key.'" value="'.$value.'" />'."\n";
148 148
 			}
149 149
 		}
150 150
 
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
 	function display($defines, $additionalFormFields = null, $nonbutton = false)
156 156
 	{
157 157
 	    $focus = new Note;
158
-		if ( !$focus->ACLAccess('EditView') ) {
158
+		if (!$focus->ACLAccess('EditView')) {
159 159
 		    return '';
160 160
 	    }
161 161
 
Please login to merge, or discard this patch.
Braces   +8 added lines, -11 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.
@@ -61,8 +63,7 @@  discard block
 block discarded – undo
61 63
 				if(!empty($defines['focus']->$value))
62 64
 				{
63 65
 					$additionalFormFields[$key] = $defines['focus']->$value;
64
-				}
65
-				else
66
+				} else
66 67
 				{
67 68
 					$additionalFormFields[$key] = '';
68 69
 				}
@@ -72,8 +73,7 @@  discard block
 block discarded – undo
72 73
 		if(!empty($this->module))
73 74
 		{
74 75
 			$defines['child_module_name'] = $this->module;
75
-		}
76
-		else
76
+		} else
77 77
 		{
78 78
 			$defines['child_module_name'] = $defines['module'];
79 79
 		}
@@ -109,8 +109,7 @@  discard block
 block discarded – undo
109 109
 		{
110 110
 			if($defines['focus']->object_name=='Contact') {
111 111
 				$additionalFormFields['parent_type'] = 'Accounts';
112
-			}
113
-			else {
112
+			} else {
114 113
 				$additionalFormFields['parent_type'] = $defines['focus']->module_dir;
115 114
 			}
116 115
 		}
@@ -119,8 +118,7 @@  discard block
 block discarded – undo
119 118
 			if($defines['focus']->object_name=='Contact') {
120 119
 				$additionalFormFields['parent_name'] = $defines['focus']->account_name;
121 120
 				$additionalFormFields['account_name'] = $defines['focus']->account_name;
122
-			}
123
-			else {
121
+			} else {
124 122
 				$additionalFormFields['parent_name'] = $defines['focus']->name;
125 123
 			}
126 124
 		}
@@ -129,8 +127,7 @@  discard block
 block discarded – undo
129 127
 			if($defines['focus']->object_name=='Contact') {
130 128
 				$additionalFormFields['parent_id'] = $defines['focus']->account_id;
131 129
 				$additionalFormFields['account_id'] = $defines['focus']->account_id;
132
-			}
133
-			else {
130
+			} else {
134 131
 				$additionalFormFields['parent_id'] = $defines['focus']->id;
135 132
 			}
136 133
 		}
Please login to merge, or discard this patch.
include/generic/SugarWidgets/SugarWidgetFieldtext.php 3 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
     function queryFilterEquals($layout_def)
51 51
     {
52 52
         return $this->reporter->db->convert($this->_get_column_select($layout_def), "text2char").
53
-        	" = ".$this->reporter->db->quoted($layout_def['input_name0']);
53
+            " = ".$this->reporter->db->quoted($layout_def['input_name0']);
54 54
     }
55 55
 
56 56
     function queryFilterNot_Equals_Str($layout_def)
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 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.
@@ -50,9 +50,9 @@  discard block
 block discarded – undo
50 50
     /**
51 51
      * @deprecated deprecated since version 7.6, PHP4 Style Constructors are deprecated and will be remove in 7.8, please update your code, use __construct instead
52 52
      */
53
-    function SugarWidgetFieldText(&$layout_manager){
53
+    function SugarWidgetFieldText(&$layout_manager) {
54 54
         $deprecatedMessage = 'PHP4 Style Constructors are deprecated and will be remove in 7.8, please update your code';
55
-        if(isset($GLOBALS['log'])) {
55
+        if (isset($GLOBALS['log'])) {
56 56
             $GLOBALS['log']->deprecated($deprecatedMessage);
57 57
         }
58 58
         else {
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
     function queryFilterNot_Equals_Str($layout_def)
72 72
     {
73 73
         $column = $this->_get_column_select($layout_def);
74
-        return "($column IS NULL OR ". $this->reporter->db->convert($column, "text2char")." != ".
74
+        return "($column IS NULL OR ".$this->reporter->db->convert($column, "text2char")." != ".
75 75
             $this->reporter->db->quoted($layout_def['input_name0']).")";
76 76
     }
77 77
 
Please login to merge, or discard this patch.
Braces   +4 added lines, -3 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.
@@ -50,8 +52,7 @@  discard block
 block discarded – undo
50 52
         $deprecatedMessage = 'PHP4 Style Constructors are deprecated and will be remove in 7.8, please update your code';
51 53
         if(isset($GLOBALS['log'])) {
52 54
             $GLOBALS['log']->deprecated($deprecatedMessage);
53
-        }
54
-        else {
55
+        } else {
55 56
             trigger_error($deprecatedMessage, E_USER_DEPRECATED);
56 57
         }
57 58
         self::__construct($layout_manager);
Please login to merge, or discard this patch.
include/generic/SugarWidgets/SugarWidgetSubPanelTopSelectAccountButton.php 3 patches
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -44,21 +44,21 @@
 block discarded – undo
44 44
 
45 45
 
46 46
 class SugarWidgetSubPanelTopSelectAccountButton extends SugarWidgetSubPanelTopSelectButton {
47
-	function display($widget_data, $additionalFormFields = NULL, $nonbutton = false)
48
-	{
49
-		/*
47
+    function display($widget_data, $additionalFormFields = NULL, $nonbutton = false)
48
+    {
49
+        /*
50 50
 		* i.dymovsky
51 51
 		* Because when user role can't edit Accounts, it also can't edit Membership Organizations. Select button leads to change MO list
52 52
 		* See bug 25633
53 53
 		* Bug25633 code change start
54 54
 		*/
55
-		if (!ACLController::checkAccess($widget_data["module"], "edit", true)) {
56
-			return ;
57
-		}
58
-		/*
55
+        if (!ACLController::checkAccess($widget_data["module"], "edit", true)) {
56
+            return ;
57
+        }
58
+        /*
59 59
 		* Bug25633 code change end
60 60
 		*/
61 61
 		
62
-		return parent::display($widget_data);
63
-	}
62
+        return parent::display($widget_data);
63
+    }
64 64
 }
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.
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 		* Bug25633 code change start
54 54
 		*/
55 55
 		if (!ACLController::checkAccess($widget_data["module"], "edit", true)) {
56
-			return ;
56
+			return;
57 57
 		}
58 58
 		/*
59 59
 		* Bug25633 code change end
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.