Completed
Push — master ( 58f496...a833c2 )
by Adam
18:52
created
include/generic/SugarWidgets/SugarWidgetSubPanelCloseButton.php 1 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.
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
 		// calls and meetings are held.
59 59
 		$new_status = 'Held';
60 60
 		
61
-		switch($module_name)
61
+		switch ($module_name)
62 62
 		{
63 63
 			case 'Tasks':
64 64
 				$new_status = 'Completed';
Please login to merge, or discard this patch.
include/generic/SugarWidgets/SugarWidgetSubPanelDeleteButton.php 1 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.
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
 		// calls and meetings are held.
58 58
 		$new_status = 'Held';
59 59
 
60
-		switch($module_name)
60
+		switch ($module_name)
61 61
 		{
62 62
 			case 'Tasks':
63 63
 				$new_status = 'Completed';
@@ -65,12 +65,12 @@  discard block
 block discarded – undo
65 65
 		}
66 66
 		$subpanel = $layout_def['subpanel_id'];
67 67
 		if (isset($layout_def['linked_field_set']) && !empty($layout_def['linked_field_set'])) {
68
-			$linked_field= $layout_def['linked_field_set'] ;
68
+			$linked_field = $layout_def['linked_field_set'];
69 69
 		} else {
70 70
 			$linked_field = $layout_def['linked_field'];
71 71
 		}
72 72
 		$refresh_page = 0;
73
-		if(!empty($layout_def['refresh_page'])){
73
+		if (!empty($layout_def['refresh_page'])) {
74 74
 			$refresh_page = 1;
75 75
 		}
76 76
 
Please login to merge, or discard this patch.
include/generic/SugarWidgets/SugarWidgetFieldurl.php 1 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.
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
     function displayList($layout_def) 
49 49
     {
50 50
         $urlValue = trim($this->_get_list_value($layout_def));
51
-        return '<a target="_blank" href="' . $urlValue . '">' . $urlValue . "</a>";
51
+        return '<a target="_blank" href="'.$urlValue.'">'.$urlValue."</a>";
52 52
     }
53 53
     
54 54
 }
Please login to merge, or discard this patch.
include/generic/SugarWidgets/SugarWidgetFieldimage.php 1 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,6 +45,6 @@  discard block
 block discarded – undo
45 45
 	function displayListPlain($layout_def) {
46 46
 		$value = $this->_get_list_value($layout_def);
47 47
 		return "<a href=\"javascript:SUGAR.image.lightbox('index.php?entryPoint=download&id=$value&type=SugarFieldImage&isTempFile=1')\">"
48
-		       . translate("LBL_VIEW_IMAGE") . '</a>';
48
+		       . translate("LBL_VIEW_IMAGE").'</a>';
49 49
 	}
50 50
 }
