Passed
Push — scrutinizer-code-quality ( 27193c...09f5a1 )
by Adam
51:28
created
modules/Calls/metadata/additionalDetails.php 3 patches
Indentation   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -41,11 +41,11 @@  discard block
 block discarded – undo
41 41
 
42 42
 function additionalDetailsCall($fields) {
43 43
     global $timedate;
44
-	static $mod_strings;
45
-	if(empty($mod_strings)) {
46
-		global $current_language;
47
-		$mod_strings = return_module_language($current_language, 'Calls');
48
-	}
44
+    static $mod_strings;
45
+    if(empty($mod_strings)) {
46
+        global $current_language;
47
+        $mod_strings = return_module_language($current_language, 'Calls');
48
+    }
49 49
     $overlib_string = '';
50 50
     $overlib_string .= '<input id="type" type="hidden" value="Call"/>';
51 51
 
@@ -56,20 +56,20 @@  discard block
 block discarded – undo
56 56
 
57 57
     $overlib_string .= '<h2><img src="index.php?entryPoint=getImage&themeName=' . SugarThemeRegistry::current()->name .'&imageName=Calls.gif"/> '.$mod_strings['LBL_CALL'].'</h2>';
58 58
 
59
-   if(!empty($fields['NAME'])) {
60
-        	$overlib_string .= '<b>'. $mod_strings['LBL_SUBJECT'] . '</b> ';
59
+    if(!empty($fields['NAME'])) {
60
+            $overlib_string .= '<b>'. $mod_strings['LBL_SUBJECT'] . '</b> ';
61 61
             $url = 'index.php?action=DetailView&module=Calls&record='.$fields['ID'];
62 62
             $overlib_string .= '<a href="'.$url.'">' . $fields['NAME'] . '</a>';
63
-        	$overlib_string .= '<br>';
63
+            $overlib_string .= '<br>';
64 64
     }
65
-	if(!empty($fields['DATE_START'])) {
65
+    if(!empty($fields['DATE_START'])) {
66 66
         $data_date = $timedate->fromUser($fields['DATE_START'])->format('Y-m-d H:i:s');
67 67
         $overlib_string .= '<span data-field="DATE_START" data-date="' . $data_date . '">';
68 68
         $overlib_string .= '<b>' . $mod_strings['LBL_DATE_TIME'] . '</b> ' . $fields['DATE_START'] . ' <br>';
69 69
         $overlib_string .= '</span>';
70 70
     }
71
-	if(isset($fields['DURATION_HOURS']) || isset($fields['DURATION_MINUTES'])) {
72
-		$overlib_string .= '<b>'. $mod_strings['LBL_DURATION'] . '</b> ';
71
+    if(isset($fields['DURATION_HOURS']) || isset($fields['DURATION_MINUTES'])) {
72
+        $overlib_string .= '<b>'. $mod_strings['LBL_DURATION'] . '</b> ';
73 73
         if(isset($fields['DURATION_HOURS'])) {
74 74
             $overlib_string .= $fields['DURATION_HOURS'] . $mod_strings['LBL_HOURS_ABBREV'] . ' ';
75 75
         }
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
             $overlib_string .=  $fields['DURATION_MINUTES'] . $mod_strings['LBL_MINSS_ABBREV'];
78 78
         }
79 79
         $overlib_string .=  '<br>';
80
-	}
80
+    }
81 81
     if (!empty($fields['PARENT_ID']))
82 82
     {
83 83
             $overlib_string .= "<b>". $mod_strings['LBL_RELATED_TO'] . "</b> ".
@@ -86,21 +86,21 @@  discard block
 block discarded – undo
86 86
             $overlib_string .= '<br>';
87 87
     }
88 88
     if(!empty($fields['STATUS'])) {
89
-      	$overlib_string .= '<b>'. $mod_strings['LBL_STATUS'] . '</b> ' . $fields['STATUS'];
90
-      	$overlib_string .= '<br>';
91
-      }
92
-	if(!empty($fields['DESCRIPTION'])) {
93
-		$overlib_string .= '<b>'. $mod_strings['LBL_DESCRIPTION'] . '</b> ' . substr($fields['DESCRIPTION'], 0, 300);
94
-		if(strlen($fields['DESCRIPTION']) > 300) $overlib_string .= '...';
95
-		$overlib_string .= '<br>';
96
-	}
89
+            $overlib_string .= '<b>'. $mod_strings['LBL_STATUS'] . '</b> ' . $fields['STATUS'];
90
+            $overlib_string .= '<br>';
91
+        }
92
+    if(!empty($fields['DESCRIPTION'])) {
93
+        $overlib_string .= '<b>'. $mod_strings['LBL_DESCRIPTION'] . '</b> ' . substr($fields['DESCRIPTION'], 0, 300);
94
+        if(strlen($fields['DESCRIPTION']) > 300) $overlib_string .= '...';
95
+        $overlib_string .= '<br>';
96
+    }
97 97
     $overlib_string .= '<br>';
98
-	$editLink = "index.php?action=EditView&module=Calls&record={$fields['ID']}";
99
-	$viewLink = "index.php?action=DetailView&module=Calls&record={$fields['ID']}";
98
+    $editLink = "index.php?action=EditView&module=Calls&record={$fields['ID']}";
99
+    $viewLink = "index.php?action=DetailView&module=Calls&record={$fields['ID']}";
100 100
 
101
-	return array('fieldToAddTo' => 'NAME',
102
-				 'string' => $overlib_string,
103
-				 'editLink' => $editLink,
104
-				 'viewLink' => $viewLink);
101
+    return array('fieldToAddTo' => 'NAME',
102
+                    'string' => $overlib_string,
103
+                    'editLink' => $editLink,
104
+                    'viewLink' => $viewLink);
105 105
 }
106 106
 
Please login to merge, or discard this patch.
Spacing   +25 added lines, -25 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.
@@ -42,56 +42,56 @@  discard block
 block discarded – undo
