Completed
Push — master ( 24ce66...da2f36 )
by Adam
25:35
created
modules/ProjectTask/metadata/editviewdefs.php 2 patches
Indentation   +64 added lines, -64 removed lines patch added patch discarded remove patch
@@ -1,133 +1,133 @@
 block discarded – undo
1 1
 <?php
2 2
 $viewdefs ['ProjectTask'] = 
3 3
 array (
4
-  'EditView' => 
5
-  array (
4
+    'EditView' => 
5
+    array (
6 6
     'templateMeta' => 
7 7
     array (
8
-      'maxColumns' => '2',
9
-      'widths' => 
10
-      array (
8
+        'maxColumns' => '2',
9
+        'widths' => 
10
+        array (
11 11
         0 => 
12 12
         array (
13
-          'label' => '10',
14
-          'field' => '30',
13
+            'label' => '10',
14
+            'field' => '30',
15 15
         ),
16 16
         1 => 
17 17
         array (
18
-          'label' => '10',
19
-          'field' => '30',
18
+            'label' => '10',
19
+            'field' => '30',
20 20
         ),
21
-      ),
22
-      'includes' => 
23
-      array (
21
+        ),
22
+        'includes' => 
23
+        array (
24 24
         0 => 
25 25
         array (
26
-          'file' => 'modules/ProjectTask/ProjectTask.js',
26
+            'file' => 'modules/ProjectTask/ProjectTask.js',
27 27
         ),
28
-      ),
29
-      'useTabs' => false,
30
-      'tabDefs' => 
31
-      array (
28
+        ),
29
+        'useTabs' => false,
30
+        'tabDefs' => 
31
+        array (
32 32
         'DEFAULT' => 
33 33
         array (
34
-          'newTab' => false,
35
-          'panelDefault' => 'expanded',
34
+            'newTab' => false,
35
+            'panelDefault' => 'expanded',
36 36
         ),
37 37
         'LBL_PANEL_TIMELINE' =>
38 38
         array (
39
-          'newTab' => false,
40
-          'panelDefault' => 'expanded',
39
+            'newTab' => false,
40
+            'panelDefault' => 'expanded',
41
+        ),
41 42
         ),
42
-      ),
43
-      'syncDetailEditViews' => false,
43
+        'syncDetailEditViews' => false,
44 44
     ),
45 45
     'panels' => 
46 46
     array (
47
-      'default' => 
48
-      array (
47
+        'default' => 
48
+        array (
49 49
         0 => 
50 50
         array (
51
-          0 => 
52
-          array (
51
+            0 => 
52
+            array (
53 53
             'name' => 'name',
54 54
             'label' => 'LBL_NAME',
55
-          ),
56
-          1 => 
57
-          array (
55
+            ),
56
+            1 => 
57
+            array (
58 58
             'name' => 'status',
59 59
             '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>',
60
-          ),
60
+            ),
61 61
         ),
62 62
         1 => 
63 63
         array (
64
-          0 => 
65
-          array (
64
+            0 => 
65
+            array (
66 66
             'name' => 'date_start',
67
-          ),
68
-          1 => 
69
-          array (
67
+            ),
68
+            1 => 
69
+            array (
70 70
             'name' => 'date_finish',
71
-          ),
71
+            ),
72 72
         ),
73 73
         2 => 
74 74
         array (
75
-          0 => 'priority',
76
-          1 => 
77
-          array (
75
+            0 => 'priority',
76
+            1 => 
77
+            array (
78 78
             'name' => 'percent_complete',
79 79
             '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>',
80
-          ),
80
+            ),
81 81
         ),
82 82
         3 => 
83 83
         array (
84
-          0 => 
85
-          array (
84
+            0 => 
85
+            array (
86 86
             'name' => 'project_name',
87 87
             'label' => 'LBL_PROJECT_NAME',
88
-          ),
89
-          1 => 'task_number',
88
+            ),
89
+            1 => 'task_number',
90 90
         ),
91 91
         4 => 
92 92
         array (
93
-          0 => 'assigned_user_name',
93
+            0 => 'assigned_user_name',
94 94
         ),
95 95
         5 => 
96 96
         array (
97
-          0 => 
98
-          array (
97
+            0 => 
98
+            array (
99 99
             'name' => 'description',
100
-          ),
100
+            ),
101
+        ),
101 102
         ),
102
-      ),
103
-      'LBL_PANEL_TIMELINE' =>
104
-      array (
103
+        'LBL_PANEL_TIMELINE' =>
104
+        array (
105 105
         0 => 
106 106
         array (
107
-          0 => 'estimated_effort',
108
-          1 => 
109
-          array (
107
+            0 => 'estimated_effort',
108
+            1 => 
109
+            array (
110 110
             'name' => 'actual_effort',
111 111
             'label' => 'LBL_ACTUAL_EFFORT',
112
-          ),
112
+            ),
113 113
         ),
114 114
         1 => 
115 115
         array (
116
-          0 => 
117
-          array (
116
+            0 => 
117
+            array (
118 118
             'name' => 'relationship_type',
119 119
             'studio' => 'visible',
120 120
             'label' => 'LBL_RELATIONSHIP_TYPE',
121
-          ),
122
-          1 => 'utilization',
121
+            ),
122
+            1 => 'utilization',
123 123
         ),
124 124
         2 => 
125 125
         array (
126
-          0 => 'order_number',
127
-          1 => 'milestone_flag',
126
+            0 => 'order_number',
127
+            1 => 'milestone_flag',
128
+        ),
128 129
         ),
129
-      ),
130 130
     ),
131
-  ),
131
+    ),
132 132
 );