51 51
\ No newline at end of file
Please login to merge, or discard this patch.
include/generic/SugarWidgets/SugarWidgetFieldcurrency_id.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
2
+if (!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
3 3
 /*********************************************************************************
4 4
  * SugarCRM Community Edition is a customer relationship management program developed by
5 5
  * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc.
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
         {
82 82
             $currency = new Currency();
83 83
             $currency->retrieve($value);
84
-            $currencies[$value] = $currency->symbol . ' ' . $currency->iso4217;
84
+            $currencies[$value] = $currency->symbol.' '.$currency->iso4217;
85 85
         }
86 86
         return $currencies[$value];
87 87
     }
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
         $list = array();
99 99
         foreach ($tmpList as $bean)
100 100
         {
101
-            $list[$bean->id] = $bean->symbol . ' ' . $bean->iso4217;
101
+            $list[$bean->id] = $bean->symbol.' '.$bean->iso4217;
102 102
         }
103 103
 
104 104
         $field_def = $this->reporter->all_fields[$layout_def['column_key']];
Please login to merge, or discard this patch.
include/generic/SugarWidgets/SugarWidgetSubPanelLoadSignedButton.php 1 patch
Spacing   +17 added lines, -17 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.
@@ -55,27 +55,27 @@  discard block
 block discarded – undo
55 55
 		global $app_strings;
56 56
 		
57 57
 
58
-		$href = 'index.php?module=' . 'Documents'
59
-			. '&action=' . 'EditView'
60
-			. '&record=' . $layout_def['fields']['ID']
61
-			. '&return_module=' . $_REQUEST['module']
62
-			. '&return_action=' . 'DetailView'
63
-			. '&return_id=' . $_REQUEST['record']
64
-			. '&load_signed_id=' . $layout_def['fields']['LINKED_ID']
65
-			. '&parent_id=' . $_REQUEST['record']			
66
-			. '&parent_name=' . $layout_def['fields']['CONTRACT_NAME']			
67
-			. '&parent_type=' . $_REQUEST['module']			
68
-			. '&selected_revision_id=' . $layout_def['fields']['SELECTED_REVISION_ID']	
58
+		$href = 'index.php?module='.'Documents'
59
+			. '&action='.'EditView'
60
+			. '&record='.$layout_def['fields']['ID']
61
+			. '&return_module='.$_REQUEST['module']
62
+			. '&return_action='.'DetailView'
63
+			. '&return_id='.$_REQUEST['record']
64
+			. '&load_signed_id='.$layout_def['fields']['LINKED_ID']
65
+			. '&parent_id='.$_REQUEST['record']			
66
+			. '&parent_name='.$layout_def['fields']['CONTRACT_NAME']			
67
+			. '&parent_type='.$_REQUEST['module']			
68
+			. '&selected_revision_id='.$layout_def['fields']['SELECTED_REVISION_ID']	
69 69
 			;
70 70
 
71
-		$edit_icon_html = SugarThemeRegistry::current()->getImage( 'loadSignedDocument','align="absmiddle" border="0"',null,null,'.gif',$app_strings['LNK_LOAD_SIGNED']);
71
+		$edit_icon_html = SugarThemeRegistry::current()->getImage('loadSignedDocument', 'align="absmiddle" border="0"', null, null, '.gif', $app_strings['LNK_LOAD_SIGNED']);
72 72
 		//if the contract state is executed or document is not a template hide this action.
73
-		if ((!empty($layout_def['fields']['CONTRACT_STATUS']) && $layout_def['fields']['CONTRACT_STATUS']=='executed') or
74
-			empty($layout_def['fields']['IS_TEMPLATE']) or $layout_def['fields']['IS_TEMPLATE']==0) {
73
+		if ((!empty($layout_def['fields']['CONTRACT_STATUS']) && $layout_def['fields']['CONTRACT_STATUS'] == 'executed') or
74
+			empty($layout_def['fields']['IS_TEMPLATE']) or $layout_def['fields']['IS_TEMPLATE'] == 0) {
75 75
 			return "";
76 76
 		}
77
-		return '<a href="' . $href . '"' . "title ='". $app_strings['LNK_LOAD_SIGNED_TOOLTIP']."'"
78
-			. 'class="listViewTdToolsS1">' . $edit_icon_html . '&nbsp;' . $app_strings['LNK_LOAD_SIGNED'] .'</a>&nbsp;';
77
+		return '<a href="'.$href.'"'."title ='".$app_strings['LNK_LOAD_SIGNED_TOOLTIP']."'"
78
+			. 'class="listViewTdToolsS1">'.$edit_icon_html.'&nbsp;'.$app_strings['LNK_LOAD_SIGNED'].'</a>&nbsp;';
79 79
 	}
80 80
 		
81 81
 }
Please login to merge, or discard this patch.
include/generic/SugarWidgets/SugarWidgetFieldbool.php 1 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.
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
 			return "(".$this->_get_column_select($layout_def)." LIKE 'on' OR ".$this->_get_column_select($layout_def)."='1')\n";
52 52
 		} else {
53 53
 			//return "(".$this->_get_column_select($layout_def)." is null OR ".$this->_get_column_select($layout_def)."='0' OR ".$this->_get_column_select($layout_def)."='off')\n";
54
-            return "(".$this->_get_column_select($layout_def)." is null OR ". $this->_get_column_select($layout_def)."='0')\n";            
54
+            return "(".$this->_get_column_select($layout_def)." is null OR ".$this->_get_column_select($layout_def)."='0')\n";            
55 55
 		}
56 56
  }
57 57
 
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
         $key = $this->_get_column_alias($layout_def);
64 64
         $key = strtoupper($key);
65 65
         
66
-        if(empty($layout_def['fields'][$key]))
66
+        if (empty($layout_def['fields'][$key]))
67 67
         {
68 68
             $layout_def['name'] = $name;
69 69
             global $app_list_strings;
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
         }
78 78
 
79 79
         $on_or_off = 'CHECKED';
80
-        if ( empty($value) ||  $value == 'off')
80
+        if (empty($value) || $value == 'off')
81 81
         {
82 82
             $on_or_off = '';
83 83
         }
Please login to merge, or discard this patch.
generic/SugarWidgets/SugarWidgetSubPanelTopCreateAccountNameButton.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
2
+if (!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
3 3
 /*********************************************************************************
4 4
  * SugarCRM Community Edition is a customer relationship management program developed by
5 5
  * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc.
@@ -59,23 +59,23 @@  discard block
 block discarded – undo
59 59
 		//$accesskey = $app_strings['LBL_NEW_BUTTON_KEY'];
60 60
 		$value = $app_strings['LBL_NEW_BUTTON_LABEL'];
61 61
 		$this->module = 'Contacts';
62
-		if( ACLController::moduleSupportsACL($defines['module'])  && !ACLController::checkAccess($defines['module'], 'edit', true)){
62
+		if (ACLController::moduleSupportsACL($defines['module']) && !ACLController::checkAccess($defines['module'], 'edit', true)) {
63 63
 			$button = "<input title='$title'class='button' type='button' name='button' value='  $value  ' disabled/>\n";
64 64
 			return $button;
65 65
 		}
66 66
 		
67 67
 		$additionalFormFields = array();
68
-		if(isset($defines['focus']->billing_address_street)) 
68
+		if (isset($defines['focus']->billing_address_street)) 
69 69
 			$additionalFormFields['primary_address_street'] = $defines['focus']->billing_address_street;
70
-		if(isset($defines['focus']->billing_address_city)) 
70
+		if (isset($defines['focus']->billing_address_city)) 
71 71
 			$additionalFormFields['primary_address_city'] = $defines['focus']->billing_address_city;						  		
72
-		if(isset($defines['focus']->billing_address_state)) 
72
+		if (isset($defines['focus']->billing_address_state)) 
73 73
 			$additionalFormFields['primary_address_state'] = $defines['focus']->billing_address_state;
74
-		if(isset($defines['focus']->billing_address_country)) 
74
+		if (isset($defines['focus']->billing_address_country)) 
75 75
 			$additionalFormFields['primary_address_country'] = $defines['focus']->billing_address_country;
76
-		if(isset($defines['focus']->billing_address_postalcode)) 
76
+		if (isset($defines['focus']->billing_address_postalcode)) 
77 77
 			$additionalFormFields['primary_address_postalcode'] = $defines['focus']->billing_address_postalcode;
78
-		if(isset($defines['focus']->phone_office)) 
78
+		if (isset($defines['focus']->phone_office)) 
79 79
 			$additionalFormFields['phone_work'] = $defines['focus']->phone_office;
80 80
 		
81 81
 		
Please login to merge, or discard this patch.
include/generic/SugarWidgets/SugarWidgetSubPanelRemoveButtonMeetings.php 1 patch
Spacing   +10 added lines, -10 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.
@@ -67,12 +67,12 @@  discard block
 block discarded – undo
67 67
 		$return_id = $_REQUEST['record'];
68 68
 		
69 69
 		
70
-		if(isset($GLOBALS['FOCUS'])) {	
70
+		if (isset($GLOBALS['FOCUS'])) {	
71 71
 			$focus = $GLOBALS['FOCUS'];
72 72
 		}
73 73
 		
74 74
         /* Handle case where we generate subpanels from MySettings/LoadTabSubpanels.php */
75
-        else if($return_module == 'MySettings') {
75
+        else if ($return_module == 'MySettings') {
76 76
         	global $beanList, $beanFiles;
77 77
             $return_module = $_REQUEST['loadModule'];
78 78
             
@@ -86,12 +86,12 @@  discard block
 block discarded – undo
86 86
 		//if($focus->assigned_user_id == $record) return '';
87 87
 		
88 88
 		if (isset($layout_def['linked_field_set']) && !empty($layout_def['linked_field_set'])) {
89
-			$linked_field= $layout_def['linked_field_set'] ;
89
+			$linked_field = $layout_def['linked_field_set'];
90 90
 		} else {
91 91
 			$linked_field = $layout_def['linked_field'];
92 92
 		}
93 93
 		$refresh_page = 0;
94
-		if(!empty($layout_def['refresh_page'])){
94
+		if (!empty($layout_def['refresh_page'])) {
95 95
 			$refresh_page = 1;
96 96
 		}
97 97
 		$return_url = "index.php?module=$return_module&action=$return_action&subpanel=$subpanel&record=$return_id&sugar_body_only=1";
@@ -103,15 +103,15 @@  discard block
 block discarded – undo
103 103
 			. "&record=$parent_record_id"
104 104
 			. "&linked_field=$linked_field"
105 105
 			. "&linked_id=$record"
106
-			. "&return_url=" . urlencode(urlencode($return_url))
106
+			. "&return_url=".urlencode(urlencode($return_url))
107 107
 			. "&refresh_page=$refresh_page"
108 108
 			. $layout_def['end_link_wrapper'];
109 109
 		$remove_confirmation_text = $app_strings['NTC_REMOVE_CONFIRMATION'];
110 110
 		//based on listview since that lets you select records
111
-		if($layout_def['ListView']) {
112
-            return "<a href=\"javascript:sub_p_rem('$subpanel', '$linked_field'" .", '$record', $refresh_page);\""
113
-			        . ' class="listViewTdToolsS1"' . " onclick=\"return sp_rem_conf();\"" . ">$icon_remove_text</a>";
114
-		}else{
111
+		if ($layout_def['ListView']) {
112
+            return "<a href=\"javascript:sub_p_rem('$subpanel', '$linked_field'".", '$record', $refresh_page);\""
113
+			        . ' class="listViewTdToolsS1"'." onclick=\"return sp_rem_conf();\"".">$icon_remove_text</a>";
114
+		} else {
115 115
 			return '';
116 116
 		}
117 117
 	}
Please login to merge, or discard this patch.