42 42
 function additionalDetailsCall($fields) {
43 43
     global $timedate;
44 44
 	static $mod_strings;
45
-	if(empty($mod_strings)) {
45
+	if (empty($mod_strings)) {
46 46
 		global $current_language;
47 47
 		$mod_strings = return_module_language($current_language, 'Calls');
48 48
 	}
49 49
     $overlib_string = '';
50 50
     $overlib_string .= '<input id="type" type="hidden" value="Call"/>';
51 51
 
52
-    if(!empty($fields['ID'])) {
53
-        $overlib_string .= '<input id="id" type="hidden" value="'. $fields['ID'];
52
+    if (!empty($fields['ID'])) {
53
+        $overlib_string .= '<input id="id" type="hidden" value="'.$fields['ID'];
54 54
         $overlib_string .= '"/>';
55 55
     }
56 56
 
57
-    $overlib_string .= '<h2><img src="index.php?entryPoint=getImage&themeName=' . SugarThemeRegistry::current()->name .'&imageName=Calls.gif"/> '.$mod_strings['LBL_CALL'].'</h2>';
57
+    $overlib_string .= '<h2><img src="index.php?entryPoint=getImage&themeName='.SugarThemeRegistry::current()->name.'&imageName=Calls.gif"/> '.$mod_strings['LBL_CALL'].'</h2>';
58 58
 
59
-   if(!empty($fields['NAME'])) {
60
-        	$overlib_string .= '<b>'. $mod_strings['LBL_SUBJECT'] . '</b> ';
59
+   if (!empty($fields['NAME'])) {
60
+        	$overlib_string .= '<b>'.$mod_strings['LBL_SUBJECT'].'</b> ';
61 61
             $url = 'index.php?action=DetailView&module=Calls&record='.$fields['ID'];
62
-            $overlib_string .= '<a href="'.$url.'">' . $fields['NAME'] . '</a>';
62
+            $overlib_string .= '<a href="'.$url.'">'.$fields['NAME'].'</a>';
63 63
         	$overlib_string .= '<br>';
64 64
     }
65
-	if(!empty($fields['DATE_START'])) {
65
+	if (!empty($fields['DATE_START'])) {
66 66
         $data_date = $timedate->fromUser($fields['DATE_START'])->format('Y-m-d H:i:s');
67
-        $overlib_string .= '<span data-field="DATE_START" data-date="' . $data_date . '">';
68
-        $overlib_string .= '<b>' . $mod_strings['LBL_DATE_TIME'] . '</b> ' . $fields['DATE_START'] . ' <br>';
67
+        $overlib_string .= '<span data-field="DATE_START" data-date="'.$data_date.'">';
68
+        $overlib_string .= '<b>'.$mod_strings['LBL_DATE_TIME'].'</b> '.$fields['DATE_START'].' <br>';
69 69
         $overlib_string .= '</span>';
70 70
     }
71
-	if(isset($fields['DURATION_HOURS']) || isset($fields['DURATION_MINUTES'])) {
72
-		$overlib_string .= '<b>'. $mod_strings['LBL_DURATION'] . '</b> ';
73
-        if(isset($fields['DURATION_HOURS'])) {
74
-            $overlib_string .= $fields['DURATION_HOURS'] . $mod_strings['LBL_HOURS_ABBREV'] . ' ';
71
+	if (isset($fields['DURATION_HOURS']) || isset($fields['DURATION_MINUTES'])) {
72
+		$overlib_string .= '<b>'.$mod_strings['LBL_DURATION'].'</b> ';
73
+        if (isset($fields['DURATION_HOURS'])) {
74
+            $overlib_string .= $fields['DURATION_HOURS'].$mod_strings['LBL_HOURS_ABBREV'].' ';
75 75
         }
76
-        if(isset($fields['DURATION_MINUTES'])) {
77
-            $overlib_string .=  $fields['DURATION_MINUTES'] . $mod_strings['LBL_MINSS_ABBREV'];
76
+        if (isset($fields['DURATION_MINUTES'])) {
77
+            $overlib_string .= $fields['DURATION_MINUTES'].$mod_strings['LBL_MINSS_ABBREV'];
78 78
         }
79
-        $overlib_string .=  '<br>';
79
+        $overlib_string .= '<br>';
80 80
 	}
81 81
     if (!empty($fields['PARENT_ID']))
82 82
     {
83
-            $overlib_string .= "<b>". $mod_strings['LBL_RELATED_TO'] . "</b> ".
83
+            $overlib_string .= "<b>".$mod_strings['LBL_RELATED_TO']."</b> ".
84 84
                     "<a href='index.php?module=".$fields['PARENT_TYPE']."&action=DetailView&record=".$fields['PARENT_ID']."'>".
85
-                    $fields['PARENT_NAME'] . "</a>";
85
+                    $fields['PARENT_NAME']."</a>";
86 86
             $overlib_string .= '<br>';
87 87
     }
88
-    if(!empty($fields['STATUS'])) {
89
-      	$overlib_string .= '<b>'. $mod_strings['LBL_STATUS'] . '</b> ' . $fields['STATUS'];
88
+    if (!empty($fields['STATUS'])) {
89
+      	$overlib_string .= '<b>'.$mod_strings['LBL_STATUS'].'</b> '.$fields['STATUS'];
90 90
       	$overlib_string .= '<br>';
91 91
       }
92
-	if(!empty($fields['DESCRIPTION'])) {
93
-		$overlib_string .= '<b>'. $mod_strings['LBL_DESCRIPTION'] . '</b> ' . substr($fields['DESCRIPTION'], 0, 300);
94
-		if(strlen($fields['DESCRIPTION']) > 300) $overlib_string .= '...';
92
+	if (!empty($fields['DESCRIPTION'])) {
93
+		$overlib_string .= '<b>'.$mod_strings['LBL_DESCRIPTION'].'</b> '.substr($fields['DESCRIPTION'], 0, 300);
94
+		if (strlen($fields['DESCRIPTION']) > 300) $overlib_string .= '...';
95 95
 		$overlib_string .= '<br>';
96 96
 	}
97 97
     $overlib_string .= '<br>';
Please login to merge, or discard this patch.
Braces   +6 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.
@@ -91,7 +93,9 @@  discard block
 block discarded – undo
91 93
       }
92 94
 	if(!empty($fields['DESCRIPTION'])) {
93 95
 		$overlib_string .= '<b>'. $mod_strings['LBL_DESCRIPTION'] . '</b> ' . substr($fields['DESCRIPTION'], 0, 300);
94
-		if(strlen($fields['DESCRIPTION']) > 300) $overlib_string .= '...';
96
+		if(strlen($fields['DESCRIPTION']) > 300) {
97
+		    $overlib_string .= '...';
98
+		}
95 99
 		$overlib_string .= '<br>';
96 100
 	}
97 101
     $overlib_string .= '<br>';
Please login to merge, or discard this patch.
modules/Calls/metadata/editviewdefs.php 2 patches
Indentation   +77 added lines, -77 removed lines patch added patch discarded remove patch
@@ -39,136 +39,136 @@  discard block
 block discarded – undo
39 39
 
40 40
 $viewdefs ['Calls'] =
41 41
 array (
42
-  'EditView' => 
43
-  array (
42
+    'EditView' => 
43
+    array (
44 44
     'templateMeta' => 
45 45
     array (
46 46
         'includes' => array(
47 47
             array('file' => 'modules/Reminders/Reminders.js'),
48 48
         ),
49
-      'maxColumns' => '2',
50
-      'form' => 
51
-      array (
49
+        'maxColumns' => '2',
50
+        'form' => 
51
+        array (
52 52
         'hidden' => 
53 53
         array (
54
-          0 => '<input type="hidden" name="isSaveAndNew" value="false">',
55
-          1 => '<input type="hidden" name="send_invites">',
56
-          2 => '<input type="hidden" name="user_invitees">',
57
-          3 => '<input type="hidden" name="lead_invitees">',
58
-          4 => '<input type="hidden" name="contact_invitees">',
54
+            0 => '<input type="hidden" name="isSaveAndNew" value="false">',
55
+            1 => '<input type="hidden" name="send_invites">',
56
+            2 => '<input type="hidden" name="user_invitees">',
57
+            3 => '<input type="hidden" name="lead_invitees">',
58
+            4 => '<input type="hidden" name="contact_invitees">',
59 59
         ),
60 60
         'buttons' => 
61 61
         array (
62
-          0 => 
63
-          array (
62
+            0 => 
63
+            array (
64 64
             'customCode' => '<input title="{$APP.LBL_SAVE_BUTTON_TITLE}" id="SAVE_HEADER" accessKey="{$APP.LBL_SAVE_BUTTON_KEY}" class="button primary" onclick="SUGAR.calls.fill_invitees();document.EditView.action.value=\'Save\'; document.EditView.return_action.value=\'DetailView\'; {if isset($smarty.request.isDuplicate) && $smarty.request.isDuplicate eq "true"}document.EditView.return_id.value=\'\'; {/if}formSubmitCheck();;" type="button" name="button" value="{$APP.LBL_SAVE_BUTTON_LABEL}">',
65
-          ),
66
-          1 => 'CANCEL',
67
-          2 => 
68
-          array (
65
+            ),
66
+            1 => 'CANCEL',
67
+            2 => 
68
+            array (
69 69
             'customCode' => '<input title="{$MOD.LBL_SEND_BUTTON_TITLE}" id="SAVE_SEND_HEADER" class="button" onclick="document.EditView.send_invites.value=\'1\';SUGAR.calls.fill_invitees();document.EditView.action.value=\'Save\';document.EditView.return_action.value=\'EditView\';document.EditView.return_module.value=\'{$smarty.request.return_module}\';formSubmitCheck();;" type="button" name="button" value="{$MOD.LBL_SEND_BUTTON_LABEL}">',
70
-          ),
71
-          3 => 
72
-          array (
70
+            ),
71
+            3 => 
72
+            array (
73 73
             'customCode' => '{if $fields.status.value != "Held"}<input title="{$APP.LBL_CLOSE_AND_CREATE_BUTTON_TITLE}" id="CLOSE_CREATE_HEADER" accessKey="{$APP.LBL_CLOSE_AND_CREATE_BUTTON_KEY}" class="button" onclick="SUGAR.calls.fill_invitees(); document.EditView.status.value=\'Held\'; document.EditView.action.value=\'Save\'; document.EditView.return_module.value=\'Calls\'; document.EditView.isDuplicate.value=true; document.EditView.isSaveAndNew.value=true; document.EditView.return_action.value=\'EditView\'; document.EditView.return_id.value=\'{$fields.id.value}\'; formSubmitCheck();" type="button" name="button" value="{$APP.LBL_CLOSE_AND_CREATE_BUTTON_LABEL}">{/if}',
74
-          ),
74
+            ),
75 75
         ),
76 76
         'buttons_footer' => 
77 77
         array (
78
-          0 => 
79
-          array (
78
+            0 => 
79
+            array (
80 80
             'customCode' => '<input title="{$APP.LBL_SAVE_BUTTON_TITLE}" id="SAVE_FOOTER" accessKey="{$APP.LBL_SAVE_BUTTON_KEY}" class="button primary" onclick="SUGAR.calls.fill_invitees();document.EditView.action.value=\'Save\'; document.EditView.return_action.value=\'DetailView\'; {if isset($smarty.request.isDuplicate) && $smarty.request.isDuplicate eq "true"}document.EditView.return_id.value=\'\'; {/if}formSubmitCheck();;" type="button" name="button" value="{$APP.LBL_SAVE_BUTTON_LABEL}">',
81
-          ),
82
-          1 => 'CANCEL',
83
-          2 => 
84
-          array (
81
+            ),
82
+            1 => 'CANCEL',
83
+            2 => 
84
+            array (
85 85
             'customCode' => '<input title="{$MOD.LBL_SEND_BUTTON_TITLE}" id="SAVE_SEND_FOOTER" class="button" onclick="document.EditView.send_invites.value=\'1\';SUGAR.calls.fill_invitees();document.EditView.action.value=\'Save\';document.EditView.return_action.value=\'EditView\';document.EditView.return_module.value=\'{$smarty.request.return_module}\';formSubmitCheck();;" type="button" name="button" value="{$MOD.LBL_SEND_BUTTON_LABEL}">',
86
-          ),
87
-          3 => 
88
-          array (
86
+            ),
87
+            3 => 
88
+            array (
89 89
             'customCode' => '{if $fields.status.value != "Held"}<input title="{$APP.LBL_CLOSE_AND_CREATE_BUTTON_TITLE}" id="CLOSE_CREATE_FOOTER" accessKey="{$APP.LBL_CLOSE_AND_CREATE_BUTTON_KEY}" class="button" onclick="SUGAR.calls.fill_invitees(); document.EditView.status.value=\'Held\'; document.EditView.action.value=\'Save\'; document.EditView.return_module.value=\'Calls\'; document.EditView.isDuplicate.value=true; document.EditView.isSaveAndNew.value=true; document.EditView.return_action.value=\'EditView\'; document.EditView.return_id.value=\'{$fields.id.value}\'; formSubmitCheck();" type="button" name="button" value="{$APP.LBL_CLOSE_AND_CREATE_BUTTON_LABEL}">{/if}',
90
-          ),
90
+            ),
91 91
         ),
92 92
         'footerTpl' => 'modules/Calls/tpls/footer.tpl',
93
-      ),
94
-      'widths' => 
95
-      array (
93
+        ),
94
+        'widths' => 
95
+        array (
96 96
         0 => 
97 97
         array (
98
-          'label' => '10',
99
-          'field' => '30',
98
+            'label' => '10',
99
+            'field' => '30',
100 100
         ),
101 101
         1 => 
102 102
         array (
103
-          'label' => '10',
104
-          'field' => '30',
103
+            'label' => '10',
104
+            'field' => '30',
105
+        ),
105 106
         ),
106
-      ),
107
-      'javascript' => '{sugar_getscript file="cache/include/javascript/sugar_grp_jsolait.js"}
107
+        'javascript' => '{sugar_getscript file="cache/include/javascript/sugar_grp_jsolait.js"}
108 108
 <script type="text/javascript">{$JSON_CONFIG_JAVASCRIPT}</script>
109 109
 <script>toggle_portal_flag();function toggle_portal_flag()  {ldelim} {$TOGGLE_JS} {rdelim}
110 110
 function formSubmitCheck(){ldelim}var duration=true;if(typeof(isValidDuration)!="undefined"){ldelim}duration=isValidDuration();{rdelim}if(check_form(\'EditView\') && duration){ldelim}SUGAR.ajaxUI.submitForm("EditView");{rdelim}{rdelim}</script>',
111
-      'useTabs' => false,
112
-      'tabDefs' => 
113
-      array (
111
+        'useTabs' => false,
112
+        'tabDefs' => 
113
+        array (
114 114
         'LBL_CALL_INFORMATION' => 
115 115
         array (
116
-          'newTab' => false,
117
-          'panelDefault' => 'expanded',
116
+            'newTab' => false,
117
+            'panelDefault' => 'expanded',
118
+        ),
118 119
         ),
119
-      ),
120 120
     ),
121 121
     'panels' => 
122 122
     array (
123
-      'lbl_call_information' => 
124
-      array (
123
+        'lbl_call_information' => 
124
+        array (
125 125
         0 => 
126 126
         array (
127
-          0 => 
128
-          array (
127
+            0 => 
128
+            array (
129 129
             'name' => 'name',
130
-          ),
131
-          1 => 
132
-          array (
130
+            ),
131
+            1 => 
132
+            array (
133 133
             'name' => 'status',
134 134
             'fields' => 
135 135
             array (
136
-              0 => 
137
-              array (
136
+                0 => 
137
+                array (
138 138
                 'name' => 'direction',
139
-              ),
140
-              1 => 
141
-              array (
139
+                ),
140
+                1 => 
141
+                array (
142 142
                 'name' => 'status',
143
-              ),
143
+                ),
144
+            ),
144 145
             ),
145
-          ),
146 146
         ),
147 147
         1 => 
148 148
         array (
149
-          0 => 
150
-          array (
149
+            0 => 
150
+            array (
151 151
             'name' => 'date_start',
152 152
             'displayParams' => 
153 153
             array (
154
-              'updateCallback' => 'SugarWidgetScheduler.update_time();',
154
+                'updateCallback' => 'SugarWidgetScheduler.update_time();',
155 155
             ),
156 156
             'label' => 'LBL_DATE_TIME',
157
-          ),
158
-          1 => 
159
-          array (
157
+            ),
158
+            1 => 
159
+            array (
160 160
             'name' => 'parent_name',
161 161
             'label' => 'LBL_LIST_RELATED_TO',
162
-          ),
162
+            ),
163 163
         ),
164 164
         2 => 
165 165
         array (
166
-          0 => 
167
-          array (
166
+            0 => 
167
+            array (
168 168
             'name' => 'duration_hours',
169 169
             'label' => 'LBL_DURATION',
170 170
             'customCode' => '{literal}<script type="text/javascript">function isValidDuration() { form = document.getElementById(\'EditView\'); if ( form.duration_hours.value + form.duration_minutes.value <= 0 ) { alert(\'{/literal}{$MOD.NOTICE_DURATION_TIME}{literal}\'); return false; } return true; }</script>{/literal}<input id="duration_hours" name="duration_hours" size="2" maxlength="2" type="text" value="{$fields.duration_hours.value}" onkeyup="SugarWidgetScheduler.update_time();"/>{$fields.duration_minutes.value}&nbsp;<span class="dateFormat">{$MOD.LBL_HOURS_MINUTES}</span>',
171
-          ),
171
+            ),
172 172
 //          1 =>
173 173
 //          array (
174 174
 //            'name' => 'reminder_time',
@@ -186,23 +186,23 @@  discard block
 block discarded – undo
186 186
         ),
187 187
         4 =>
188 188
         array (
189
-          0 => 
190
-          array (
189
+            0 => 
190
+            array (
191 191
             'name' => 'description',
192 192
             'comment' => 'Full text of the note',
193 193
             'label' => 'LBL_DESCRIPTION',
194
-          ),
194
+            ),
195 195
         ),
196 196
         5 =>
197 197
         array (
198
-          0 => 
199
-          array (
198
+            0 => 
199
+            array (
200 200
             'name' => 'assigned_user_name',
201 201
             'label' => 'LBL_ASSIGNED_TO_NAME',
202
-          ),
202
+            ),
203 203
         ),
204
-      ),
204
+        ),
205
+    ),
205 206
     ),
206
-  ),
207 207
 );
208 208
 ?>
Please login to merge, or discard this patch.
Spacing   +37 added lines, -37 removed lines patch added patch discarded remove patch
@@ -38,19 +38,19 @@  discard block
 block discarded – undo
38 38
  ********************************************************************************/
39 39
 
40 40
 $viewdefs ['Calls'] =
41
-array (
41
+array(
42 42
   'EditView' => 
43
-  array (
43
+  array(
44 44
     'templateMeta' => 
45
-    array (
45
+    array(
46 46
         'includes' => array(
47 47
             array('file' => 'modules/Reminders/Reminders.js'),
48 48
         ),
49 49
       'maxColumns' => '2',
50 50
       'form' => 
51
-      array (
51
+      array(
52 52
         'hidden' => 
53
-        array (
53
+        array(
54 54
           0 => '<input type="hidden" name="isSaveAndNew" value="false">',
55 55
           1 => '<input type="hidden" name="send_invites">',
56 56
           2 => '<input type="hidden" name="user_invitees">',
@@ -58,48 +58,48 @@  discard block
 block discarded – undo
58 58
           4 => '<input type="hidden" name="contact_invitees">',
59 59
         ),
60 60
         'buttons' => 
61
-        array (
61
+        array(
62 62
           0 => 
63
-          array (
63
+          array(
64 64
             'customCode' => '<input title="{$APP.LBL_SAVE_BUTTON_TITLE}" id="SAVE_HEADER" accessKey="{$APP.LBL_SAVE_BUTTON_KEY}" class="button primary" onclick="SUGAR.calls.fill_invitees();document.EditView.action.value=\'Save\'; document.EditView.return_action.value=\'DetailView\'; {if isset($smarty.request.isDuplicate) && $smarty.request.isDuplicate eq "true"}document.EditView.return_id.value=\'\'; {/if}formSubmitCheck();;" type="button" name="button" value="{$APP.LBL_SAVE_BUTTON_LABEL}">',
65 65
           ),
66 66
           1 => 'CANCEL',
67 67
           2 => 
68
-          array (
68
+          array(
69 69
             'customCode' => '<input title="{$MOD.LBL_SEND_BUTTON_TITLE}" id="SAVE_SEND_HEADER" class="button" onclick="document.EditView.send_invites.value=\'1\';SUGAR.calls.fill_invitees();document.EditView.action.value=\'Save\';document.EditView.return_action.value=\'EditView\';document.EditView.return_module.value=\'{$smarty.request.return_module}\';formSubmitCheck();;" type="button" name="button" value="{$MOD.LBL_SEND_BUTTON_LABEL}">',
70 70
           ),
71 71
           3 => 
72
-          array (
72
+          array(
73 73
             'customCode' => '{if $fields.status.value != "Held"}<input title="{$APP.LBL_CLOSE_AND_CREATE_BUTTON_TITLE}" id="CLOSE_CREATE_HEADER" accessKey="{$APP.LBL_CLOSE_AND_CREATE_BUTTON_KEY}" class="button" onclick="SUGAR.calls.fill_invitees(); document.EditView.status.value=\'Held\'; document.EditView.action.value=\'Save\'; document.EditView.return_module.value=\'Calls\'; document.EditView.isDuplicate.value=true; document.EditView.isSaveAndNew.value=true; document.EditView.return_action.value=\'EditView\'; document.EditView.return_id.value=\'{$fields.id.value}\'; formSubmitCheck();" type="button" name="button" value="{$APP.LBL_CLOSE_AND_CREATE_BUTTON_LABEL}">{/if}',
74 74
           ),
75 75
         ),
76 76
         'buttons_footer' => 
77
-        array (
77
+        array(
78 78
           0 => 
79
-          array (
79
+          array(
80 80
             'customCode' => '<input title="{$APP.LBL_SAVE_BUTTON_TITLE}" id="SAVE_FOOTER" accessKey="{$APP.LBL_SAVE_BUTTON_KEY}" class="button primary" onclick="SUGAR.calls.fill_invitees();document.EditView.action.value=\'Save\'; document.EditView.return_action.value=\'DetailView\'; {if isset($smarty.request.isDuplicate) && $smarty.request.isDuplicate eq "true"}document.EditView.return_id.value=\'\'; {/if}formSubmitCheck();;" type="button" name="button" value="{$APP.LBL_SAVE_BUTTON_LABEL}">',
81 81
           ),
82 82
           1 => 'CANCEL',
83 83
           2 => 
84
-          array (
84
+          array(
85 85
             'customCode' => '<input title="{$MOD.LBL_SEND_BUTTON_TITLE}" id="SAVE_SEND_FOOTER" class="button" onclick="document.EditView.send_invites.value=\'1\';SUGAR.calls.fill_invitees();document.EditView.action.value=\'Save\';document.EditView.return_action.value=\'EditView\';document.EditView.return_module.value=\'{$smarty.request.return_module}\';formSubmitCheck();;" type="button" name="button" value="{$MOD.LBL_SEND_BUTTON_LABEL}">',
86 86
           ),
87 87
           3 => 
88
-          array (
88
+          array(
89 89
             'customCode' => '{if $fields.status.value != "Held"}<input title="{$APP.LBL_CLOSE_AND_CREATE_BUTTON_TITLE}" id="CLOSE_CREATE_FOOTER" accessKey="{$APP.LBL_CLOSE_AND_CREATE_BUTTON_KEY}" class="button" onclick="SUGAR.calls.fill_invitees(); document.EditView.status.value=\'Held\'; document.EditView.action.value=\'Save\'; document.EditView.return_module.value=\'Calls\'; document.EditView.isDuplicate.value=true; document.EditView.isSaveAndNew.value=true; document.EditView.return_action.value=\'EditView\'; document.EditView.return_id.value=\'{$fields.id.value}\'; formSubmitCheck();" type="button" name="button" value="{$APP.LBL_CLOSE_AND_CREATE_BUTTON_LABEL}">{/if}',
90 90
           ),
91 91
         ),
92 92
         'footerTpl' => 'modules/Calls/tpls/footer.tpl',
93 93
       ),
94 94
       'widths' => 
95
-      array (
95
+      array(
96 96
         0 => 
97
-        array (
97
+        array(
98 98
           'label' => '10',
99 99
           'field' => '30',
100 100
         ),
101 101
         1 => 
102
-        array (
102
+        array(
103 103
           'label' => '10',
104 104
           'field' => '30',
105 105
         ),
@@ -110,61 +110,61 @@  discard block
 block discarded – undo
110 110
 function formSubmitCheck(){ldelim}var duration=true;if(typeof(isValidDuration)!="undefined"){ldelim}duration=isValidDuration();{rdelim}if(check_form(\'EditView\') && duration){ldelim}SUGAR.ajaxUI.submitForm("EditView");{rdelim}{rdelim}</script>',
111 111
       'useTabs' => false,
112 112
       'tabDefs' => 
113
-      array (
113
+      array(
114 114
         'LBL_CALL_INFORMATION' => 
115
-        array (
115
+        array(
116 116
           'newTab' => false,
117 117
           'panelDefault' => 'expanded',
118 118
         ),
119 119
       ),
120 120
     ),
121 121
     'panels' => 
122
-    array (
122
+    array(
123 123
       'lbl_call_information' => 
124
-      array (
124
+      array(
125 125
         0 => 
126
-        array (
126
+        array(
127 127
           0 => 
128
-          array (
128
+          array(
129 129
             'name' => 'name',
130 130
           ),
131 131
           1 => 
132
-          array (
132
+          array(
133 133
             'name' => 'status',
134 134
             'fields' => 
135
-            array (
135
+            array(
136 136
               0 => 
137
-              array (
137
+              array(
138 138
                 'name' => 'direction',
139 139
               ),
140 140
               1 => 
141
-              array (
141
+              array(
142 142
                 'name' => 'status',
143 143
               ),
144 144
             ),
145 145
           ),
146 146
         ),
147 147
         1 => 
148
-        array (
148
+        array(
149 149
           0 => 
150
-          array (
150
+          array(
151 151
             'name' => 'date_start',
152 152
             'displayParams' => 
153
-            array (
153
+            array(
154 154
               'updateCallback' => 'SugarWidgetScheduler.update_time();',
155 155
             ),
156 156
             'label' => 'LBL_DATE_TIME',
157 157
           ),
158 158
           1 => 
159
-          array (
159
+          array(
160 160
             'name' => 'parent_name',
161 161
             'label' => 'LBL_LIST_RELATED_TO',
162 162
           ),
163 163
         ),
164 164
         2 => 
165
-        array (
165
+        array(
166 166
           0 => 
167
-          array (
167
+          array(
168 168
             'name' => 'duration_hours',
169 169
             'label' => 'LBL_DURATION',
170 170
             'customCode' => '{literal}<script type="text/javascript">function isValidDuration() { form = document.getElementById(\'EditView\'); if ( form.duration_hours.value + form.duration_minutes.value <= 0 ) { alert(\'{/literal}{$MOD.NOTICE_DURATION_TIME}{literal}\'); return false; } return true; }</script>{/literal}<input id="duration_hours" name="duration_hours" size="2" maxlength="2" type="text" value="{$fields.duration_hours.value}" onkeyup="SugarWidgetScheduler.update_time();"/>{$fields.duration_minutes.value}&nbsp;<span class="dateFormat">{$MOD.LBL_HOURS_MINUTES}</span>',
@@ -178,25 +178,25 @@  discard block
 block discarded – undo
178 178
         ),
179 179
         3 => array(
180 180
             0 =>
181
-                array (
181
+                array(
182 182
                     'name' => 'reminders',
183 183
                     'customCode' => '{include file="modules/Reminders/tpls/reminders.tpl"}',
184 184
                     'label' => 'LBL_REMINDERS',
185 185
                 ),
186 186
         ),
187 187
         4 =>
188
-        array (
188
+        array(
189 189
           0 => 
190
-          array (
190
+          array(
191 191
             'name' => 'description',
192 192
             'comment' => 'Full text of the note',
193 193
             'label' => 'LBL_DESCRIPTION',
194 194
           ),
195 195
         ),
196 196
         5 =>
197
-        array (
197
+        array(
198 198
           0 => 
199
-          array (
199
+          array(
200 200
             'name' => 'assigned_user_name',
201 201
             'label' => 'LBL_ASSIGNED_TO_NAME',
202 202
           ),
Please login to merge, or discard this patch.
modules/Calls/metadata/SearchFields.php 3 patches
Indentation   +66 added lines, -66 removed lines patch added patch discarded remove patch
@@ -40,135 +40,135 @@
 block discarded – undo
40 40
 global $current_user;
41 41
 $module_name = "Calls";
42 42
 $searchFields['Calls'] = array (
43
-  'name' =>
44
-  array (
43
+    'name' =>
44
+    array (
45 45
     'query_type' => 'default',
46
-  ),
47
-  'contact_name' => 
48
-  array (
46
+    ),
47
+    'contact_name' => 
48
+    array (
49 49
     'query_type' => 'default',
50 50
     'db_field' => 
51 51
     array (
52
-      0 => 'contacts.first_name',
53
-      1 => 'contacts.last_name',
52
+        0 => 'contacts.first_name',
53
+        1 => 'contacts.last_name',
54 54
     ),
55
-  ),
56
-  'date_start' => 
57
-  array (
55
+    ),
56
+    'date_start' => 
57
+    array (
58 58
     'query_type' => 'default',
59
-  ),
60
-  'location' => 
61
-  array (
59
+    ),
60
+    'location' => 
61
+    array (
62 62
     'query_type' => 'default',
63
-  ),
64
-  'current_user_only' => 
65
-  array (
63
+    ),
64
+    'current_user_only' => 
65
+    array (
66 66
     'query_type' => 'default',
67 67
     'db_field' => 
68 68
     array (
69
-      0 => 'assigned_user_id',
69
+        0 => 'assigned_user_id',
70 70
     ),
71 71
     'my_items' => true,
72 72
     'vname' => 'LBL_CURRENT_USER_FILTER',
73 73
     'type' => 'bool',
74
-  ),
75
-  'assigned_user_id' => 
76
-  array (
74
+    ),
75
+    'assigned_user_id' => 
76
+    array (
77 77
     'query_type' => 'default',
78
-  ),
79
-  'status' => 
80
-  array (
78
+    ),
79
+    'status' => 
80
+    array (
81 81
     'query_type' => 'default',
82 82
     'options' => 'call_status_dom',
83 83
     'template_var' => 'STATUS_FILTER',
84
-  ),
85
-  'open_only' => 
86
-  array (
84
+    ),
85
+    'open_only' => 
86
+    array (
87 87
     'query_type' => 'default',
88 88
     'db_field' => 
89 89
     array (
90
-      0 => 'status',
90
+        0 => 'status',
91 91
     ),
92 92
     'operator' => 'not in',
93 93
     'closed_values' => 
94 94
     array (
95
-      0 => 'Held',
96
-      1 => 'Not Held',
95
+        0 => 'Held',
96
+        1 => 'Not Held',
97 97
     ),
98 98
     'type' => 'bool',
99
-  ),
100
-  'range_date_entered' => 
101
-  array (
99
+    ),
100
+    'range_date_entered' => 
101
+    array (
102 102
     'query_type' => 'default',
103 103
     'enable_range_search' => true,
104 104
     'is_date_field' => true,
105
-  ),
106
-  'start_range_date_entered' => 
107
-  array (
105
+    ),
106
+    'start_range_date_entered' => 
107
+    array (
108 108
     'query_type' => 'default',
109 109
     'enable_range_search' => true,
110 110
     'is_date_field' => true,
111
-  ),
112
-  'end_range_date_entered' => 
113
-  array (
111
+    ),
112
+    'end_range_date_entered' => 
113
+    array (
114 114
     'query_type' => 'default',
115 115
     'enable_range_search' => true,
116 116
     'is_date_field' => true,
117
-  ),
118
-  'range_date_modified' => 
119
-  array (
117
+    ),
118
+    'range_date_modified' => 
119
+    array (
120 120
     'query_type' => 'default',
121 121
     'enable_range_search' => true,
122 122
     'is_date_field' => true,
123
-  ),
124
-  'start_range_date_modified' => 
125
-  array (
123
+    ),
124
+    'start_range_date_modified' => 
125
+    array (
126 126
     'query_type' => 'default',
127 127
     'enable_range_search' => true,
128 128
     'is_date_field' => true,
129
-  ),
130
-  'end_range_date_modified' => 
131
-  array (
129
+    ),
130
+    'end_range_date_modified' => 
131
+    array (
132 132
     'query_type' => 'default',
133 133
     'enable_range_search' => true,
134 134
     'is_date_field' => true,
135
-  ),
136
-  'range_date_start' => 
137
-  array (
135
+    ),
136
+    'range_date_start' => 
137
+    array (
138 138
     'query_type' => 'default',
139 139
     'enable_range_search' => true,
140 140
     'is_date_field' => true,
141
-  ),
142
-  'start_range_date_start' => 
143
-  array (
141
+    ),
142
+    'start_range_date_start' => 
143
+    array (
144 144
     'query_type' => 'default',
145 145
     'enable_range_search' => true,
146 146
     'is_date_field' => true,
147
-  ),
148
-  'end_range_date_start' => 
149
-  array (
147
+    ),
148
+    'end_range_date_start' => 
149
+    array (
150 150
     'query_type' => 'default',
151 151
     'enable_range_search' => true,
152 152
     'is_date_field' => true,
153
-  ),
154
-  'range_date_end' => 
155
-  array (
153
+    ),
154
+    'range_date_end' => 
155
+    array (
156 156
     'query_type' => 'default',
157 157
     'enable_range_search' => true,
158 158
     'is_date_field' => true,
159
-  ),
160
-  'start_range_date_end' => 
161
-  array (
159
+    ),
160
+    'start_range_date_end' => 
161
+    array (
162 162
     'query_type' => 'default',
163 163
     'enable_range_search' => true,
164 164
     'is_date_field' => true,
165
-  ),
166
-  'end_range_date_end' => 
167
-  array (
165
+    ),
166
+    'end_range_date_end' => 
167
+    array (
168 168
     'query_type' => 'default',
169 169
     'enable_range_search' => true,
170 170
     'is_date_field' => true,
171
-  ),
171
+    ),
172 172
     'favorites_only' => array(
173 173
         'query_type'=>'format',
174 174
         'operator' => 'subquery',
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.
@@ -39,33 +39,33 @@  discard block
 block discarded – undo
39 39
  ********************************************************************************/
40 40
 global $current_user;
41 41
 $module_name = "Calls";
42
-$searchFields['Calls'] = array (
42
+$searchFields['Calls'] = array(
43 43
   'name' =>
44
-  array (
44
+  array(
45 45
     'query_type' => 'default',
46 46
   ),
47 47
   'contact_name' => 
48
-  array (
48
+  array(
49 49
     'query_type' => 'default',
50 50
     'db_field' => 
51
-    array (
51
+    array(
52 52
       0 => 'contacts.first_name',
53 53
       1 => 'contacts.last_name',
54 54
     ),
55 55
   ),
56 56
   'date_start' => 
57
-  array (
57
+  array(
58 58
     'query_type' => 'default',
59 59
   ),
60 60
   'location' => 
61
-  array (
61
+  array(
62 62
     'query_type' => 'default',
63 63
   ),
64 64
   'current_user_only' => 
65
-  array (
65
+  array(
66 66
     'query_type' => 'default',
67 67
     'db_field' => 
68
-    array (
68
+    array(
69 69
       0 => 'assigned_user_id',
70 70
     ),
71 71
     'my_items' => true,
@@ -73,98 +73,98 @@  discard block
 block discarded – undo
73 73
     'type' => 'bool',
74 74
   ),
75 75
   'assigned_user_id' => 
76
-  array (
76
+  array(
77 77
     'query_type' => 'default',
78 78
   ),
79 79
   'status' => 
80
-  array (
80
+  array(
81 81
     'query_type' => 'default',
82 82
     'options' => 'call_status_dom',
83 83
     'template_var' => 'STATUS_FILTER',
84 84
   ),
85 85
   'open_only' => 
86
-  array (
86
+  array(
87 87
     'query_type' => 'default',
88 88
     'db_field' => 
89
-    array (
89
+    array(
90 90
       0 => 'status',
91 91
     ),
92 92
     'operator' => 'not in',
93 93
     'closed_values' => 
94
-    array (
94
+    array(
95 95
       0 => 'Held',
96 96
       1 => 'Not Held',
97 97
     ),
98 98
     'type' => 'bool',
99 99
   ),
100 100
   'range_date_entered' => 
101
-  array (
101
+  array(
102 102
     'query_type' => 'default',
103 103
     'enable_range_search' => true,
104 104
     'is_date_field' => true,
105 105
   ),
106 106
   'start_range_date_entered' => 
107
-  array (
107
+  array(
108 108
     'query_type' => 'default',
109 109
     'enable_range_search' => true,
110 110
     'is_date_field' => true,
111 111
   ),
112 112
   'end_range_date_entered' => 
113
-  array (
113
+  array(
114 114
     'query_type' => 'default',
115 115
     'enable_range_search' => true,
116 116
     'is_date_field' => true,
117 117
   ),
118 118
   'range_date_modified' => 
119
-  array (
119
+  array(
120 120
     'query_type' => 'default',
121 121
     'enable_range_search' => true,
122 122
     'is_date_field' => true,
123 123
   ),
124 124
   'start_range_date_modified' => 
125
-  array (
125
+  array(
126 126
     'query_type' => 'default',
127 127
     'enable_range_search' => true,
128 128
     'is_date_field' => true,
129 129
   ),
130 130
   'end_range_date_modified' => 
131
-  array (
131
+  array(
132 132
     'query_type' => 'default',
133 133
     'enable_range_search' => true,
134 134
     'is_date_field' => true,
135 135
   ),
136 136
   'range_date_start' => 
137
-  array (
137
+  array(
138 138
     'query_type' => 'default',
139 139
     'enable_range_search' => true,
140 140
     'is_date_field' => true,
141 141
   ),
142 142
   'start_range_date_start' => 
143
-  array (
143
+  array(
144 144
     'query_type' => 'default',
145 145
     'enable_range_search' => true,
146 146
     'is_date_field' => true,
147 147
   ),
148 148
   'end_range_date_start' => 
149
-  array (
149
+  array(
150 150
     'query_type' => 'default',
151 151
     'enable_range_search' => true,
152 152
     'is_date_field' => true,
153 153
   ),
154 154
   'range_date_end' => 
155
-  array (
155
+  array(
156 156
     'query_type' => 'default',
157 157
     'enable_range_search' => true,
158 158
     'is_date_field' => true,
159 159
   ),
160 160
   'start_range_date_end' => 
161
-  array (
161
+  array(
162 162
     'query_type' => 'default',
163 163
     'enable_range_search' => true,
164 164
     'is_date_field' => true,
165 165
   ),
166 166
   'end_range_date_end' => 
167
-  array (
167
+  array(
168 168
     'query_type' => 'default',
169 169
     'enable_range_search' => true,
170 170
     'is_date_field' => true,
@@ -175,6 +175,6 @@  discard block
 block discarded – undo
175 175
         'subquery' => 'SELECT favorites.parent_id FROM favorites
176 176
 			                    WHERE favorites.deleted = 0
177 177
 			                        and favorites.parent_type = "'.$module_name.'"
178
-			                        and favorites.assigned_user_id = "' .$current_user->id . '") OR NOT ({0}',
178
+			                        and favorites.assigned_user_id = "' .$current_user->id.'") OR NOT ({0}',
179 179
         'db_field'=>array('id')),
180 180
 );
181 181
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,7 @@
 block discarded – undo
1 1
 <?php
2
-if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
2
+if(!defined('sugarEntry') || !sugarEntry) {
3
+    die('Not A Valid Entry Point');
4
+}
3 5
 /*********************************************************************************
4 6
  * SugarCRM Community Edition is a customer relationship management program developed by
5 7
  * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc.
Please login to merge, or discard this patch.
modules/Calls/metadata/detailviewdefs.php 2 patches
Indentation   +97 added lines, -97 removed lines patch added patch discarded remove patch
@@ -40,150 +40,150 @@  discard block
 block discarded – undo
40 40
 
41 41
 $viewdefs ['Calls'] =
42 42
 array (
43
-  'DetailView' => 
44
-  array (
43
+    'DetailView' => 
44
+    array (
45 45
     'templateMeta' => 
46 46
     array (
47
-      'form' => 
48
-      array (
47
+        'form' => 
48
+        array (
49 49
         'buttons' => 
50 50
         array (
51
-          0 => 'EDIT',
52
-          1 => 'DUPLICATE',
53
-          2 => 'DELETE',
54
-          3 => 
55
-          array (
51
+            0 => 'EDIT',
52
+            1 => 'DUPLICATE',
53
+            2 => 'DELETE',
54
+            3 => 
55
+            array (
56 56
             'customCode' => '{if $fields.status.value != "Held" && $bean->aclAccess("edit")} <input type="hidden" name="isSaveAndNew" value="false">  <input type="hidden" name="status" value="">  <input type="hidden" name="isSaveFromDetailView" value="true">  <input title="{$APP.LBL_CLOSE_AND_CREATE_BUTTON_TITLE}"   class="button"  onclick="this.form.status.value=\'Held\'; this.form.action.value=\'Save\';this.form.return_module.value=\'Calls\';this.form.isDuplicate.value=true;this.form.isSaveAndNew.value=true;this.form.return_action.value=\'EditView\'; this.form.return_id.value=\'{$fields.id.value}\'" id="close_create_button" name="button"  value="{$APP.LBL_CLOSE_AND_CREATE_BUTTON_TITLE}"  type="submit">{/if}',
57 57
             'sugar_html' => 
58 58
             array (
59
-              'type' => 'submit',
60
-              'value' => '{$APP.LBL_CLOSE_AND_CREATE_BUTTON_TITLE}',
61
-              'htmlOptions' => 
62
-              array (
59
+                'type' => 'submit',
60
+                'value' => '{$APP.LBL_CLOSE_AND_CREATE_BUTTON_TITLE}',
61
+                'htmlOptions' => 
62
+                array (
63 63
                 'title' => '{$APP.LBL_CLOSE_AND_CREATE_BUTTON_TITLE}',
64 64
                 'class' => 'button',
65 65
                 'onclick' => 'this.form.isSaveFromDetailView.value=true; this.form.status.value=\'Held\'; this.form.action.value=\'Save\';this.form.return_module.value=\'Calls\';this.form.isDuplicate.value=true;this.form.isSaveAndNew.value=true;this.form.return_action.value=\'EditView\'; this.form.return_id.value=\'{$fields.id.value}\'',
66 66
                 'name' => 'button',
67 67
                 'id' => 'close_create_button',
68
-              ),
69
-              'template' => '{if $fields.status.value != "Held" && $bean->aclAccess("edit")}[CONTENT]{/if}',
68
+                ),
69
+                'template' => '{if $fields.status.value != "Held" && $bean->aclAccess("edit")}[CONTENT]{/if}',
70
+            ),
70 71
             ),
71
-          ),
72
-          4 => 
73
-          array (
72
+            4 => 
73
+            array (
74 74
             'customCode' => '{if $fields.status.value != "Held" && $bean->aclAccess("edit")} <input type="hidden" name="isSave" value="false">  <input title="{$APP.LBL_CLOSE_BUTTON_TITLE}"  accesskey="{$APP.LBL_CLOSE_BUTTON_KEY}"  class="button"  onclick="this.form.status.value=\'Held\'; this.form.action.value=\'Save\';this.form.return_module.value=\'Calls\';this.form.isSave.value=true;this.form.return_action.value=\'DetailView\'; this.form.return_id.value=\'{$fields.id.value}\'" id="close_button" name="button1"  value="{$APP.LBL_CLOSE_BUTTON_TITLE}"  type="submit">{/if}',
75 75
             'sugar_html' => 
76 76
             array (
77
-              'type' => 'submit',
78
-              'value' => '{$APP.LBL_CLOSE_BUTTON_TITLE}',
79
-              'htmlOptions' => 
80
-              array (
77
+                'type' => 'submit',
78
+                'value' => '{$APP.LBL_CLOSE_BUTTON_TITLE}',
79
+                'htmlOptions' => 
80
+                array (
81 81
                 'title' => '{$APP.LBL_CLOSE_BUTTON_TITLE}',
82 82
                 'accesskey' => '{$APP.LBL_CLOSE_BUTTON_KEY}',
83 83
                 'class' => 'button',
84 84
                 'onclick' => 'this.form.status.value=\'Held\'; this.form.action.value=\'Save\';this.form.return_module.value=\'Calls\';this.form.isSave.value=true;this.form.return_action.value=\'DetailView\'; this.form.return_id.value=\'{$fields.id.value}\';this.form.isSaveFromDetailView.value=true',
85 85
                 'name' => 'button1',
86 86
                 'id' => 'close_button',
87
-              ),
88
-              'template' => '{if $fields.status.value != "Held" && $bean->aclAccess("edit")}[CONTENT]{/if}',
87
+                ),
88
+                'template' => '{if $fields.status.value != "Held" && $bean->aclAccess("edit")}[CONTENT]{/if}',
89
+            ),
89 90
             ),
90
-          ),
91
-          'SA_RESCHEDULE' => 
92
-          array (
91
+            'SA_RESCHEDULE' => 
92
+            array (
93 93
             'customCode' => '{if $fields.status.value != "Held"} <input title="{$MOD.LBL_RESCHEDULE}" class="button" onclick="get_form();" name="Reschedule" id="reschedule_button" value="{$MOD.LBL_RESCHEDULE}" type="button">{/if}',
94
-          ),
94
+            ),
95 95
         ),
96 96
         'hidden' => 
97 97
         array (
98
-          0 => '<input type="hidden" name="isSaveAndNew">',
99
-          1 => '<input type="hidden" name="status">',
100
-          2 => '<input type="hidden" name="isSaveFromDetailView">',
101
-          3 => '<input type="hidden" name="isSave">',
98
+            0 => '<input type="hidden" name="isSaveAndNew">',
99
+            1 => '<input type="hidden" name="status">',
100
+            2 => '<input type="hidden" name="isSaveFromDetailView">',
101
+            3 => '<input type="hidden" name="isSave">',
102 102
         ),
103 103
         'headerTpl' => 'modules/Calls/tpls/detailHeader.tpl',
104
-      ),
105
-      'maxColumns' => '2',
106
-      'widths' => 
107
-      array (
104
+        ),
105
+        'maxColumns' => '2',
106
+        'widths' => 
107
+        array (
108 108
         0 => 
109 109
         array (
110
-          'label' => '10',
111
-          'field' => '30',
110
+            'label' => '10',
111
+            'field' => '30',
112 112
         ),
113 113
         1 => 
114 114
         array (
115
-          'label' => '10',
116
-          'field' => '30',
115
+            'label' => '10',
116
+            'field' => '30',
117 117
         ),
118
-      ),
119
-      'useTabs' => true,
120
-      'includes' => 
121
-      array (
118
+        ),
119
+        'useTabs' => true,
120
+        'includes' => 
121
+        array (
122 122
         'SA_RESCHEDULE' => 
123 123
         array (
124
-          'file' => 'modules/Calls_Reschedule/reschedule_form.js',
124
+            'file' => 'modules/Calls_Reschedule/reschedule_form.js',
125
+        ),
126
+            array('file' => 'modules/Reminders/Reminders.js'),
125 127
         ),
126
-          array('file' => 'modules/Reminders/Reminders.js'),
127
-      ),
128
-      'tabDefs' => 
129
-      array (
128
+        'tabDefs' => 
129
+        array (
130 130
         'LBL_CALL_INFORMATION' => 
131 131
         array (
132
-          'newTab' => true,
133
-          'panelDefault' => 'expanded',
132
+            'newTab' => true,
133
+            'panelDefault' => 'expanded',
134 134
         ),
135 135
         'LBL_RESCHEDULE_PANEL' => 
136 136
         array (
137
-          'newTab' => true,
138
-          'panelDefault' => 'expanded',
137
+            'newTab' => true,
138
+            'panelDefault' => 'expanded',
139 139
         ),
140 140
         'LBL_PANEL_ASSIGNMENT' =>
141 141
         array (
142
-          'newTab' => true,
143
-          'panelDefault' => 'expanded',
142
+            'newTab' => true,
143
+            'panelDefault' => 'expanded',
144
+        ),
144 145
         ),
145
-      ),
146 146
     ),
147 147
     'panels' => 
148 148
     array (
149
-      'lbl_call_information' => 
150
-      array (
149
+        'lbl_call_information' => 
150
+        array (
151 151
         0 => 
152 152
         array (
153
-          0 => 
154
-          array (
153
+            0 => 
154
+            array (
155 155
             'name' => 'name',
156 156
             'label' => 'LBL_SUBJECT',
157
-          ),
158
-          1 => 
159
-          array (
157
+            ),
158
+            1 => 
159
+            array (
160 160
             'name' => 'direction',
161 161
             'customCode' => '{$fields.direction.options[$fields.direction.value]} {$fields.status.options[$fields.status.value]}',
162 162
             'label' => 'LBL_STATUS',
163
-          ),
163
+            ),
164 164
         ),
165 165
         1 => 
166 166
         array (
167
-          0 => 
168
-          array (
167
+            0 => 
168
+            array (
169 169
             'name' => 'date_start',
170 170
             'customCode' => '{$fields.date_start.value} {$fields.time_start.value}&nbsp;',
171 171
             'label' => 'LBL_DATE_TIME',
172
-          ),
173
-          1 => 
174
-          array (
172
+            ),
173
+            1 => 
174
+            array (
175 175
             'name' => 'parent_name',
176 176
             'customLabel' => '{sugar_translate label=\'LBL_MODULE_NAME\' module=$fields.parent_type.value}',
177
-          ),
177
+            ),
178 178
         ),
179 179
         2 => 
180 180
         array (
181
-          0 => 
182
-          array (
181
+            0 => 
182
+            array (
183 183
             'name' => 'duration_hours',
184 184
             'customCode' => '{$fields.duration_hours.value}{$MOD.LBL_HOURS_ABBREV} {$fields.duration_minutes.value}{$MOD.LBL_MINSS_ABBREV}&nbsp;',
185 185
             'label' => 'LBL_DURATION',
186
-          ),
186
+            ),
187 187
 //          1 =>
188 188
 //          array (
189 189
 //            'name' => 'reminder_time',
@@ -197,55 +197,55 @@  discard block
 block discarded – undo
197 197
         ),
198 198
         3 => 
199 199
         array (
200
-          0 => 
201
-          array (
200
+            0 => 
201
+            array (
202 202
             'name' => 'description',
203 203
             'comment' => 'Full text of the note',
204 204
             'label' => 'LBL_DESCRIPTION',
205
-          ),
205
+            ),
206 206
         ),
207 207
         4 => 
208 208
         array (
209
-          0 => 
210
-          array (
209
+            0 => 
210
+            array (
211 211
             'name' => 'assigned_user_name',
212 212
             'customCode' => '{$fields.assigned_user_name.value}',
213 213
             'label' => 'LBL_ASSIGNED_TO',
214
-          ),
214
+            ),
215 215
         ),
216
-      ),
217
-      'lbl_reschedule_panel' => 
218
-      array (
216
+        ),
217
+        'lbl_reschedule_panel' => 
218
+        array (
219 219
         0 => 
220 220
         array (
221
-          0 => 
222
-          array (
221
+            0 => 
222
+            array (
223 223
             'name' => 'reschedule_history',
224 224
             'comment' => 'Call duration, minutes portion',
225 225
             'label' => 'LBL_RESCHEDULE_HISTORY',
226
-          ),
227
-          1 => '',
226
+            ),
227
+            1 => '',
228
+        ),
228 229
         ),
229
-      ),
230
-      'LBL_PANEL_ASSIGNMENT' =>
231
-      array (
230
+        'LBL_PANEL_ASSIGNMENT' =>
231
+        array (
232 232
         0 => 
233 233
         array (
234
-          0 => 
235
-          array (
234
+            0 => 
235
+            array (
236 236
             'name' => 'date_entered',
237 237
             'customCode' => '{$fields.date_entered.value} {$APP.LBL_BY} {$fields.created_by_name.value}&nbsp;',
238 238
             'label' => 'LBL_DATE_ENTERED',
239
-          ),
240
-          1 => 
241
-          array (
239
+            ),
240
+            1 => 
241
+            array (
242 242
             'name' => 'date_modified',
243 243
             'customCode' => '{$fields.date_modified.value} {$APP.LBL_BY} {$fields.modified_by_name.value}&nbsp;',
244 244
             'label' => 'LBL_DATE_MODIFIED',
245
-          ),
245
+            ),
246 246
         ),
247
-      ),
247
+        ),
248
+    ),
248 249
     ),
249
-  ),
250 250
 );
251 251
 ?>
Please login to merge, or discard this patch.
Spacing   +43 added lines, -43 removed lines patch added patch discarded remove patch
@@ -39,27 +39,27 @@  discard block
 block discarded – undo
39 39
 
40 40
 
41 41
 $viewdefs ['Calls'] =
42
-array (
42
+array(
43 43
   'DetailView' => 
44
-  array (
44
+  array(
45 45
     'templateMeta' => 
46
-    array (
46
+    array(
47 47
       'form' => 
48
-      array (
48
+      array(
49 49
         'buttons' => 
50
-        array (
50
+        array(
51 51
           0 => 'EDIT',
52 52
           1 => 'DUPLICATE',
53 53
           2 => 'DELETE',
54 54
           3 => 
55
-          array (
55
+          array(
56 56
             'customCode' => '{if $fields.status.value != "Held" && $bean->aclAccess("edit")} <input type="hidden" name="isSaveAndNew" value="false">  <input type="hidden" name="status" value="">  <input type="hidden" name="isSaveFromDetailView" value="true">  <input title="{$APP.LBL_CLOSE_AND_CREATE_BUTTON_TITLE}"   class="button"  onclick="this.form.status.value=\'Held\'; this.form.action.value=\'Save\';this.form.return_module.value=\'Calls\';this.form.isDuplicate.value=true;this.form.isSaveAndNew.value=true;this.form.return_action.value=\'EditView\'; this.form.return_id.value=\'{$fields.id.value}\'" id="close_create_button" name="button"  value="{$APP.LBL_CLOSE_AND_CREATE_BUTTON_TITLE}"  type="submit">{/if}',
57 57
             'sugar_html' => 
58
-            array (
58
+            array(
59 59
               'type' => 'submit',
60 60
               'value' => '{$APP.LBL_CLOSE_AND_CREATE_BUTTON_TITLE}',
61 61
               'htmlOptions' => 
62
-              array (
62
+              array(
63 63
                 'title' => '{$APP.LBL_CLOSE_AND_CREATE_BUTTON_TITLE}',
64 64
                 'class' => 'button',
65 65
                 'onclick' => 'this.form.isSaveFromDetailView.value=true; this.form.status.value=\'Held\'; this.form.action.value=\'Save\';this.form.return_module.value=\'Calls\';this.form.isDuplicate.value=true;this.form.isSaveAndNew.value=true;this.form.return_action.value=\'EditView\'; this.form.return_id.value=\'{$fields.id.value}\'',
@@ -70,14 +70,14 @@  discard block
 block discarded – undo
70 70
             ),
71 71
           ),
72 72
           4 => 
73
-          array (
73
+          array(
74 74
             'customCode' => '{if $fields.status.value != "Held" && $bean->aclAccess("edit")} <input type="hidden" name="isSave" value="false">  <input title="{$APP.LBL_CLOSE_BUTTON_TITLE}"  accesskey="{$APP.LBL_CLOSE_BUTTON_KEY}"  class="button"  onclick="this.form.status.value=\'Held\'; this.form.action.value=\'Save\';this.form.return_module.value=\'Calls\';this.form.isSave.value=true;this.form.return_action.value=\'DetailView\'; this.form.return_id.value=\'{$fields.id.value}\'" id="close_button" name="button1"  value="{$APP.LBL_CLOSE_BUTTON_TITLE}"  type="submit">{/if}',
75 75
             'sugar_html' => 
76
-            array (
76
+            array(
77 77
               'type' => 'submit',
78 78
               'value' => '{$APP.LBL_CLOSE_BUTTON_TITLE}',
79 79
               'htmlOptions' => 
80
-              array (
80
+              array(
81 81
                 'title' => '{$APP.LBL_CLOSE_BUTTON_TITLE}',
82 82
                 'accesskey' => '{$APP.LBL_CLOSE_BUTTON_KEY}',
83 83
                 'class' => 'button',
@@ -89,12 +89,12 @@  discard block
 block discarded – undo
89 89
             ),
90 90
           ),
91 91
           'SA_RESCHEDULE' => 
92
-          array (
92
+          array(
93 93
             'customCode' => '{if $fields.status.value != "Held"} <input title="{$MOD.LBL_RESCHEDULE}" class="button" onclick="get_form();" name="Reschedule" id="reschedule_button" value="{$MOD.LBL_RESCHEDULE}" type="button">{/if}',
94 94
           ),
95 95
         ),
96 96
         'hidden' => 
97
-        array (
97
+        array(
98 98
           0 => '<input type="hidden" name="isSaveAndNew">',
99 99
           1 => '<input type="hidden" name="status">',
100 100
           2 => '<input type="hidden" name="isSaveFromDetailView">',
@@ -104,82 +104,82 @@  discard block
 block discarded – undo
104 104
       ),
105 105
       'maxColumns' => '2',
106 106
       'widths' => 
107
-      array (
107
+      array(
108 108
         0 => 
109
-        array (
109
+        array(
110 110
           'label' => '10',
111 111
           'field' => '30',
112 112
         ),
113 113
         1 => 
114
-        array (
114
+        array(
115 115
           'label' => '10',
116 116
           'field' => '30',
117 117
         ),
118 118
       ),
119 119
       'useTabs' => true,
120 120
       'includes' => 
121
-      array (
121
+      array(
122 122
         'SA_RESCHEDULE' => 
123
-        array (
123
+        array(
124 124
           'file' => 'modules/Calls_Reschedule/reschedule_form.js',
125 125
         ),
126 126
           array('file' => 'modules/Reminders/Reminders.js'),
127 127
       ),
128 128
       'tabDefs' => 
129
-      array (
129
+      array(
130 130
         'LBL_CALL_INFORMATION' => 
131
-        array (
131
+        array(
132 132
           'newTab' => true,
133 133
           'panelDefault' => 'expanded',
134 134
         ),
135 135
         'LBL_RESCHEDULE_PANEL' => 
136
-        array (
136
+        array(
137 137
           'newTab' => true,
138 138
           'panelDefault' => 'expanded',
139 139
         ),
140 140
         'LBL_PANEL_ASSIGNMENT' =>
141
-        array (
141
+        array(
142 142
           'newTab' => true,
143 143
           'panelDefault' => 'expanded',
144 144
         ),
145 145
       ),
146 146
     ),
147 147
     'panels' => 
148
-    array (
148
+    array(
149 149
       'lbl_call_information' => 
150
-      array (
150
+      array(
151 151
         0 => 
152
-        array (
152
+        array(
153 153
           0 => 
154
-          array (
154
+          array(
155 155
             'name' => 'name',
156 156
             'label' => 'LBL_SUBJECT',
157 157
           ),
158 158
           1 => 
159
-          array (
159
+          array(
160 160
             'name' => 'direction',
161 161
             'customCode' => '{$fields.direction.options[$fields.direction.value]} {$fields.status.options[$fields.status.value]}',
162 162
             'label' => 'LBL_STATUS',
163 163
           ),
164 164
         ),
165 165
         1 => 
166
-        array (
166
+        array(
167 167
           0 => 
168
-          array (
168
+          array(
169 169
             'name' => 'date_start',
170 170
             'customCode' => '{$fields.date_start.value} {$fields.time_start.value}&nbsp;',
171 171
             'label' => 'LBL_DATE_TIME',
172 172
           ),
173 173
           1 => 
174
-          array (
174
+          array(
175 175
             'name' => 'parent_name',
176 176
             'customLabel' => '{sugar_translate label=\'LBL_MODULE_NAME\' module=$fields.parent_type.value}',
177 177
           ),
178 178
         ),
179 179
         2 => 
180
-        array (
180
+        array(
181 181
           0 => 
182
-          array (
182
+          array(
183 183
             'name' => 'duration_hours',
184 184
             'customCode' => '{$fields.duration_hours.value}{$MOD.LBL_HOURS_ABBREV} {$fields.duration_minutes.value}{$MOD.LBL_MINSS_ABBREV}&nbsp;',
185 185
             'label' => 'LBL_DURATION',
@@ -196,18 +196,18 @@  discard block
 block discarded – undo
196 196
                 ),
197 197
         ),
198 198
         3 => 
199
-        array (
199
+        array(
200 200
           0 => 
201
-          array (
201
+          array(
202 202
             'name' => 'description',
203 203
             'comment' => 'Full text of the note',
204 204
             'label' => 'LBL_DESCRIPTION',
205 205
           ),
206 206
         ),
207 207
         4 => 
208
-        array (
208
+        array(
209 209
           0 => 
210
-          array (
210
+          array(
211 211
             'name' => 'assigned_user_name',
212 212
             'customCode' => '{$fields.assigned_user_name.value}',
213 213
             'label' => 'LBL_ASSIGNED_TO',
@@ -215,11 +215,11 @@  discard block
 block discarded – undo
215 215
         ),
216 216
       ),
217 217
       'lbl_reschedule_panel' => 
218
-      array (
218
+      array(
219 219
         0 => 
220
-        array (
220
+        array(
221 221
           0 => 
222
-          array (
222
+          array(
223 223
             'name' => 'reschedule_history',
224 224
             'comment' => 'Call duration, minutes portion',
225 225
             'label' => 'LBL_RESCHEDULE_HISTORY',
@@ -228,17 +228,17 @@  discard block
 block discarded – undo
228 228
         ),
229 229
       ),
230 230
       'LBL_PANEL_ASSIGNMENT' =>
231
-      array (
231
+      array(
232 232
         0 => 
233
-        array (
233
+        array(
234 234
           0 => 
235
-          array (
235
+          array(
236 236
             'name' => 'date_entered',
237 237
             'customCode' => '{$fields.date_entered.value} {$APP.LBL_BY} {$fields.created_by_name.value}&nbsp;',
238 238
             'label' => 'LBL_DATE_ENTERED',
239 239
           ),
240 240
           1 => 
241
-          array (
241
+          array(
242 242
             'name' => 'date_modified',
243 243
             'customCode' => '{$fields.date_modified.value} {$APP.LBL_BY} {$fields.modified_by_name.value}&nbsp;',
244 244
             'label' => 'LBL_DATE_MODIFIED',
Please login to merge, or discard this patch.
modules/Calls/metadata/quickcreatedefs.php 2 patches
Indentation   +57 added lines, -57 removed lines patch added patch discarded remove patch
@@ -39,117 +39,117 @@  discard block
 block discarded – undo
39 39
 
40 40
 $viewdefs ['Calls'] =
41 41
 array (
42
-  'QuickCreate' =>
43
-  array (
42
+    'QuickCreate' =>
43
+    array (
44 44
     'templateMeta' =>
45 45
     array (
46 46
         'includes' => array(
47 47
             array('file' => 'modules/Reminders/Reminders.js'),
48 48
         ),
49
-      'maxColumns' => '2',
50
-      'form' =>
51
-      array (
49
+        'maxColumns' => '2',
50
+        'form' =>
51
+        array (
52 52
         'hidden' =>
53 53
         array (
54
-          0 => '<input type="hidden" name="isSaveAndNew" value="false">',
55
-          1 => '<input type="hidden" name="send_invites">',
56
-          2 => '<input type="hidden" name="user_invitees">',
57
-          3 => '<input type="hidden" name="lead_invitees">',
58
-          4 => '<input type="hidden" name="contact_invitees">',
54
+            0 => '<input type="hidden" name="isSaveAndNew" value="false">',
55
+            1 => '<input type="hidden" name="send_invites">',
56
+            2 => '<input type="hidden" name="user_invitees">',
57
+            3 => '<input type="hidden" name="lead_invitees">',
58
+            4 => '<input type="hidden" name="contact_invitees">',
59 59
         ),
60 60
         'buttons' =>
61 61
         array (
62
-          0 =>
63
-          array (
62
+            0 =>
63
+            array (
64 64
             'customCode' => '<input title="{$APP.LBL_SAVE_BUTTON_TITLE}" accessKey="{$APP.LBL_SAVE_BUTTON_KEY}" class="button" onclick="SUGAR.calls.fill_invitees();this.form.action.value=\'Save\'; this.form.return_action.value=\'DetailView\'; {if isset($smarty.request.isDuplicate) && $smarty.request.isDuplicate eq "true"}this.form.return_id.value=\'\'; {/if}return check_form(\'EditView\') && isValidDuration();" type="submit" name="button" value="{$APP.LBL_SAVE_BUTTON_LABEL}">',
65
-          ),
66
-          1 => 'CANCEL',
67
-          2 =>
68
-          array (
65
+            ),
66
+            1 => 'CANCEL',
67
+            2 =>
68
+            array (
69 69
             'customCode' => '<input title="{$MOD.LBL_SEND_BUTTON_TITLE}" class="button" onclick="this.form.send_invites.value=\'1\';SUGAR.calls.fill_invitees();this.form.action.value=\'Save\';this.form.return_action.value=\'EditView\';this.form.return_module.value=\'{$smarty.request.return_module}\';return check_form(\'EditView\') && isValidDuration();" type="submit" name="button" value="{$MOD.LBL_SEND_BUTTON_LABEL}">',
70
-          ),
71
-          3 =>
72
-          array (
70
+            ),
71
+            3 =>
72
+            array (
73 73
             'customCode' => '{if $fields.status.value != "Held"}<input title="{$APP.LBL_CLOSE_AND_CREATE_BUTTON_TITLE}" class="button" onclick="SUGAR.calls.fill_invitees(); this.form.status.value=\'Held\'; this.form.action.value=\'Save\'; this.form.return_module.value=\'Calls\'; this.form.isDuplicate.value=true; this.form.isSaveAndNew.value=true; this.form.return_action.value=\'EditView\'; this.form.return_id.value=\'{$fields.id.value}\'; return check_form(\'EditView\') && isValidDuration();" type="submit" name="button" value="{$APP.LBL_CLOSE_AND_CREATE_BUTTON_LABEL}">{/if}',
74
-          ),
74
+            ),
75
+        ),
75 76
         ),
76
-      ),
77
-      'widths' =>
78
-      array (
77
+        'widths' =>
78
+        array (
79 79
         0 =>
80 80
         array (
81
-          'label' => '10',
82
-          'field' => '30',
81
+            'label' => '10',
82
+            'field' => '30',
83 83
         ),
84 84
         1 =>
85 85
         array (
86
-          'label' => '10',
87
-          'field' => '30',
86
+            'label' => '10',
87
+            'field' => '30',
88
+        ),
88 89
         ),
89
-      ),
90
-      'javascript' => '<script type="text/javascript">{$JSON_CONFIG_JAVASCRIPT}</script>'.
90
+        'javascript' => '<script type="text/javascript">{$JSON_CONFIG_JAVASCRIPT}</script>'.
91 91
                 '{sugar_getscript file="cache/include/javascript/sugar_grp_jsolait.js"}' .
92 92
                 '<script>toggle_portal_flag();function toggle_portal_flag()  {literal} { {/literal} {$TOGGLE_JS} {literal} } {/literal} </script>',
93 93
 
94
-      'useTabs' => false,
94
+        'useTabs' => false,
95 95
     ),
96 96
     'panels' =>
97 97
     array (
98
-      'default' =>
99
-      array (
98
+        'default' =>
100 99
         array (
101
-          array (
100
+        array (
101
+            array (
102 102
             'name' => 'name',
103 103
             'displayParams' =>
104 104
             array (
105
-              'required' => true,
105
+                'required' => true,
106
+            ),
106 107
             ),
107
-          ),
108
-          array (
108
+            array (
109 109
             'name' => 'status',
110 110
             'displayParams' =>
111 111
             array (
112
-              'required' => true,
112
+                'required' => true,
113 113
             ),
114 114
             'fields' =>
115 115
             array (
116
-              array (
116
+                array (
117 117
                 'name' => 'direction',
118
-              ),
119
-              array (
118
+                ),
119
+                array (
120 120
                 'name' => 'status',
121
-              ),
121
+                ),
122
+            ),
122 123
             ),
123
-          ),
124 124
         ),
125 125
 
126 126
         array (
127
-          array (
127
+            array (
128 128
             'name' => 'date_start',
129 129
             'type' => 'datetimecombo',
130 130
             'displayParams' =>
131 131
             array (
132
-              'required' => true,
133
-              'updateCallback' => 'SugarWidgetScheduler.update_time();',
132
+                'required' => true,
133
+                'updateCallback' => 'SugarWidgetScheduler.update_time();',
134 134
             ),
135 135
             'label' => 'LBL_DATE_TIME',
136
-          ),
137
-          array (
136
+            ),
137
+            array (
138 138
             'name' => 'parent_name',
139 139
             'label' => 'LBL_LIST_RELATED_TO',
140
-          ),
140
+            ),
141 141
         ),
142 142
 
143 143
         array (
144
-          array (
144
+            array (
145 145
             'name' => 'duration_hours',
146 146
             'label' => 'LBL_DURATION',
147 147
             'customCode' => '{literal}<script type="text/javascript">function isValidDuration() { form = document.getElementById(\'EditView\'); if ( form.duration_hours.value + form.duration_minutes.value <= 0 ) { alert(\'{/literal}{$MOD.NOTICE_DURATION_TIME}{literal}\'); return false; } return true; }</script>{/literal}<input id="duration_hours" name="duration_hours" tabindex="1" size="2" maxlength="2" type="text" value="{$fields.duration_hours.value}" onkeyup="SugarWidgetScheduler.update_time();"/>{$fields.duration_minutes.value}&nbsp;<span class="dateFormat">{$MOD.LBL_HOURS_MINUTES}',
148 148
             'displayParams' =>
149 149
             array (
150
-              'required' => true,
150
+                'required' => true,
151
+            ),
151 152
             ),
152
-          ),
153 153
 //          array(
154 154
 //            'name' => 'reminder_time',
155 155
 //            'customCode' => '{include file="modules/Meetings/tpls/reminders.tpl"}',
@@ -164,21 +164,21 @@  discard block
 block discarded – undo
164 164
         ),
165 165
 
166 166
         array (
167
-          array (
167
+            array (
168 168
             'name' => 'assigned_user_name',
169 169
             'label' => 'LBL_ASSIGNED_TO_NAME',
170
-          ),
170
+            ),
171 171
         ),
172 172
 
173 173
         array (
174
-          array (
174
+            array (
175 175
             'name' => 'description',
176 176
             'comment' => 'Full text of the note',
177 177
             'label' => 'LBL_DESCRIPTION',
178
-          ),
178
+            ),
179
+        ),
179 180
         ),
180
-      ),
181 181
     ),
182
-  ),
182
+    ),
183 183
 );
184 184
 ?>
Please login to merge, or discard this patch.
Spacing   +35 added lines, -35 removed lines patch added patch discarded remove patch
@@ -38,19 +38,19 @@  discard block
 block discarded – undo
38 38
  ********************************************************************************/
39 39
 
40 40
 $viewdefs ['Calls'] =
41
-array (
41
+array(
42 42
   'QuickCreate' =>
43
-  array (
43
+  array(
44 44
     'templateMeta' =>
45
-    array (
45
+    array(
46 46
         'includes' => array(
47 47
             array('file' => 'modules/Reminders/Reminders.js'),
48 48
         ),
49 49
       'maxColumns' => '2',
50 50
       'form' =>
51
-      array (
51
+      array(
52 52
         'hidden' =>
53
-        array (
53
+        array(
54 54
           0 => '<input type="hidden" name="isSaveAndNew" value="false">',
55 55
           1 => '<input type="hidden" name="send_invites">',
56 56
           2 => '<input type="hidden" name="user_invitees">',
@@ -58,95 +58,95 @@  discard block
 block discarded – undo
58 58
           4 => '<input type="hidden" name="contact_invitees">',
59 59
         ),
60 60
         'buttons' =>
61
-        array (
61
+        array(
62 62
           0 =>
63
-          array (
63
+          array(
64 64
             'customCode' => '<input title="{$APP.LBL_SAVE_BUTTON_TITLE}" accessKey="{$APP.LBL_SAVE_BUTTON_KEY}" class="button" onclick="SUGAR.calls.fill_invitees();this.form.action.value=\'Save\'; this.form.return_action.value=\'DetailView\'; {if isset($smarty.request.isDuplicate) && $smarty.request.isDuplicate eq "true"}this.form.return_id.value=\'\'; {/if}return check_form(\'EditView\') && isValidDuration();" type="submit" name="button" value="{$APP.LBL_SAVE_BUTTON_LABEL}">',
65 65
           ),
66 66
           1 => 'CANCEL',
67 67
           2 =>
68
-          array (
68
+          array(
69 69
             'customCode' => '<input title="{$MOD.LBL_SEND_BUTTON_TITLE}" class="button" onclick="this.form.send_invites.value=\'1\';SUGAR.calls.fill_invitees();this.form.action.value=\'Save\';this.form.return_action.value=\'EditView\';this.form.return_module.value=\'{$smarty.request.return_module}\';return check_form(\'EditView\') && isValidDuration();" type="submit" name="button" value="{$MOD.LBL_SEND_BUTTON_LABEL}">',
70 70
           ),
71 71
           3 =>
72
-          array (
72
+          array(
73 73
             'customCode' => '{if $fields.status.value != "Held"}<input title="{$APP.LBL_CLOSE_AND_CREATE_BUTTON_TITLE}" class="button" onclick="SUGAR.calls.fill_invitees(); this.form.status.value=\'Held\'; this.form.action.value=\'Save\'; this.form.return_module.value=\'Calls\'; this.form.isDuplicate.value=true; this.form.isSaveAndNew.value=true; this.form.return_action.value=\'EditView\'; this.form.return_id.value=\'{$fields.id.value}\'; return check_form(\'EditView\') && isValidDuration();" type="submit" name="button" value="{$APP.LBL_CLOSE_AND_CREATE_BUTTON_LABEL}">{/if}',
74 74
           ),
75 75
         ),
76 76
       ),
77 77
       'widths' =>
78
-      array (
78
+      array(
79 79
         0 =>
80
-        array (
80
+        array(
81 81
           'label' => '10',
82 82
           'field' => '30',
83 83
         ),
84 84
         1 =>
85
-        array (
85
+        array(
86 86
           'label' => '10',
87 87
           'field' => '30',
88 88
         ),
89 89
       ),
90 90
       'javascript' => '<script type="text/javascript">{$JSON_CONFIG_JAVASCRIPT}</script>'.
91
-                '{sugar_getscript file="cache/include/javascript/sugar_grp_jsolait.js"}' .
91
+                '{sugar_getscript file="cache/include/javascript/sugar_grp_jsolait.js"}'.
92 92
                 '<script>toggle_portal_flag();function toggle_portal_flag()  {literal} { {/literal} {$TOGGLE_JS} {literal} } {/literal} </script>',
93 93
 
94 94
       'useTabs' => false,
95 95
     ),
96 96
     'panels' =>
97
-    array (
97
+    array(
98 98
       'default' =>
99
-      array (
100
-        array (
101
-          array (
99
+      array(
100
+        array(
101
+          array(
102 102
             'name' => 'name',
103 103
             'displayParams' =>
104
-            array (
104
+            array(
105 105
               'required' => true,
106 106
             ),
107 107
           ),
108
-          array (
108
+          array(
109 109
             'name' => 'status',
110 110
             'displayParams' =>
111
-            array (
111
+            array(
112 112
               'required' => true,
113 113
             ),
114 114
             'fields' =>
115
-            array (
116
-              array (
115
+            array(
116
+              array(
117 117
                 'name' => 'direction',
118 118
               ),
119
-              array (
119
+              array(
120 120
                 'name' => 'status',
121 121
               ),
122 122
             ),
123 123
           ),
124 124
         ),
125 125
 
126
-        array (
127
-          array (
126
+        array(
127
+          array(
128 128
             'name' => 'date_start',
129 129
             'type' => 'datetimecombo',
130 130
             'displayParams' =>
131
-            array (
131
+            array(
132 132
               'required' => true,
133 133
               'updateCallback' => 'SugarWidgetScheduler.update_time();',
134 134
             ),
135 135
             'label' => 'LBL_DATE_TIME',
136 136
           ),
137
-          array (
137
+          array(
138 138
             'name' => 'parent_name',
139 139
             'label' => 'LBL_LIST_RELATED_TO',
140 140
           ),
141 141
         ),
142 142
 
143
-        array (
144
-          array (
143
+        array(
144
+          array(
145 145
             'name' => 'duration_hours',
146 146
             'label' => 'LBL_DURATION',
147 147
             'customCode' => '{literal}<script type="text/javascript">function isValidDuration() { form = document.getElementById(\'EditView\'); if ( form.duration_hours.value + form.duration_minutes.value <= 0 ) { alert(\'{/literal}{$MOD.NOTICE_DURATION_TIME}{literal}\'); return false; } return true; }</script>{/literal}<input id="duration_hours" name="duration_hours" tabindex="1" size="2" maxlength="2" type="text" value="{$fields.duration_hours.value}" onkeyup="SugarWidgetScheduler.update_time();"/>{$fields.duration_minutes.value}&nbsp;<span class="dateFormat">{$MOD.LBL_HOURS_MINUTES}',
148 148
             'displayParams' =>
149
-            array (
149
+            array(
150 150
               'required' => true,
151 151
             ),
152 152
           ),
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
 //            'customCode' => '{include file="modules/Meetings/tpls/reminders.tpl"}',
156 156
 //            'label' => 'LBL_REMINDER',
157 157
 //          ),
158
-            array (
158
+            array(
159 159
                 'name' => 'reminders',
160 160
                 'customCode' => '{include file="modules/Reminders/tpls/reminders.tpl"}',
161 161
                 'label' => 'LBL_REMINDERS',
@@ -163,15 +163,15 @@  discard block
 block discarded – undo
163 163
 
164 164
         ),
165 165
 
166
-        array (
167
-          array (
166
+        array(
167
+          array(
168 168
             'name' => 'assigned_user_name',
169 169
             'label' => 'LBL_ASSIGNED_TO_NAME',
170 170
           ),
171 171
         ),
172 172
 
173
-        array (
174
-          array (
173
+        array(
174
+          array(
175 175
             'name' => 'description',
176 176
             'comment' => 'Full text of the note',
177 177
             'label' => 'LBL_DESCRIPTION',
Please login to merge, or discard this patch.
modules/Calls/metadata/listviewdefs.php 2 patches
Indentation   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -39,8 +39,8 @@  discard block
 block discarded – undo
39 39
 
40 40
 $listViewDefs ['Calls'] = 
41 41
 array (
42
-  'SET_COMPLETE' => 
43
-  array (
42
+    'SET_COMPLETE' => 
43
+    array (
44 44
     'width' => '1%',
45 45
     'label' => 'LBL_LIST_CLOSE',
46 46
     'link' => true,
@@ -48,25 +48,25 @@  discard block
 block discarded – undo
48 48
     'default' => true,
49 49
     'related_fields' => 
50 50
     array (
51
-      0 => 'status',
51
+        0 => 'status',
52
+    ),
52 53
     ),
53
-  ),
54
-  'DIRECTION' => 
55
-  array (
54
+    'DIRECTION' => 
55
+    array (
56 56
     'width' => '10%',
57 57
     'label' => 'LBL_LIST_DIRECTION',
58 58
     'link' => false,
59 59
     'default' => true,
60
-  ),
61
-  'NAME' => 
62
-  array (
60
+    ),
61
+    'NAME' => 
62
+    array (
63 63
     'width' => '40%',
64 64
     'label' => 'LBL_LIST_SUBJECT',
65 65
     'link' => true,
66 66
     'default' => true,
67
-  ),
68
-  'CONTACT_NAME' => 
69
-  array (
67
+    ),
68
+    'CONTACT_NAME' => 
69
+    array (
70 70
     'width' => '20%',
71 71
     'label' => 'LBL_LIST_CONTACT',
72 72
     'link' => true,
@@ -74,9 +74,9 @@  discard block
 block discarded – undo
74 74
     'module' => 'Contacts',
75 75
     'default' => true,
76 76
     'ACLTag' => 'CONTACT',
77
-  ),
78
-  'PARENT_NAME' => 
79
-  array (
77
+    ),
78
+    'PARENT_NAME' => 
79
+    array (
80 80
     'width' => '20%',
81 81
     'label' => 'LBL_LIST_RELATED_TO',
82 82
     'dynamic_module' => 'PARENT_TYPE',
@@ -87,40 +87,40 @@  discard block
 block discarded – undo
87 87
     'ACLTag' => 'PARENT',
88 88
     'related_fields' => 
89 89
     array (
90
-      0 => 'parent_id',
91
-      1 => 'parent_type',
90
+        0 => 'parent_id',
91
+        1 => 'parent_type',
92
+    ),
92 93
     ),
93
-  ),
94
-  'DATE_START' => 
95
-  array (
94
+    'DATE_START' => 
95
+    array (
96 96
     'width' => '15%',
97 97
     'label' => 'LBL_LIST_DATE',
98 98
     'link' => false,
99 99
     'default' => true,
100 100
     'related_fields' => 
101 101
     array (
102
-      0 => 'time_start',
102
+        0 => 'time_start',
103
+    ),
103 104
     ),
104
-  ),
105
-  'ASSIGNED_USER_NAME' => 
106
-  array (
105
+    'ASSIGNED_USER_NAME' => 
106
+    array (
107 107
     'width' => '2%',
108 108
     'label' => 'LBL_LIST_ASSIGNED_TO_NAME',
109 109
     'module' => 'Employees',
110 110
     'id' => 'ASSIGNED_USER_ID',
111 111
     'default' => true,
112
-  ),
113
-  'STATUS' => 
114
-  array (
112
+    ),
113
+    'STATUS' => 
114
+    array (
115 115
     'width' => '10%',
116 116
     'label' => 'LBL_STATUS',
117 117
     'link' => false,
118 118
     'default' => false,
119
-  ),
120
-  'DATE_ENTERED' => array (
119
+    ),
120
+    'DATE_ENTERED' => array (
121 121
     'width' => '10%',
122 122
     'label' => 'LBL_DATE_ENTERED',
123 123
     'default' => true
124
-  ),  
124
+    ),  
125 125
 );
126 126
 ?>
Please login to merge, or discard this patch.
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -38,35 +38,35 @@  discard block
 block discarded – undo
38 38
  ********************************************************************************/
39 39
 
40 40
 $listViewDefs ['Calls'] = 
41
-array (
41
+array(
42 42
   'SET_COMPLETE' => 
43
-  array (
43
+  array(
44 44
     'width' => '1%',
45 45
     'label' => 'LBL_LIST_CLOSE',
46 46
     'link' => true,
47 47
     'sortable' => false,
48 48
     'default' => true,
49 49
     'related_fields' => 
50
-    array (
50
+    array(
51 51
       0 => 'status',
52 52
     ),
53 53
   ),
54 54
   'DIRECTION' => 
55
-  array (
55
+  array(
56 56
     'width' => '10%',
57 57
     'label' => 'LBL_LIST_DIRECTION',
58 58
     'link' => false,
59 59
     'default' => true,
60 60
   ),
61 61
   'NAME' => 
62
-  array (
62
+  array(
63 63
     'width' => '40%',
64 64
     'label' => 'LBL_LIST_SUBJECT',
65 65
     'link' => true,
66 66
     'default' => true,
67 67
   ),
68 68
   'CONTACT_NAME' => 
69
-  array (
69
+  array(
70 70
     'width' => '20%',
71 71
     'label' => 'LBL_LIST_CONTACT',
72 72
     'link' => true,
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
     'ACLTag' => 'CONTACT',
77 77
   ),
78 78
   'PARENT_NAME' => 
79
-  array (
79
+  array(
80 80
     'width' => '20%',
81 81
     'label' => 'LBL_LIST_RELATED_TO',
82 82
     'dynamic_module' => 'PARENT_TYPE',
@@ -86,24 +86,24 @@  discard block
 block discarded – undo
86 86
     'sortable' => false,
87 87
     'ACLTag' => 'PARENT',
88 88
     'related_fields' => 
89
-    array (
89
+    array(
90 90
       0 => 'parent_id',
91 91
       1 => 'parent_type',
92 92
     ),
93 93
   ),
94 94
   'DATE_START' => 
95
-  array (
95
+  array(
96 96
     'width' => '15%',
97 97
     'label' => 'LBL_LIST_DATE',
98 98
     'link' => false,
99 99
     'default' => true,
100 100
     'related_fields' => 
101
-    array (
101
+    array(
102 102
       0 => 'time_start',
103 103
     ),
104 104
   ),
105 105
   'ASSIGNED_USER_NAME' => 
106
-  array (
106
+  array(
107 107
     'width' => '2%',
108 108
     'label' => 'LBL_LIST_ASSIGNED_TO_NAME',
109 109
     'module' => 'Employees',
@@ -111,13 +111,13 @@  discard block
 block discarded – undo
111 111
     'default' => true,
112 112
   ),
113 113
   'STATUS' => 
114
-  array (
114
+  array(
115 115
     'width' => '10%',
116 116
     'label' => 'LBL_STATUS',
117 117
     'link' => false,
118 118
     'default' => false,
119 119
   ),
120
-  'DATE_ENTERED' => array (
120
+  'DATE_ENTERED' => array(
121 121
     'width' => '10%',
122 122
     'label' => 'LBL_DATE_ENTERED',
123 123
     'default' => true
Please login to merge, or discard this patch.
modules/Calls/views/view.edit.php 3 patches
Indentation   +34 added lines, -34 removed lines patch added patch discarded remove patch
@@ -44,46 +44,46 @@
 block discarded – undo
44 44
 
45 45
 class CallsViewEdit extends ViewEdit
46 46
 {
47
- 	/**
48
- 	 * @see SugarView::preDisplay()
49
- 	 */
50
- 	public function preDisplay()
51
- 	{
52
- 		if($_REQUEST['module'] != 'Calls' && isset($_REQUEST['status']) && empty($_REQUEST['status'])) {
53
-	       $this->bean->status = '';
54
- 		} //if
47
+        /**
48
+         * @see SugarView::preDisplay()
49
+         */
50
+        public function preDisplay()
51
+        {
52
+            if($_REQUEST['module'] != 'Calls' && isset($_REQUEST['status']) && empty($_REQUEST['status'])) {
53
+            $this->bean->status = '';
54
+            } //if
55 55
         if(!empty($_REQUEST['status']) && ($_REQUEST['status'] == 'Held')) {
56
-	       $this->bean->status = 'Held';
57
- 		}
58
- 		parent::preDisplay();
59
- 	}
56
+            $this->bean->status = 'Held';
57
+            }
58
+            parent::preDisplay();
59
+        }
60 60
 
61
- 	/**
62
- 	 * @see SugarView::display()
63
- 	 */
64
- 	public function display()
65
- 	{
66
- 		global $json;
61
+        /**
62
+         * @see SugarView::display()
63
+         */
64
+        public function display()
65
+        {
66
+            global $json;
67 67
         $json = getJSONobj();
68 68
         $json_config = new json_config();
69
-		if (isset($this->bean->json_id) && !empty ($this->bean->json_id)) {
70
-			$javascript = $json_config->get_static_json_server(false, true, 'Calls', $this->bean->json_id);
69
+        if (isset($this->bean->json_id) && !empty ($this->bean->json_id)) {
70
+            $javascript = $json_config->get_static_json_server(false, true, 'Calls', $this->bean->json_id);
71 71
 
72
-		} else {
73
-			$this->bean->json_id = $this->bean->id;
74
-			$javascript = $json_config->get_static_json_server(false, true, 'Calls', $this->bean->id);
72
+        } else {
73
+            $this->bean->json_id = $this->bean->id;
74
+            $javascript = $json_config->get_static_json_server(false, true, 'Calls', $this->bean->id);
75 75
 
76
-		}
77
- 		$this->ss->assign('JSON_CONFIG_JAVASCRIPT', $javascript);
76
+        }
77
+            $this->ss->assign('JSON_CONFIG_JAVASCRIPT', $javascript);
78 78
 
79
-		$this->ss->assign('remindersData', Reminder::loadRemindersData('Calls', $this->bean->id, $this->ev->isDuplicate));
80
-		$this->ss->assign('remindersDataJson', Reminder::loadRemindersDataJson('Calls', $this->bean->id, $this->ev->isDuplicate));
81
-		$this->ss->assign('remindersDefaultValuesDataJson', Reminder::loadRemindersDefaultValuesDataJson());
82
-		$this->ss->assign('remindersDisabled', json_encode(false));
79
+        $this->ss->assign('remindersData', Reminder::loadRemindersData('Calls', $this->bean->id, $this->ev->isDuplicate));
80
+        $this->ss->assign('remindersDataJson', Reminder::loadRemindersDataJson('Calls', $this->bean->id, $this->ev->isDuplicate));
81
+        $this->ss->assign('remindersDefaultValuesDataJson', Reminder::loadRemindersDefaultValuesDataJson());
82
+        $this->ss->assign('remindersDisabled', json_encode(false));
83 83
 
84
- 		if($this->ev->isDuplicate){
85
-	        $this->bean->status = $this->bean->getDefaultStatus();
86
- 		} //if
87
- 		parent::display();
88
- 	}
84
+            if($this->ev->isDuplicate){
85
+            $this->bean->status = $this->bean->getDefaultStatus();
86
+            } //if
87
+            parent::display();
88
+        }
89 89
 }
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
 /*********************************************************************************
5 5
  * SugarCRM Community Edition is a customer relationship management program developed by
@@ -49,10 +49,10 @@  discard block
 block discarded – undo
49 49
  	 */
50 50
  	public function preDisplay()
51 51
  	{
52
- 		if($_REQUEST['module'] != 'Calls' && isset($_REQUEST['status']) && empty($_REQUEST['status'])) {
52
+ 		if ($_REQUEST['module'] != 'Calls' && isset($_REQUEST['status']) && empty($_REQUEST['status'])) {
53 53
 	       $this->bean->status = '';
54 54
  		} //if
55
-        if(!empty($_REQUEST['status']) && ($_REQUEST['status'] == 'Held')) {
55
+        if (!empty($_REQUEST['status']) && ($_REQUEST['status'] == 'Held')) {
56 56
 	       $this->bean->status = 'Held';
57 57
  		}
58 58
  		parent::preDisplay();
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
 		$this->ss->assign('remindersDefaultValuesDataJson', Reminder::loadRemindersDefaultValuesDataJson());
82 82
 		$this->ss->assign('remindersDisabled', json_encode(false));
83 83
 
84
- 		if($this->ev->isDuplicate){
84
+ 		if ($this->ev->isDuplicate) {
85 85
 	        $this->bean->status = $this->bean->getDefaultStatus();
86 86
  		} //if
87 87
  		parent::display();
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,7 @@
 block discarded – undo
1 1
 <?php
2
-if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
2
+if(!defined('sugarEntry') || !sugarEntry) {
3
+    die('Not A Valid Entry Point');
4
+}
3 5
 /*********************************************************************************
4 6
  * SugarCRM Community Edition is a customer relationship management program developed by
5 7
  * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc.
Please login to merge, or discard this patch.
modules/Emails/SubPanelViewRecipients.php 3 patches
Indentation   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -86,29 +86,29 @@  discard block
 block discarded – undo
86 86
 $oddRow = true;
87 87
 foreach($focus_users_list as $user)
88 88
 {
89
-	$user_fields = array(
90
-		'USER_NAME' => $user->user_name,
91
-		'FULL_NAME' => $user->first_name." ".$user->last_name,
92
-		'ID' => $user->id,
93
-		'EMAIL' => $user->email1,
94
-		'PHONE_WORK' => $user->phone_work
95
-	);
89
+    $user_fields = array(
90
+        'USER_NAME' => $user->user_name,
91
+        'FULL_NAME' => $user->first_name." ".$user->last_name,
92
+        'ID' => $user->id,
93
+        'EMAIL' => $user->email1,
94
+        'PHONE_WORK' => $user->phone_work
95
+    );
96 96
 
97
-	$xtpl->assign("USER", $user_fields);
97
+    $xtpl->assign("USER", $user_fields);
98 98
 
99
-	if($oddRow)
99
+    if($oddRow)
100 100
     {
101 101
         //todo move to themes
102
-		$xtpl->assign("ROW_COLOR", 'oddListRow');
102
+        $xtpl->assign("ROW_COLOR", 'oddListRow');
103 103
     }
104 104
     else
105 105
     {
106 106
         //todo move to themes
107
-		$xtpl->assign("ROW_COLOR", 'evenListRow');
107
+        $xtpl->assign("ROW_COLOR", 'evenListRow');
108 108
     }
109 109
     $oddRow = !$oddRow;
110 110
 
111
-	$xtpl->parse("users.row");
111
+    $xtpl->parse("users.row");
112 112
 // Put the rows in.
113 113
 }
114 114
 
@@ -120,30 +120,30 @@  discard block
 block discarded – undo
120 120
 
121 121
 foreach($focus_contacts_list as $contact)
122 122
 {
123
-	$contact_fields = array(
124
-		'FIRST_NAME' => $contact->first_name,
125
-		'LAST_NAME' => $contact->last_name,
126
-		'ACCOUNT_NAME' => $contact->account_name,
127
-		'ID' => $contact->id,
128
-		'EMAIL' => $contact->email1,
129
-		'PHONE_WORK' => $contact->phone_work
130
-	);
131
-
132
-	$xtpl->assign("CONTACT", $contact_fields);
133
-
134
-	if($oddRow)
123
+    $contact_fields = array(
124
+        'FIRST_NAME' => $contact->first_name,
125
+        'LAST_NAME' => $contact->last_name,
126
+        'ACCOUNT_NAME' => $contact->account_name,
127
+        'ID' => $contact->id,
128
+        'EMAIL' => $contact->email1,
129
+        'PHONE_WORK' => $contact->phone_work
130
+    );
131
+
132
+    $xtpl->assign("CONTACT", $contact_fields);
133
+
134
+    if($oddRow)
135 135
     {
136 136
         //todo move to themes
137
-		$xtpl->assign("ROW_COLOR", 'oddListRow');
137
+        $xtpl->assign("ROW_COLOR", 'oddListRow');
138 138
     }
139 139
     else
140 140
     {
141 141
         //todo move to themes
142
-		$xtpl->assign("ROW_COLOR", 'evenListRow');
142
+        $xtpl->assign("ROW_COLOR", 'evenListRow');
143 143
     }
144 144
     $oddRow = !$oddRow;
145 145
 
146
-	$xtpl->parse("contacts.row");
146
+    $xtpl->parse("contacts.row");
147 147
 // Put the rows in.
148 148
 }
149 149
 
Please login to merge, or discard this 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.
@@ -76,15 +76,15 @@  discard block
 block discarded – undo
76 76
 
77 77
 // Stick the form header out there.
78 78
 echo get_form_header($mod_strings['LBL_INVITEE'], $button, false);
79
-$xtpl=new XTemplate ('modules/Emails/SubPanelViewRecipients.html');
79
+$xtpl = new XTemplate('modules/Emails/SubPanelViewRecipients.html');
80 80
 $xtpl->assign("MOD", $mod_strings);
81 81
 $xtpl->assign("APP", $app_strings);
82 82
 $xtpl->assign("RETURN_URL", "&return_module=$currentModule&return_action=DetailView&return_id=$focus->id");
83 83
 $xtpl->assign("EMAIL_ID", $focus->id);
84
-$xtpl->assign("DELETE_INLINE_PNG",  SugarThemeRegistry::current()->getImage('delete_inline','align="absmiddle" border="0"',null,null,'.gif',$app_strings['LNK_REMOVE']));
85
-$xtpl->assign("EDIT_INLINE_PNG",  SugarThemeRegistry::current()->getImage('edit_inline','align="absmiddle" border="0"', null,null,'.gif',$app_strings['LNK_EDIT']));
84
+$xtpl->assign("DELETE_INLINE_PNG", SugarThemeRegistry::current()->getImage('delete_inline', 'align="absmiddle" border="0"', null, null, '.gif', $app_strings['LNK_REMOVE']));
85
+$xtpl->assign("EDIT_INLINE_PNG", SugarThemeRegistry::current()->getImage('edit_inline', 'align="absmiddle" border="0"', null, null, '.gif', $app_strings['LNK_EDIT']));
86 86
 $oddRow = true;
87
-foreach($focus_users_list as $user)
87
+foreach ($focus_users_list as $user)
88 88
 {
89 89
 	$user_fields = array(
90 90
 		'USER_NAME' => $user->user_name,
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
 
97 97
 	$xtpl->assign("USER", $user_fields);
98 98
 
99
-	if($oddRow)
99
+	if ($oddRow)
100 100
     {
101 101
         //todo move to themes
102 102
 		$xtpl->assign("ROW_COLOR", 'oddListRow');
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
 $oddRow = true;
119 119
 print count($focus_contacts_list);
120 120
 
121
-foreach($focus_contacts_list as $contact)
121
+foreach ($focus_contacts_list as $contact)
122 122
 {
123 123
 	$contact_fields = array(
124 124
 		'FIRST_NAME' => $contact->first_name,
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
 
132 132
 	$xtpl->assign("CONTACT", $contact_fields);
133 133
 
134
-	if($oddRow)
134
+	if ($oddRow)
135 135
     {
136 136
         //todo move to themes
137 137
 		$xtpl->assign("ROW_COLOR", 'oddListRow');
Please login to merge, or discard this patch.
Braces   +13 added lines, -8 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.
@@ -63,14 +65,19 @@  discard block
 block discarded – undo
63 65
 
64 66
 $button  = "<table cellspacing='0' cellpadding='1' border='0'><form border='0' action='index.php' method='post' name='form' id='form'>\n";
65 67
 $button .= "<input type='hidden' name='module' value='Contacts'>\n";
66
-if ($currentModule == 'Accounts') $button .= "<input type='hidden' name='account_id' value='$focus->id'>\n<input type='hidden' name='account_name' value='$focus->name'>\n";
68
+if ($currentModule == 'Accounts') {
69
+    $button .= "<input type='hidden' name='account_id' value='$focus->id'>\n<input type='hidden' name='account_name' value='$focus->name'>\n";
70
+}
67 71
 $button .= "<input type='hidden' name='return_module' value='".$currentModule."'>\n";
68 72
 $button .= "<input type='hidden' name='return_action' value='".$action."'>\n";
69 73
 $button .= "<input type='hidden' name='return_id' value='".$focus->id."'>\n";
70 74
 $button .= "<input type='hidden' name='action'>\n";
71 75
 $button .= "<tr><td>&nbsp;</td>";
72
-if ($focus->parent_type == "Accounts") $button .= "<td><input title='".$app_strings['LBL_SELECT_CONTACT_BUTTON_TITLE']."' type='button' class='button' value='".$app_strings['LBL_SELECT_CONTACT_BUTTON_LABEL']."' name='button' LANGUAGE=javascript onclick='window.open(\"index.php?module=Contacts&action=Popup&html=Popup_picker&form=DetailView&form_submit=true&query=true&account_id=$focus->parent_id&account_name=".urlencode($focus->parent_name)."\",\"new\",\"width=600,height=400,resizable=1,scrollbars=1\");'></td>\n";
73
-else $button .= "<td><input title='".$app_strings['LBL_SELECT_CONTACT_BUTTON_TITLE']."' type='button' class='button' value='".$app_strings['LBL_SELECT_CONTACT_BUTTON_LABEL']."' name='button' LANGUAGE=javascript onclick='window.open(\"index.php?module=Contacts&action=Popup&html=Popup_picker&form=DetailView&form_submit=true\",\"new\",\"width=600,height=400,resizable=1,scrollbars=1\");'></td>\n";
76
+if ($focus->parent_type == "Accounts") {
77
+    $button .= "<td><input title='".$app_strings['LBL_SELECT_CONTACT_BUTTON_TITLE']."' type='button' class='button' value='".$app_strings['LBL_SELECT_CONTACT_BUTTON_LABEL']."' name='button' LANGUAGE=javascript onclick='window.open(\"index.php?module=Contacts&action=Popup&html=Popup_picker&form=DetailView&form_submit=true&query=true&account_id=$focus->parent_id&account_name=".urlencode($focus->parent_name)."\",\"new\",\"width=600,height=400,resizable=1,scrollbars=1\");'></td>\n";
78
+} else {
79
+    $button .= "<td><input title='".$app_strings['LBL_SELECT_CONTACT_BUTTON_TITLE']."' type='button' class='button' value='".$app_strings['LBL_SELECT_CONTACT_BUTTON_LABEL']."' name='button' LANGUAGE=javascript onclick='window.open(\"index.php?module=Contacts&action=Popup&html=Popup_picker&form=DetailView&form_submit=true\",\"new\",\"width=600,height=400,resizable=1,scrollbars=1\");'></td>\n";
80
+}
74 81
 $button .= "<td><input title='".$app_strings['LBL_SELECT_USER_BUTTON_TITLE']."' type='button' class='button' value='".$app_strings['LBL_SELECT_USER_BUTTON_LABEL']."' name='button' LANGUAGE=javascript onclick='window.open(\"index.php?module=Users&action=Popup&html=Popup_picker&form=DetailView&form_submit=true\",\"new\",\"width=600,height=400,resizable=1,scrollbars=1\");'></td>\n";
75 82
 $button .= "</tr></form></table>\n";
76 83
 
@@ -100,8 +107,7 @@  discard block
 block discarded – undo
100 107
     {
101 108
         //todo move to themes
102 109
 		$xtpl->assign("ROW_COLOR", 'oddListRow');
103
-    }
104
-    else
110
+    } else
105 111
     {
106 112
         //todo move to themes
107 113
 		$xtpl->assign("ROW_COLOR", 'evenListRow');
@@ -135,8 +141,7 @@  discard block
 block discarded – undo
135 141
     {
136 142
         //todo move to themes
137 143
 		$xtpl->assign("ROW_COLOR", 'oddListRow');
138
-    }
139
-    else
144
+    } else
140 145
     {
141 146
         //todo move to themes
142 147
 		$xtpl->assign("ROW_COLOR", 'evenListRow');
Please login to merge, or discard this patch.
modules/Activities/SetAcceptStatus.php 2 patches
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.
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
 
43 43
 
44 44
 
45
-    global $json,$current_user;
45
+    global $json, $current_user;
46 46
     
47 47
     
48 48
     if ($_REQUEST['object_type'] == "Meeting")
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
         $focus = new Meeting();
51 53
         $focus->id = $_REQUEST['object_id'];
52 54
         $test = $focus->set_accept_status($current_user, $_REQUEST['accept_status']);
53
-    }
54
-    else if ($_REQUEST['object_type'] == "Call")
55
+    } else if ($_REQUEST['object_type'] == "Call")
55 56
     {
56 57
         $focus = new Call();
57 58
         $focus->id = $_REQUEST['object_id'];
Please login to merge, or discard this patch.