133 133
 ?>
Please login to merge, or discard this patch.
Spacing   +32 added lines, -32 removed lines patch added patch discarded remove patch
@@ -1,41 +1,41 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 $viewdefs ['ProjectTask'] = 
3
-array (
3
+array(
4 4
   'EditView' => 
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
       'useTabs' => false,
30 30
       'tabDefs' => 
31
-      array (
31
+      array(
32 32
         'DEFAULT' => 
33
-        array (
33
+        array(
34 34
           'newTab' => false,
35 35
           'panelDefault' => 'expanded',
36 36
         ),
37 37
         'LBL_PANEL_TIMELINE' =>
38
-        array (
38
+        array(
39 39
           'newTab' => false,
40 40
           'panelDefault' => 'expanded',
41 41
         ),
@@ -43,78 +43,78 @@  discard block
 block discarded – undo
43 43
       'syncDetailEditViews' => false,
44 44
     ),
45 45
     'panels' => 
46
-    array (
46
+    array(
47 47
       'default' => 
48
-      array (
48
+      array(
49 49
         0 => 
50
-        array (
50
+        array(
51 51
           0 => 
52
-          array (
52
+          array(
53 53
             'name' => 'name',
54 54
             'label' => 'LBL_NAME',
55 55
           ),
56 56
           1 => 
57
-          array (
57
+          array(
58 58
             'name' => 'status',
59 59
             '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>',
60 60
           ),
61 61
         ),
62 62
         1 => 
63
-        array (
63
+        array(
64 64
           0 => 
65
-          array (
65
+          array(
66 66
             'name' => 'date_start',
67 67
           ),
68 68
           1 => 
69
-          array (
69
+          array(
70 70
             'name' => 'date_finish',
71 71
           ),
72 72
         ),
73 73
         2 => 
74
-        array (
74
+        array(
75 75
           0 => 'priority',
76 76
           1 => 
77
-          array (
77
+          array(
78 78
             'name' => 'percent_complete',
79 79
             '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>',
80 80
           ),
81 81
         ),
82 82
         3 => 
83
-        array (
83
+        array(
84 84
           0 => 
85
-          array (
85
+          array(
86 86
             'name' => 'project_name',
87 87
             'label' => 'LBL_PROJECT_NAME',
88 88
           ),
89 89
           1 => 'task_number',
90 90
         ),
91 91
         4 => 
92
-        array (
92
+        array(
93 93
           0 => 'assigned_user_name',
94 94
         ),
95 95
         5 => 
96
-        array (
96
+        array(
97 97
           0 => 
98
-          array (
98
+          array(
99 99
             'name' => 'description',
100 100
           ),
101 101
         ),
102 102
       ),
103 103
       'LBL_PANEL_TIMELINE' =>
104
-      array (
104
+      array(
105 105
         0 => 
106
-        array (
106
+        array(
107 107
           0 => 'estimated_effort',
108 108
           1 => 
109
-          array (
109
+          array(
110 110
             'name' => 'actual_effort',
111 111
             'label' => 'LBL_ACTUAL_EFFORT',
112 112
           ),
113 113
         ),
114 114
         1 => 
115
-        array (
115
+        array(
116 116
           0 => 
117
-          array (
117
+          array(
118 118
             'name' => 'relationship_type',
119 119
             'studio' => 'visible',
120 120
             'label' => 'LBL_RELATIONSHIP_TYPE',
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
           1 => 'utilization',
123 123
         ),
124 124
         2 => 
125
-        array (
125
+        array(
126 126
           0 => 'order_number',
127 127
           1 => 'milestone_flag',
128 128
         ),
Please login to merge, or discard this patch.
modules/ProjectTask/metadata/popupdefs.php 3 patches
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -40,13 +40,13 @@
 block discarded – undo
40 40
 
41 41
 
42 42
 $popupMeta = array('moduleMain' => 'ProjectTask',
43
-						'varName' => 'PROJECT_TASK',
44
-						'orderBy' => 'name',
45
-						'whereClauses' => 
46
-							array('name' => 'project_task.name'),
47
-						'searchInputs' =>
48
-							array('name')
49
-						);
43
+                        'varName' => 'PROJECT_TASK',
44
+                        'orderBy' => 'name',
45
+                        'whereClauses' => 
46
+                            array('name' => 'project_task.name'),
47
+                        'searchInputs' =>
48
+                            array('name')
49
+                        );
50 50
 
51 51
 
52 52
 ?>
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
2
+if (!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
3 3
 /*********************************************************************************
4 4
  * SugarCRM Community Edition is a customer relationship management program developed by
5 5
  * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc.
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,7 @@
 block discarded – undo
1 1
 <?php
2
-if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
2
+if(!defined('sugarEntry') || !sugarEntry) {
3
+    die('Not A Valid Entry Point');
4
+}
3 5
 /*********************************************************************************
4 6
  * SugarCRM Community Edition is a customer relationship management program developed by
5 7
  * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc.
Please login to merge, or discard this patch.
modules/ProjectTask/metadata/searchdefs.php 2 patches
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -38,24 +38,24 @@
 block discarded – undo
38 38
  ********************************************************************************/
39 39
 
40 40
 
41
-  $searchdefs['ProjectTask'] = array(
42
-					'templateMeta' => array(
43
-							'maxColumns' => '3', 
41
+    $searchdefs['ProjectTask'] = array(
42
+                    'templateMeta' => array(
43
+                            'maxColumns' => '3', 
44 44
                             'maxColumnsBasic' => '4', 
45 45
                             'widths' => array('label' => '10', 'field' => '30'),                 
46
-                           ),
46
+                            ),
47 47
                     'layout' => array(  					
48
-						'basic_search' => array(
49
-						 	'name',
50
-						 	array('name'=>'current_user_only', 'label'=>'LBL_CURRENT_USER_FILTER', 'type'=>'bool'),
48
+                        'basic_search' => array(
49
+                                'name',
50
+                                array('name'=>'current_user_only', 'label'=>'LBL_CURRENT_USER_FILTER', 'type'=>'bool'),
51 51
 						 	
52
-						),
53
-						'advanced_search' => array(
54
-							'name',
55
-							array('name' => 'project_name', 'label'=>'LBL_PROJECT_NAME' ), 
56
-							array('name' => 'assigned_user_id', 'type' => 'enum', 'label' => 'LBL_ASSIGNED_TO', 'function' => array('name' => 'get_user_array', 'params' => array(false))),
52
+                        ),
53
+                        'advanced_search' => array(
54
+                            'name',
55
+                            array('name' => 'project_name', 'label'=>'LBL_PROJECT_NAME' ), 
56
+                            array('name' => 'assigned_user_id', 'type' => 'enum', 'label' => 'LBL_ASSIGNED_TO', 'function' => array('name' => 'get_user_array', 'params' => array(false))),
57 57
 							
58
-						),
59
-					),
60
- 			   );
58
+                        ),
59
+                    ),
60
+                );
61 61
 ?>
Please login to merge, or discard this 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/studio.php 3 patches
Indentation   +23 added lines, -23 removed lines patch added patch discarded remove patch
@@ -42,28 +42,28 @@
 block discarded – undo
42 42
 
43 43
 
44 44
 $GLOBALS['studioDefs']['ProjectTask'] = array(
45
-	'LBL_DETAILVIEW'=>array(
46
-				'template'=>'xtpl',
47
-				'template_file'=>'modules/ProjectTask/DetailView.html',
48
-				'php_file'=>'modules/ProjectTask/DetailView.php',
49
-				'type'=>'DetailView',
50
-				),
51
-	'LBL_EDITVIEW'=>array(
52
-				'template'=>'xtpl',
53
-				'template_file'=>'modules/ProjectTask/EditView.html',
54
-				'php_file'=>'modules/ProjectTask/EditView.php',
55
-				'type'=>'EditView',
56
-				),
57
-	'LBL_LISTVIEW'=>array(
58
-				'template'=>'listview',
59
-				'meta_file'=>'modules/ProjectTask/listviewdefs.php',
60
-				'type'=>'ListView',
61
-				),
62
-	'LBL_SEARCHFORM'=>array(
63
-				'template'=>'xtpl',
64
-				'template_file'=>'modules/ProjectTask/SearchForm.html',
65
-				'php_file'=>'modules/ProjectTask/ListView.php',
66
-				'type'=>'SearchForm',
67
-				),
45
+    'LBL_DETAILVIEW'=>array(
46
+                'template'=>'xtpl',
47
+                'template_file'=>'modules/ProjectTask/DetailView.html',
48
+                'php_file'=>'modules/ProjectTask/DetailView.php',
49
+                'type'=>'DetailView',
50
+                ),
51
+    'LBL_EDITVIEW'=>array(
52
+                'template'=>'xtpl',
53
+                'template_file'=>'modules/ProjectTask/EditView.html',
54
+                'php_file'=>'modules/ProjectTask/EditView.php',
55
+                'type'=>'EditView',
56
+                ),
57
+    'LBL_LISTVIEW'=>array(
58
+                'template'=>'listview',
59
+                'meta_file'=>'modules/ProjectTask/listviewdefs.php',
60
+                'type'=>'ListView',
61
+                ),
62
+    'LBL_SEARCHFORM'=>array(
63
+                'template'=>'xtpl',
64
+                'template_file'=>'modules/ProjectTask/SearchForm.html',
65
+                'php_file'=>'modules/ProjectTask/ListView.php',
66
+                'type'=>'SearchForm',
67
+                ),
68 68
 
69 69
 );
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
2
+if (!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
3 3
 /*********************************************************************************
4 4
  * SugarCRM Community Edition is a customer relationship management program developed by
5 5
  * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc.
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,7 @@
 block discarded – undo
1 1
 <?php
2
-if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
2
+if(!defined('sugarEntry') || !sugarEntry) {
3
+    die('Not A Valid Entry Point');
4
+}
3 5
 /*********************************************************************************
4 6
  * SugarCRM Community Edition is a customer relationship management program developed by
5 7
  * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc.
Please login to merge, or discard this patch.
modules/ProjectTask/metadata/SearchFields.php 3 patches
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -43,22 +43,22 @@
 block discarded – undo
43 43
         'name' => array( 'query_type'=>'default'),
44 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 45
         'project_name' => array('query_type'=>'default','db_field'=>array('project.name')),
46
-		'assigned_user_id' => array('query_type'=>'default'),
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
-		//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),	
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),	
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),	
62
-		//Range Search Support 		                
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
+        //Range Search Support 		                
63 63
     );
64 64
 ?>
Please login to merge, or discard this 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.
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/ProjectTask/metadata/detailviewdefs.php 2 patches
Indentation   +74 added lines, -74 removed lines patch added patch discarded remove patch
@@ -1,156 +1,156 @@
 block discarded – undo
1 1
 <?php
2 2
 $viewdefs ['ProjectTask'] = 
3 3
 array (
4
-  'DetailView' => 
5
-  array (
4
+    'DetailView' => 
5
+    array (
6 6
     'templateMeta' => 
7 7
     array (
8
-      'maxColumns' => '2',
9
-      'widths' => 
10
-      array (
8
+        'maxColumns' => '2',
9
+        'widths' => 
10
+        array (
11 11
         0 => 
12 12
         array (
13
-          'label' => '10',
14
-          'field' => '30',
13
+            'label' => '10',
14
+            'field' => '30',
15 15
         ),
16 16
         1 => 
17 17
         array (
18
-          'label' => '10',
19
-          'field' => '30',
18
+            'label' => '10',
19
+            'field' => '30',
20 20
         ),
21
-      ),
22
-      'includes' => 
23
-      array (
21
+        ),
22
+        'includes' => 
23
+        array (
24 24
         0 => 
25 25
         array (
26
-          'file' => 'modules/ProjectTask/ProjectTask.js',
26
+            'file' => 'modules/ProjectTask/ProjectTask.js',
27 27
         ),
28
-      ),
29
-      'form' => 
30
-      array (
28
+        ),
29
+        'form' => 
30
+        array (
31 31
         'buttons' => 
32 32
         array (
33
-          0 => 'EDIT',
34
-          1 => 'DUPLICATE',
35
-          2 => 'DELETE',
33
+            0 => 'EDIT',
34
+            1 => 'DUPLICATE',
35
+            2 => 'DELETE',
36 36
         ),
37 37
         'hideAudit' => true,
38
-      ),
39
-      'useTabs' => true,
40
-      'tabDefs' => 
41
-      array (
38
+        ),
39
+        'useTabs' => true,
40
+        'tabDefs' => 
41
+        array (
42 42
         'DEFAULT' => 
43 43
         array (
44
-          'newTab' => true,
45
-          'panelDefault' => 'expanded',
44
+            'newTab' => true,
45
+            'panelDefault' => 'expanded',
46 46
         ),
47 47
         'LBL_PANEL_TIMELINE' =>
48 48
         array (
49
-          'newTab' => true,
50
-          'panelDefault' => 'expanded',
49
+            'newTab' => true,
50
+            'panelDefault' => 'expanded',
51 51
         ),
52
-      ),
53
-      'syncDetailEditViews' => true,
52
+        ),
53
+        'syncDetailEditViews' => true,
54 54
     ),
55 55
     'panels' => 
56 56
     array (
57
-      'default' => 
58
-      array (
57
+        'default' => 
58
+        array (
59 59
         0 => 
60 60
         array (
61
-          0 => 'name',
62
-          1 => 'status',
61
+            0 => 'name',
62
+            1 => 'status',
63 63
         ),
64 64
         1 => 
65 65
         array (
66
-          0 => 'date_start',
67
-          1 => 'date_finish',
66
+            0 => 'date_start',
67
+            1 => 'date_finish',
68 68
         ),
69 69
         2 => 
70 70
         array (
71
-          0 => 'priority',
72
-          1 => 'percent_complete',
71
+            0 => 'priority',
72
+            1 => 'percent_complete',
73 73
         ),
74 74
         3 => 
75 75
         array (
76
-          0 => 
77
-          array (
76
+            0 => 
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',
81
-          ),
82
-          1 => 'task_number',
81
+            ),
82
+            1 => 'task_number',
83 83
         ),
84 84
         4 => 
85 85
         array (
86
-          0 => 
87
-          array (
86
+            0 => 
87
+            array (
88 88
             'name' => 'assigned_user_name',
89 89
             'label' => 'LBL_ASSIGNED_USER_ID',
90
-          ),
90
+            ),
91 91
         ),
92 92
         5 => 
93 93
         array (
94
-          0 => 
95
-          array (
94
+            0 => 
95
+            array (
96 96
             'name' => 'description',
97
-          ),
97
+            ),
98 98
         ),
99
-      ),
100
-      'LBL_PANEL_TIMELINE' =>
101
-      array (
99
+        ),
100
+        'LBL_PANEL_TIMELINE' =>
101
+        array (
102 102
         0 => 
103 103
         array (
104
-          0 => 'estimated_effort',
105
-          1 => 
106
-          array (
104
+            0 => 'estimated_effort',
105
+            1 => 
106
+            array (
107 107
             'name' => 'actual_effort',
108 108
             'label' => 'LBL_ACTUAL_EFFORT',
109
-          ),
109
+            ),
110 110
         ),
111 111
         1 => 
112 112
         array (
113
-          0 => 
114
-          array (
113
+            0 => 
114
+            array (
115 115
             'name' => 'predecessors',
116 116
             'label' => 'LBL_PREDECESSORS',
117
-          ),
118
-          1 => 
119
-          array (
117
+            ),
118
+            1 => 
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 126
         array (
127
-          0 => 'order_number',
128
-          1 => 
129
-          array (
127
+            0 => 'order_number',
128
+            1 => 
129
+            array (
130 130
             'name' => 'milestone_flag',
131 131
             'label' => 'LBL_MILESTONE_FLAG',
132
-          ),
132
+            ),
133 133
         ),
134 134
         3 => 
135 135
         array (
136
-          0 => 'utilization',
137
-          1 => '',
136
+            0 => 'utilization',
137
+            1 => '',
138 138
         ),
139 139
         4 => 
140 140
         array (
141
-          0 => 
142
-          array (
141
+            0 => 
142
+            array (
143 143
             'name' => 'duration',
144 144
             'label' => 'LBL_DURATION',
145
-          ),
146
-          1 => 
147
-          array (
145
+            ),
146
+            1 => 
147
+            array (
148 148
             'name' => 'duration_unit',
149 149
             'label' => 'LBL_DURATION_UNIT',
150
-          ),
150
+            ),
151
+        ),
151 152
         ),
152
-      ),
153 153
     ),
154
-  ),
154
+    ),
155 155
 );
156 156
 ?>
Please login to merge, or discard this 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 2 patches
Indentation   +55 added lines, -55 removed lines patch added patch discarded remove patch
@@ -1,130 +1,130 @@
 block discarded – undo
1 1
 <?php
2 2
 $viewdefs ['ProjectTask'] = 
3 3
 array (
4
-  'QuickCreate' => 
5
-  array (
4
+    'QuickCreate' => 
5
+    array (
6 6
     'templateMeta' => 
7 7
     array (
8
-      'maxColumns' => '2',
9
-      'widths' => 
10
-      array (
8
+        'maxColumns' => '2',
9
+        'widths' => 
10
+        array (
11 11
         0 => 
12 12
         array (
13
-          'label' => '10',
14
-          'field' => '30',
13
+            'label' => '10',
14
+            'field' => '30',
15 15
         ),
16 16
         1 => 
17 17
         array (
18
-          'label' => '10',
19
-          'field' => '30',
18
+            'label' => '10',
19
+            'field' => '30',
20 20
         ),
21
-      ),
22
-      'includes' => 
23
-      array (
21
+        ),
22
+        'includes' => 
23
+        array (
24 24
         0 => 
25 25
         array (
26
-          'file' => 'modules/ProjectTask/ProjectTask.js',
26
+            'file' => 'modules/ProjectTask/ProjectTask.js',
27
+        ),
27 28
         ),
28
-      ),
29 29
     ),
30 30
     'panels' => 
31 31
     array (
32
-      'default' => 
33
-      array (
32
+        'default' => 
33
+        array (
34 34
         0 => 
35 35
         array (
36
-          0 => 
37
-          array (
36
+            0 => 
37
+            array (
38 38
             'name' => 'name',
39 39
             'label' => 'LBL_NAME',
40
-          ),
41
-          1 => 
42
-          array (
40
+            ),
41
+            1 => 
42
+            array (
43 43
             'name' => 'project_task_id',
44 44
             'label' => 'LBL_TASK_ID',
45
-          ),
45
+            ),
46 46
         ),
47 47
         1 => 
48 48
         array (
49
-          0 => 
50
-          array (
49
+            0 => 
50
+            array (
51 51
             'name' => 'date_start',
52
-          ),
53
-          1 => 
54
-          array (
52
+            ),
53
+            1 => 
54
+            array (
55 55
             'name' => 'date_finish',
56
-          ),
56
+            ),
57 57
         ),
58 58
         2 => 
59 59
         array (
60
-          'name' => 'assigned_user_name',
60
+            'name' => 'assigned_user_name',
61 61
         ),
62 62
         3 => 
63 63
         array (
64
-          0 => 
65
-          array (
64
+            0 => 
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
-          ),
69
-          1 => 'priority',
68
+            ),
69
+            1 => 'priority',
70 70
         ),
71 71
         4 => 
72 72
         array (
73
-          0 => 
74
-          array (
73
+            0 => 
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 80
         array (
81
-          0 => 'milestone_flag',
81
+            0 => 'milestone_flag',
82 82
         ),
83 83
         6 => 
84 84
         array (
85
-          0 => 
86
-          array (
85
+            0 => 
86
+            array (
87 87
             'name' => 'project_name',
88 88
             'label' => 'LBL_PROJECT_NAME',
89
-          ),
89
+            ),
90 90
         ),
91 91
         7 => 
92 92
         array (
93
-          0 => 'task_number',
94
-          1 => 'order_number',
93
+            0 => 'task_number',
94
+            1 => 'order_number',
95 95
         ),
96 96
         8 => 
97 97
         array (
98
-          0 => 'estimated_effort',
99
-          1 => 'utilization',
98
+            0 => 'estimated_effort',
99
+            1 => 'utilization',
100 100
         ),
101 101
         9 => 
102 102
         array (
103
-          0 => 
104
-          array (
103
+            0 => 
104
+            array (
105 105
             'name' => 'description',
106
-          ),
106
+            ),
107 107
         ),
108 108
         10 => 
109 109
         array (
110
-          0 => 
111
-          array (
110
+            0 => 
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 118
         array (
119
-          0 => 
120
-          array (
119
+            0 => 
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" />',
124
-          ),
124
+            ),
125 125
         ),
126
-      ),
126
+        ),
127
+    ),
127 128
     ),
128
-  ),
129 129
 );
130 130
 ?>
Please login to merge, or discard this 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 2 patches
Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -1,16 +1,16 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 $listViewDefs ['ProjectTask'] = 
3 3
 array (
4
-  'NAME' => 
5
-  array (
4
+    'NAME' => 
5
+    array (
6 6
     'width' => '40%',
7 7
     'label' => 'LBL_LIST_NAME',
8 8
     'link' => true,
9 9
     'default' => true,
10 10
     'sortable' => true,
11
-  ),
12
-  'PROJECT_NAME' => 
13
-  array (
11
+    ),
12
+    'PROJECT_NAME' => 
13
+    array (
14 14
     'width' => '25%',
15 15
     'label' => 'LBL_PROJECT_NAME',
16 16
     'id' => 'PROJECT_ID',
@@ -21,44 +21,44 @@  discard block
 block discarded – undo
21 21
     'ACLTag' => 'PROJECT',
22 22
     'related_fields' => 
23 23
     array (
24
-      0 => 'project_id',
24
+        0 => 'project_id',
25
+    ),
25 26
     ),
26
-  ),
27
-  'DATE_START' => 
28
-  array (
27
+    'DATE_START' => 
28
+    array (
29 29
     'width' => '10%',
30 30
     'label' => 'LBL_DATE_START',
31 31
     'default' => true,
32 32
     'sortable' => true,
33
-  ),
34
-  'DATE_FINISH' => 
35
-  array (
33
+    ),
34
+    'DATE_FINISH' => 
35
+    array (
36 36
     'width' => '10%',
37 37
     'label' => 'LBL_DATE_FINISH',
38 38
     'default' => true,
39 39
     'sortable' => true,
40
-  ),
41
-  'ASSIGNED_USER_NAME' => 
42
-  array (
40
+    ),
41
+    'ASSIGNED_USER_NAME' => 
42
+    array (
43 43
     'width' => '10%',
44 44
     'label' => 'LBL_LIST_ASSIGNED_USER_ID',
45 45
     'module' => 'Employees',
46 46
     'id' => 'ASSIGNED_USER_ID',
47 47
     'default' => true,
48
-  ),
49
-  'PRIORITY' => 
50
-  array (
48
+    ),
49
+    'PRIORITY' => 
50
+    array (
51 51
     'width' => '10%',
52 52
     'label' => 'LBL_LIST_PRIORITY',
53 53
     'default' => true,
54 54
     'sortable' => true,
55
-  ),
56
-  'PERCENT_COMPLETE' => 
57
-  array (
55
+    ),
56
+    'PERCENT_COMPLETE' => 
57
+    array (
58 58
     'width' => '10%',
59 59
     'label' => 'LBL_LIST_PERCENT_COMPLETE',
60 60
     'default' => true,
61 61
     'sortable' => true,
62
-  ),
62
+    ),
63 63
 );
64 64
 ?>
Please login to merge, or discard this 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 3 patches
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.
Indentation   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -88,29 +88,29 @@  discard block
 block discarded – undo
88 88
 $oddRow = true;
89 89
 foreach($focus_users_list as $user)
90 90
 {
91
-	$user_fields = array(
92
-		'USER_NAME' => $user->user_name,
93
-		'FULL_NAME' => $locale->getLocaleFormattedName($user->first_name, $user->last_name),
94
-		'ID' => $user->id,
95
-		'EMAIL' => $user->email1,
96
-		'PHONE_WORK' => $user->phone_work
97
-	);
91
+    $user_fields = array(
92
+        'USER_NAME' => $user->user_name,
93
+        'FULL_NAME' => $locale->getLocaleFormattedName($user->first_name, $user->last_name),
94
+        'ID' => $user->id,
95
+        'EMAIL' => $user->email1,
96
+        'PHONE_WORK' => $user->phone_work
97
+    );
98 98
 
99
-	$xtpl->assign("USER", $user_fields);
99
+    $xtpl->assign("USER", $user_fields);
100 100
 
101
-	if($oddRow)
101
+    if($oddRow)
102 102
     {
103 103
         //todo move to themes
104
-		$xtpl->assign("ROW_COLOR", 'oddListRow');
104
+        $xtpl->assign("ROW_COLOR", 'oddListRow');
105 105
     }
106 106
     else
107 107
     {
108 108
         //todo move to themes
109
-		$xtpl->assign("ROW_COLOR", 'evenListRow');
109
+        $xtpl->assign("ROW_COLOR", 'evenListRow');
110 110
     }
111 111
     $oddRow = !$oddRow;
112 112
 
113
-	$xtpl->parse("users.row");
113
+    $xtpl->parse("users.row");
114 114
 // Put the rows in.
115 115
 }
116 116
 
@@ -120,30 +120,30 @@  discard block
 block discarded – undo
120 120
 $oddRow = true;
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.
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.
@@ -66,14 +68,19 @@  discard block
 block discarded – undo
66 68
 
67 69
 $button  = "<table cellspacing='0' cellpadding='1' border='0'><form border='0' action='index.php' method='post' name='form' id='form'>\n";
68 70
 $button .= "<input type='hidden' name='module' value='Contacts'>\n";
69
-if ($currentModule == 'Accounts') $button .= "<input type='hidden' name='account_id' value='$focus->id'>\n<input type='hidden' name='account_name' value='$focus->name'>\n";
71
+if ($currentModule == 'Accounts') {
72
+    $button .= "<input type='hidden' name='account_id' value='$focus->id'>\n<input type='hidden' name='account_name' value='$focus->name'>\n";
73
+}
70 74
 $button .= "<input type='hidden' name='return_module' value='".$currentModule."'>\n";
71 75
 $button .= "<input type='hidden' name='return_action' value='".$action."'>\n";
72 76
 $button .= "<input type='hidden' name='return_id' value='".$focus->id."'>\n";
73 77
 $button .= "<input type='hidden' name='action'>\n";
74 78
 $button .= "<tr><td>&nbsp;</td>";
75
-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";
76
-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";
79
+if ($focus->parent_type == "Accounts") {
80
+    $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";
81
+} else {
82
+    $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";
83
+}
77 84
 $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";
78 85
 $button .= "</tr></form></table>\n";
79 86
 
@@ -102,8 +109,7 @@  discard block
 block discarded – undo
102 109
     {
103 110
         //todo move to themes
104 111
 		$xtpl->assign("ROW_COLOR", 'oddListRow');
105
-    }
106
-    else
112
+    } else
107 113
     {
108 114
         //todo move to themes
109 115
 		$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.