Completed
Push — develop ( 7c1bda...edae1e )
by Adam
18:38 queued 03:14
created
modules/ProjectTask/metadata/searchdefs.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
 						),
53 53
 						'advanced_search' => array(
54 54
 							'name',
55
-							array('name' => 'project_name', 'label'=>'LBL_PROJECT_NAME' ), 
55
+							array('name' => 'project_name', 'label'=>'LBL_PROJECT_NAME'), 
56 56
 							array('name' => 'assigned_user_id', 'type' => 'enum', 'label' => 'LBL_ASSIGNED_TO', 'function' => array('name' => 'get_user_array', 'params' => array(false))),
57 57
 							
58 58
 						),
Please login to merge, or discard this patch.
modules/ProjectTask/metadata/SearchFields.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
2
+if (!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
3 3
 /*********************************************************************************
4 4
  * SugarCRM Community Edition is a customer relationship management program developed by
5 5
  * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc.
@@ -39,26 +39,26 @@  discard block
 block discarded – undo
39 39
  ********************************************************************************/
40 40
 
41 41
 $searchFields['ProjectTask'] = 
42
-    array (
43
-        'name' => array( 'query_type'=>'default'),
44
-        'current_user_only'=> array('query_type'=>'default','db_field'=>array('assigned_user_id'),'my_items'=>true, 'vname' => 'LBL_CURRENT_USER_FILTER', 'type' => 'bool'),
45
-        'project_name' => array('query_type'=>'default','db_field'=>array('project.name')),
42
+    array(
43
+        'name' => array('query_type'=>'default'),
44
+        'current_user_only'=> array('query_type'=>'default', 'db_field'=>array('assigned_user_id'), 'my_items'=>true, 'vname' => 'LBL_CURRENT_USER_FILTER', 'type' => 'bool'),
45
+        'project_name' => array('query_type'=>'default', 'db_field'=>array('project.name')),
46 46
 		'assigned_user_id' => array('query_type'=>'default'),
47 47
         //'status'=> array('query_type'=>'default', 'options' => 'project_task_status_options', 'template_var' => 'STATUS_FILTER')
48 48
 		//Range Search Support 
49
-	   'range_date_entered' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
50
-	   'start_range_date_entered' => array ('query_type' => 'default',  'enable_range_search' => true, 'is_date_field' => true),
51
-	   'end_range_date_entered' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
52
-	   'range_date_modified' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
53
-	   'start_range_date_modified' => array ('query_type' => 'default',  'enable_range_search' => true, 'is_date_field' => true),
54
-       'end_range_date_modified' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),	
49
+	   'range_date_entered' => array('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
50
+	   'start_range_date_entered' => array('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
51
+	   'end_range_date_entered' => array('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
52
+	   'range_date_modified' => array('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
53
+	   'start_range_date_modified' => array('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
54
+       'end_range_date_modified' => array('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),	
55 55
 	    
56
-	   'range_date_start' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
57
-	   'start_range_date_start' => array ('query_type' => 'default',  'enable_range_search' => true, 'is_date_field' => true),
58
-	   'end_range_date_start' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
59
-	   'range_date_finish' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
60
-	   'start_range_date_finish' => array ('query_type' => 'default',  'enable_range_search' => true, 'is_date_field' => true),
61
-       'end_range_date_finish' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),	
56
+	   'range_date_start' => array('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
57
+	   'start_range_date_start' => array('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
58
+	   'end_range_date_start' => array('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
59
+	   'range_date_finish' => array('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
60
+	   'start_range_date_finish' => array('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),
61
+       'end_range_date_finish' => array('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true),	
62 62
 		//Range Search Support 		                
63 63
     );
64 64
 ?>
Please login to merge, or discard this patch.
modules/ProjectTask/metadata/detailviewdefs.php 1 patch
Spacing   +36 added lines, -36 removed lines patch added patch discarded remove patch
@@ -1,35 +1,35 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 $viewdefs ['ProjectTask'] = 
3
-array (
3
+array(
4 4
   'DetailView' => 
5
-  array (
5
+  array(
6 6
     'templateMeta' => 
7
-    array (
7
+    array(
8 8
       'maxColumns' => '2',
9 9
       'widths' => 
10
-      array (
10
+      array(
11 11
         0 => 
12
-        array (
12
+        array(
13 13
           'label' => '10',
14 14
           'field' => '30',
15 15
         ),
16 16
         1 => 
17
-        array (
17
+        array(
18 18
           'label' => '10',
19 19
           'field' => '30',
20 20
         ),
21 21
       ),
22 22
       'includes' => 
23
-      array (
23
+      array(
24 24
         0 => 
25
-        array (
25
+        array(
26 26
           'file' => 'modules/ProjectTask/ProjectTask.js',
27 27
         ),
28 28
       ),
29 29
       'form' => 
30
-      array (
30
+      array(
31 31
         'buttons' => 
32
-        array (
32
+        array(
33 33
           0 => 'EDIT',
34 34
           1 => 'DUPLICATE',
35 35
           2 => 'DELETE',
@@ -38,14 +38,14 @@  discard block
 block discarded – undo
38 38
       ),
39 39
       'useTabs' => true,
40 40
       'tabDefs' => 
41
-      array (
41
+      array(
42 42
         'DEFAULT' => 
43
-        array (
43
+        array(
44 44
           'newTab' => true,
45 45
           'panelDefault' => 'expanded',
46 46
         ),
47 47
         'LBL_PANEL_TIMELINE' =>
48
-        array (
48
+        array(
49 49
           'newTab' => true,
50 50
           'panelDefault' => 'expanded',
51 51
         ),
@@ -53,28 +53,28 @@  discard block
 block discarded – undo
53 53
       'syncDetailEditViews' => true,
54 54
     ),
55 55
     'panels' => 
56
-    array (
56
+    array(
57 57
       'default' => 
58
-      array (
58
+      array(
59 59
         0 => 
60
-        array (
60
+        array(
61 61
           0 => 'name',
62 62
           1 => 'status',
63 63
         ),
64 64
         1 => 
65
-        array (
65
+        array(
66 66
           0 => 'date_start',
67 67
           1 => 'date_finish',
68 68
         ),
69 69
         2 => 
70
-        array (
70
+        array(
71 71
           0 => 'priority',
72 72
           1 => 'percent_complete',
73 73
         ),
74 74
         3 => 
75
-        array (
75
+        array(
76 76
           0 => 
77
-          array (
77
+          array(
78 78
             'name' => 'project_name',
79 79
             'customCode' => '<a href="index.php?module=Project&action=DetailView&record={$fields.project_id.value}">{$fields.project_name.value}&nbsp;</a>',
80 80
             'label' => 'LBL_PARENT_ID',
@@ -82,69 +82,69 @@  discard block
 block discarded – undo
82 82
           1 => 'task_number',
83 83
         ),
84 84
         4 => 
85
-        array (
85
+        array(
86 86
           0 => 
87
-          array (
87
+          array(
88 88
             'name' => 'assigned_user_name',
89 89
             'label' => 'LBL_ASSIGNED_USER_ID',
90 90
           ),
91 91
         ),
92 92
         5 => 
93
-        array (
93
+        array(
94 94
           0 => 
95
-          array (
95
+          array(
96 96
             'name' => 'description',
97 97
           ),
98 98
         ),
99 99
       ),
100 100
       'LBL_PANEL_TIMELINE' =>
101
-      array (
101
+      array(
102 102
         0 => 
103
-        array (
103
+        array(
104 104
           0 => 'estimated_effort',
105 105
           1 => 
106
-          array (
106
+          array(
107 107
             'name' => 'actual_effort',
108 108
             'label' => 'LBL_ACTUAL_EFFORT',
109 109
           ),
110 110
         ),
111 111
         1 => 
112
-        array (
112
+        array(
113 113
           0 => 
114
-          array (
114
+          array(
115 115
             'name' => 'predecessors',
116 116
             'label' => 'LBL_PREDECESSORS',
117 117
           ),
118 118
           1 => 
119
-          array (
119
+          array(
120 120
             'name' => 'relationship_type',
121 121
             'studio' => 'visible',
122 122
             'label' => 'LBL_RELATIONSHIP_TYPE',
123 123
           ),
124 124
         ),
125 125
         2 => 
126
-        array (
126
+        array(
127 127
           0 => 'order_number',
128 128
           1 => 
129
-          array (
129
+          array(
130 130
             'name' => 'milestone_flag',
131 131
             'label' => 'LBL_MILESTONE_FLAG',
132 132
           ),
133 133
         ),
134 134
         3 => 
135
-        array (
135
+        array(
136 136
           0 => 'utilization',
137 137
           1 => '',
138 138
         ),
139 139
         4 => 
140
-        array (
140
+        array(
141 141
           0 => 
142
-          array (
142
+          array(
143 143
             'name' => 'duration',
144 144
             'label' => 'LBL_DURATION',
145 145
           ),
146 146
           1 => 
147
-          array (
147
+          array(
148 148
             'name' => 'duration_unit',
149 149
             'label' => 'LBL_DURATION_UNIT',
150 150
           ),
Please login to merge, or discard this patch.
modules/ProjectTask/metadata/quickcreatedefs.php 1 patch
Spacing   +32 added lines, -32 removed lines patch added patch discarded remove patch
@@ -1,123 +1,123 @@
 block discarded – undo
1 1
 <?php
2 2
 $viewdefs ['ProjectTask'] = 
3
-array (
3
+array(
4 4
   'QuickCreate' => 
5
-  array (
5
+  array(
6 6
     'templateMeta' => 
7
-    array (
7
+    array(
8 8
       'maxColumns' => '2',
9 9
       'widths' => 
10
-      array (
10
+      array(
11 11
         0 => 
12
-        array (
12
+        array(
13 13
           'label' => '10',
14 14
           'field' => '30',
15 15
         ),
16 16
         1 => 
17
-        array (
17
+        array(
18 18
           'label' => '10',
19 19
           'field' => '30',
20 20
         ),
21 21
       ),
22 22
       'includes' => 
23
-      array (
23
+      array(
24 24
         0 => 
25
-        array (
25
+        array(
26 26
           'file' => 'modules/ProjectTask/ProjectTask.js',
27 27
         ),
28 28
       ),
29 29
     ),
30 30
     'panels' => 
31
-    array (
31
+    array(
32 32
       'default' => 
33
-      array (
33
+      array(
34 34
         0 => 
35
-        array (
35
+        array(
36 36
           0 => 
37
-          array (
37
+          array(
38 38
             'name' => 'name',
39 39
             'label' => 'LBL_NAME',
40 40
           ),
41 41
           1 => 
42
-          array (
42
+          array(
43 43
             'name' => 'project_task_id',
44 44
             'label' => 'LBL_TASK_ID',
45 45
           ),
46 46
         ),
47 47
         1 => 
48
-        array (
48
+        array(
49 49
           0 => 
50
-          array (
50
+          array(
51 51
             'name' => 'date_start',
52 52
           ),
53 53
           1 => 
54
-          array (
54
+          array(
55 55
             'name' => 'date_finish',
56 56
           ),
57 57
         ),
58 58
         2 => 
59
-        array (
59
+        array(
60 60
           'name' => 'assigned_user_name',
61 61
         ),
62 62
         3 => 
63
-        array (
63
+        array(
64 64
           0 => 
65
-          array (
65
+          array(
66 66
             'name' => 'status',
67 67
             'customCode' => '<select name="{$fields.status.name}" id="{$fields.status.name}" title="" tabindex="s" onchange="update_percent_complete(this.value);">{if isset($fields.status.value) && $fields.status.value != ""}{html_options options=$fields.status.options selected=$fields.status.value}{else}{html_options options=$fields.status.options selected=$fields.status.default}{/if}</select>',
68 68
           ),
69 69
           1 => 'priority',
70 70
         ),
71 71
         4 => 
72
-        array (
72
+        array(
73 73
           0 => 
74
-          array (
74
+          array(
75 75
             'name' => 'percent_complete',
76 76
             'customCode' => '<input type="text" name="{$fields.percent_complete.name}" id="{$fields.percent_complete.name}" size="30" value="{$fields.percent_complete.value}" title="" tabindex="0" onChange="update_status(this.value);" /></tr>',
77 77
           ),
78 78
         ),
79 79
         5 => 
80
-        array (
80
+        array(
81 81
           0 => 'milestone_flag',
82 82
         ),
83 83
         6 => 
84
-        array (
84
+        array(
85 85
           0 => 
86
-          array (
86
+          array(
87 87
             'name' => 'project_name',
88 88
             'label' => 'LBL_PROJECT_NAME',
89 89
           ),
90 90
         ),
91 91
         7 => 
92
-        array (
92
+        array(
93 93
           0 => 'task_number',
94 94
           1 => 'order_number',
95 95
         ),
96 96
         8 => 
97
-        array (
97
+        array(
98 98
           0 => 'estimated_effort',
99 99
           1 => 'utilization',
100 100
         ),
101 101
         9 => 
102
-        array (
102
+        array(
103 103
           0 => 
104
-          array (
104
+          array(
105 105
             'name' => 'description',
106 106
           ),
107 107
         ),
108 108
         10 => 
109
-        array (
109
+        array(
110 110
           0 => 
111
-          array (
111
+          array(
112 112
             'name' => 'duration',
113 113
             'hideLabel' => true,
114 114
             'customCode' => '<input type="hidden" name="duration" id="projectTask_duration" value="0" />',
115 115
           ),
116 116
         ),
117 117
         11 => 
118
-        array (
118
+        array(
119 119
           0 => 
120
-          array (
120
+          array(
121 121
             'name' => 'duration_unit',
122 122
             'hideLabel' => true,
123 123
             'customCode' => '<input type="hidden" name="duration_unit" id="projectTask_durationUnit" value="Days" />',
Please login to merge, or discard this patch.
modules/ProjectTask/metadata/listviewdefs.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 $listViewDefs ['ProjectTask'] = 
3
-array (
3
+array(
4 4
   'NAME' => 
5
-  array (
5
+  array(
6 6
     'width' => '40%',
7 7
     'label' => 'LBL_LIST_NAME',
8 8
     'link' => true,
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
     'sortable' => true,
11 11
   ),
12 12
   'PROJECT_NAME' => 
13
-  array (
13
+  array(
14 14
     'width' => '25%',
15 15
     'label' => 'LBL_PROJECT_NAME',
16 16
     'id' => 'PROJECT_ID',
@@ -20,26 +20,26 @@  discard block
 block discarded – undo
20 20
     'module' => 'Project',
21 21
     'ACLTag' => 'PROJECT',
22 22
     'related_fields' => 
23
-    array (
23
+    array(
24 24
       0 => 'project_id',
25 25
     ),
26 26
   ),
27 27
   'DATE_START' => 
28
-  array (
28
+  array(
29 29
     'width' => '10%',
30 30
     'label' => 'LBL_DATE_START',
31 31
     'default' => true,
32 32
     'sortable' => true,
33 33
   ),
34 34
   'DATE_FINISH' => 
35
-  array (
35
+  array(
36 36
     'width' => '10%',
37 37
     'label' => 'LBL_DATE_FINISH',
38 38
     'default' => true,
39 39
     'sortable' => true,
40 40
   ),
41 41
   'ASSIGNED_USER_NAME' => 
42
-  array (
42
+  array(
43 43
     'width' => '10%',
44 44
     'label' => 'LBL_LIST_ASSIGNED_USER_ID',
45 45
     'module' => 'Employees',
@@ -47,14 +47,14 @@  discard block
 block discarded – undo
47 47
     'default' => true,
48 48
   ),
49 49
   'PRIORITY' => 
50
-  array (
50
+  array(
51 51
     'width' => '10%',
52 52
     'label' => 'LBL_LIST_PRIORITY',
53 53
     'default' => true,
54 54
     'sortable' => true,
55 55
   ),
56 56
   'PERCENT_COMPLETE' => 
57
-  array (
57
+  array(
58 58
     'width' => '10%',
59 59
     'label' => 'LBL_LIST_PERCENT_COMPLETE',
60 60
     'default' => true,
Please login to merge, or discard this patch.
modules/Calls/SubPanelViewInvitees.php 1 patch
Spacing   +6 added lines, -6 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.
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
 
79 79
 // Stick the form header out there.
80 80
 echo get_form_header($mod_strings['LBL_INVITEES'], $button, false);
81
-$xtpl=new XTemplate ('modules/Calls/SubPanelViewInvitees.html');
81
+$xtpl = new XTemplate('modules/Calls/SubPanelViewInvitees.html');
82 82
 $xtpl->assign("MOD", $mod_strings);
83 83
 $xtpl->assign("APP", $app_strings);
84 84
 
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
 $xtpl->assign("CALL_ID", $focus->id);
87 87
 
88 88
 $oddRow = true;
89
-foreach($focus_users_list as $user)
89
+foreach ($focus_users_list as $user)
90 90
 {
91 91
 	$user_fields = array(
92 92
 		'USER_NAME' => $user->user_name,
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
 
99 99
 	$xtpl->assign("USER", $user_fields);
100 100
 
101
-	if($oddRow)
101
+	if ($oddRow)
102 102
     {
103 103
         //todo move to themes
104 104
 		$xtpl->assign("ROW_COLOR", 'oddListRow');
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
 $xtpl->out("users");
119 119
 
120 120
 $oddRow = true;
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.
modules/Calls/metadata/subpaneldefs.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
             'order' => 40,
77 77
             'title_key' => 'LBL_HISTORY_SUBPANEL_TITLE',
78 78
             'type' => 'collection',
79
-            'subpanel_name' => 'history',   //this values is not associated with a physical file.
79
+            'subpanel_name' => 'history', //this values is not associated with a physical file.
80 80
             'sort_order' => 'desc',
81 81
             'sort_by' => 'date_entered',
82 82
             'header_definition_from_subpanel' => 'calls',
Please login to merge, or discard this patch.
modules/Calls/metadata/detailviewdefs.php 1 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 1 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.