Completed
Push — master ( 58f496...a833c2 )
by Adam
18:52
created
modules/Prospects/metadata/listviewdefs.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -42,10 +42,10 @@  discard block
 block discarded – undo
42 42
 
43 43
 
44 44
 $listViewDefs['Prospects'] = array(
45
-	'FULL_NAME' => array(
46
-		'width' => '20', 
47
-		'label' => 'LBL_LIST_NAME', 
48
-		'link' => true,
45
+    'FULL_NAME' => array(
46
+        'width' => '20', 
47
+        'label' => 'LBL_LIST_NAME', 
48
+        'link' => true,
49 49
         'related_fields' => array('first_name', 'last_name'),
50 50
         'orderBy' => 'last_name',
51 51
         'default' => true),
@@ -65,11 +65,11 @@  discard block
 block discarded – undo
65 65
         'label' => 'LBL_LIST_PHONE', 
66 66
         'link' => false,
67 67
         'default' => true), 
68
-	'DATE_ENTERED' => array (
69
-	    'type' => 'datetime',
70
-	    'label' => 'LBL_DATE_ENTERED',
71
-	    'width' => '10',
72
-	    'default' => true,
73
-	  ),  
68
+    'DATE_ENTERED' => array (
69
+        'type' => 'datetime',
70
+        'label' => 'LBL_DATE_ENTERED',
71
+        'width' => '10',
72
+        'default' => true,
73
+        ),  
74 74
 );
75 75
 ?>
Please login to merge, or discard this patch.
modules/Documents/GetLatestRevision.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -45,12 +45,12 @@
 block discarded – undo
45 45
 require_once('include/formbase.php');
46 46
 if (!empty($_REQUEST['record'])) {
47 47
 
48
-	$document = new Document();
49
-	$document->retrieve($_REQUEST['record']);
50
-	if (!empty($document->document_revision_id) && !empty($_REQUEST['get_latest_for_id']))  {
51
-		$query="update linked_documents set document_revision_id='{$document->document_revision_id}', date_modified='".TimeDate::getInstance()->nowDb()."' where id ='{$_REQUEST['get_latest_for_id']}' ";
52
-		$document->db->query($query);
53
-	}	
48
+    $document = new Document();
49
+    $document->retrieve($_REQUEST['record']);
50
+    if (!empty($document->document_revision_id) && !empty($_REQUEST['get_latest_for_id']))  {
51
+        $query="update linked_documents set document_revision_id='{$document->document_revision_id}', date_modified='".TimeDate::getInstance()->nowDb()."' where id ='{$_REQUEST['get_latest_for_id']}' ";
52
+        $document->db->query($query);
53
+    }	
54 54
 }
55 55
 handleRedirect();
56 56
 ?>
Please login to merge, or discard this patch.
modules/Documents/DocumentExternalApiDropDown.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 if(!defined('sugarEntry') || !sugarEntry)
3
-	die('Not A Valid Entry Point');
3
+    die('Not A Valid Entry Point');
4 4
 /*********************************************************************************
5 5
  * SugarCRM Community Edition is a customer relationship management program developed by
6 6
  * SugarCRM, Inc. Copyright (C) 2004-2013 SugarCRM Inc.
Please login to merge, or discard this patch.
modules/Documents/metadata/editviewdefs.php 1 patch
Indentation   +61 added lines, -61 removed lines patch added patch discarded remove patch
@@ -1,131 +1,131 @@
 block discarded – undo
1 1
 <?php
2 2
 $viewdefs ['Documents'] = 
3 3
 array (
4
-  'EditView' => 
5
-  array (
4
+    'EditView' => 
5
+    array (
6 6
     'templateMeta' => 
7 7
     array (
8
-      'form' => 
9
-      array (
8
+        'form' => 
9
+        array (
10 10
         'enctype' => 'multipart/form-data',
11 11
         'hidden' => 
12 12
         array (
13
-          0 => '<input type="hidden" name="old_id" value="{$fields.document_revision_id.value}">',
14
-          1 => '<input type="hidden" name="contract_id" value="{$smarty.request.contract_id}">',
13
+            0 => '<input type="hidden" name="old_id" value="{$fields.document_revision_id.value}">',
14
+            1 => '<input type="hidden" name="contract_id" value="{$smarty.request.contract_id}">',
15 15
         ),
16
-      ),
17
-      'maxColumns' => '2',
18
-      'widths' => 
19
-      array (
16
+        ),
17
+        'maxColumns' => '2',
18
+        'widths' => 
19
+        array (
20 20
         0 => 
21 21
         array (
22
-          'label' => '10',
23
-          'field' => '30',
22
+            'label' => '10',
23
+            'field' => '30',
24 24
         ),
25 25
         1 => 
26 26
         array (
27
-          'label' => '10',
28
-          'field' => '30',
27
+            'label' => '10',
28
+            'field' => '30',
29 29
         ),
30
-      ),
31
-      'javascript' => '{sugar_getscript file="include/javascript/popup_parent_helper.js"}
30
+        ),
31
+        'javascript' => '{sugar_getscript file="include/javascript/popup_parent_helper.js"}
32 32
 {sugar_getscript file="cache/include/javascript/sugar_grp_jsolait.js"}
33 33
 {sugar_getscript file="modules/Documents/documents.js"}',
34
-      'useTabs' => false,
35
-      'tabDefs' => 
36
-      array (
34
+        'useTabs' => false,
35
+        'tabDefs' => 
36
+        array (
37 37
         'LBL_DOCUMENT_INFORMATION' => 
38 38
         array (
39
-          'newTab' => false,
40
-          'panelDefault' => 'expanded',
39
+            'newTab' => false,
40
+            'panelDefault' => 'expanded',
41
+        ),
41 42
         ),
42
-      ),
43 43
     ),
44 44
     'panels' => 
45 45
     array (
46
-      'lbl_document_information' => 
47
-      array (
46
+        'lbl_document_information' => 
47
+        array (
48 48
         0 => 
49 49
         array (
50
-          0 => 
51
-          array (
50
+            0 => 
51
+            array (
52 52
             'name' => 'filename',
53 53
             'displayParams' => 
54 54
             array (
55
-              'onchangeSetFileNameTo' => 'document_name',
55
+                'onchangeSetFileNameTo' => 'document_name',
56
+            ),
56 57
             ),
57
-          ),
58
-          1 => 
59
-          array (
58
+            1 => 
59
+            array (
60 60
             'name' => 'status_id',
61 61
             'label' => 'LBL_DOC_STATUS',
62
-          ),
62
+            ),
63 63
         ),
64 64
         1 => 
65 65
         array (
66
-          0 => 'document_name',
67
-          1 => 
68
-          array (
66
+            0 => 'document_name',
67
+            1 => 
68
+            array (
69 69
             'name' => 'revision',
70 70
             'customCode' => '<input name="revision" type="text" value="{$fields.revision.value}" {$DISABLED}>',
71
-          ),
71
+            ),
72 72
         ),
73 73
         2 => 
74 74
         array (
75
-          0 => 
76
-          array (
75
+            0 => 
76
+            array (
77 77
             'name' => 'template_type',
78 78
             'label' => 'LBL_DET_TEMPLATE_TYPE',
79
-          ),
80
-          1 => 
81
-          array (
79
+            ),
80
+            1 => 
81
+            array (
82 82
             'name' => 'is_template',
83 83
             'label' => 'LBL_DET_IS_TEMPLATE',
84
-          ),
84
+            ),
85 85
         ),
86 86
         3 => 
87 87
         array (
88
-          0 => 
89
-          array (
88
+            0 => 
89
+            array (
90 90
             'name' => 'active_date',
91
-          ),
92
-          1 => 'exp_date',
91
+            ),
92
+            1 => 'exp_date',
93 93
         ),
94 94
         4 => 
95 95
         array (
96
-          0 => 'category_id',
97
-          1 => 'subcategory_id',
96
+            0 => 'category_id',
97
+            1 => 'subcategory_id',
98 98
         ),
99 99
         5 => 
100 100
         array (
101
-          0 => 
102
-          array (
101
+            0 => 
102
+            array (
103 103
             'name' => 'description',
104
-          ),
104
+            ),
105 105
         ),
106 106
         6 => 
107 107
         array (
108
-          0 => 
109
-          array (
108
+            0 => 
109
+            array (
110 110
             'name' => 'related_doc_name',
111 111
             'customCode' => '<input name="related_document_name" type="text" size="30" maxlength="255" value="{$RELATED_DOCUMENT_NAME}" readonly><input name="related_doc_id" type="hidden" value="{$fields.related_doc_id.value}"/>&nbsp;<input title="{$APP.LBL_SELECT_BUTTON_TITLE}" type="{$RELATED_DOCUMENT_BUTTON_AVAILABILITY}" class="button" value="{$APP.LBL_SELECT_BUTTON_LABEL}" name="btn2" onclick=\'open_popup("Documents", 600, 400, "", true, false, {$encoded_document_popup_request_data}, "single", true);\'/>',
112
-          ),
113
-          1 => 
114
-          array (
112
+            ),
113
+            1 => 
114
+            array (
115 115
             'name' => 'related_doc_rev_number',
116 116
             'customCode' => '<select name="related_doc_rev_id" id="related_doc_rev_id" {$RELATED_DOCUMENT_REVISION_DISABLED}>{$RELATED_DOCUMENT_REVISION_OPTIONS}</select>',
117
-          ),
117
+            ),
118 118
         ),
119 119
         7 => 
120 120
         array (
121
-          0 => 
122
-          array (
121
+            0 => 
122
+            array (
123 123
             'name' => 'assigned_user_name',
124 124
             'label' => 'LBL_ASSIGNED_TO_NAME',
125
-          ),
125
+            ),
126
+        ),
126 127
         ),
127
-      ),
128 128
     ),
129
-  ),
129
+    ),
130 130
 );
131 131
 ?>
Please login to merge, or discard this patch.
modules/Documents/metadata/searchdefs.php 1 patch
Indentation   +38 added lines, -38 removed lines patch added patch discarded remove patch
@@ -1,88 +1,88 @@
 block discarded – undo
1 1
 <?php
2 2
 $searchdefs ['Documents'] = 
3 3
 array (
4
-  'layout' => 
5
-  array (
4
+    'layout' => 
5
+    array (
6 6
     'basic_search' => 
7 7
     array (
8
-      0 => 'document_name',
9
-      1 => array ('name' => 'favorites_only','label' => 'LBL_FAVORITES_FILTER','type' => 'bool',),
8
+        0 => 'document_name',
9
+        1 => array ('name' => 'favorites_only','label' => 'LBL_FAVORITES_FILTER','type' => 'bool',),
10 10
     ),
11 11
     'advanced_search' => 
12 12
     array (
13
-      'document_name' => 
14
-      array (
13
+        'document_name' => 
14
+        array (
15 15
         'name' => 'document_name',
16 16
         'default' => true,
17 17
         'width' => '10%',
18
-      ),
19
-      'status' => 
20
-      array (
18
+        ),
19
+        'status' => 
20
+        array (
21 21
         'type' => 'varchar',
22 22
         'label' => 'LBL_DOC_STATUS',
23 23
         'width' => '10%',
24 24
         'default' => true,
25 25
         'name' => 'status',
26
-      ),
27
-      'template_type' => 
28
-      array (
26
+        ),
27
+        'template_type' => 
28
+        array (
29 29
         'type' => 'enum',
30 30
         'label' => 'LBL_TEMPLATE_TYPE',
31 31
         'width' => '10%',
32 32
         'default' => true,
33 33
         'name' => 'template_type',
34
-      ),
35
-      'category_id' => 
36
-      array (
34
+        ),
35
+        'category_id' => 
36
+        array (
37 37
         'name' => 'category_id',
38 38
         'default' => true,
39 39
         'width' => '10%',
40
-      ),
41
-      'subcategory_id' => 
42
-      array (
40
+        ),
41
+        'subcategory_id' => 
42
+        array (
43 43
         'name' => 'subcategory_id',
44 44
         'default' => true,
45 45
         'width' => '10%',
46
-      ),
47
-      'assigned_user_id' => 
48
-      array (
46
+        ),
47
+        'assigned_user_id' => 
48
+        array (
49 49
         'name' => 'assigned_user_id',
50 50
         'type' => 'enum',
51 51
         'label' => 'LBL_ASSIGNED_TO',
52 52
         'function' => 
53 53
         array (
54
-          'name' => 'get_user_array',
55
-          'params' => 
56
-          array (
54
+            'name' => 'get_user_array',
55
+            'params' => 
56
+            array (
57 57
             0 => false,
58
-          ),
58
+            ),
59 59
         ),
60 60
         'default' => true,
61 61
         'width' => '10%',
62
-      ),
63
-      'active_date' => 
64
-      array (
62
+        ),
63
+        'active_date' => 
64
+        array (
65 65
         'name' => 'active_date',
66 66
         'default' => true,
67 67
         'width' => '10%',
68
-      ),
69
-      'exp_date' => 
70
-      array (
68
+        ),
69
+        'exp_date' => 
70
+        array (
71 71
         'name' => 'exp_date',
72 72
         'default' => true,
73 73
         'width' => '10%',
74
-      ),
74
+        ),
75
+    ),
75 76
     ),
76
-  ),
77
-  'templateMeta' => 
78
-  array (
77
+    'templateMeta' => 
78
+    array (
79 79
     'maxColumns' => '3',
80 80
     'maxColumnsBasic' => '4',
81 81
     'widths' => 
82 82
     array (
83
-      'label' => '10',
84
-      'field' => '30',
83
+        'label' => '10',
84
+        'field' => '30',
85
+    ),
85 86
     ),
86
-  ),
87 87
 );
88 88
 ?>
Please login to merge, or discard this patch.
modules/Documents/metadata/SearchFields.php 1 patch
Indentation   +40 added lines, -40 removed lines patch added patch discarded remove patch
@@ -3,36 +3,36 @@  discard block
 block discarded – undo
3 3
 global $current_user;
4 4
 $module_name = "Documents";
5 5
 $searchFields['Documents'] = array (
6
-  'document_name' => 
7
-  array (
6
+    'document_name' => 
7
+    array (
8 8
     'query_type' => 'default',
9
-  ),
10
-  'category_id' => 
11
-  array (
9
+    ),
10
+    'category_id' => 
11
+    array (
12 12
     'query_type' => 'default',
13 13
     'options' => 'document_category_dom',
14 14
     'template_var' => 'CATEGORY_OPTIONS',
15
-  ),
16
-  'subcategory_id' => 
17
-  array (
15
+    ),
16
+    'subcategory_id' => 
17
+    array (
18 18
     'query_type' => 'default',
19 19
     'options' => 'document_subcategory_dom',
20 20
     'template_var' => 'SUBCATEGORY_OPTIONS',
21
-  ),
22
-  'active_date' => 
23
-  array (
21
+    ),
22
+    'active_date' => 
23
+    array (
24 24
     'query_type' => 'default',
25
-  ),
26
-  'exp_date' => 
27
-  array (
25
+    ),
26
+    'exp_date' => 
27
+    array (
28 28
     'query_type' => 'default',
29
-  ),
30
-  'assigned_user_id' => 
31
-  array (
29
+    ),
30
+    'assigned_user_id' => 
31
+    array (
32 32
     'query_type' => 'default',
33
-  ),
34
-  'filename' => 
35
-  array (
33
+    ),
34
+    'filename' => 
35
+    array (
36 36
     'query_type' => 'format',
37 37
     'operator' => 'subquery',
38 38
     'subquery' => 'SELECT document_revisions.id FROM document_revisions
@@ -40,45 +40,45 @@  discard block
 block discarded – undo
40 40
 				   AND document_revisions.filename LIKE \'{0}\'',
41 41
     'db_field' => 
42 42
     array (
43
-      0 => 'document_revision_id',
43
+        0 => 'document_revision_id',
44 44
     ),
45
-  ),
46
-  'range_date_entered' => 
47
-  array (
45
+    ),
46
+    'range_date_entered' => 
47
+    array (
48 48
     'query_type' => 'default',
49 49
     'enable_range_search' => true,
50 50
     'is_date_field' => true,
51
-  ),
52
-  'start_range_date_entered' => 
53
-  array (
51
+    ),
52
+    'start_range_date_entered' => 
53
+    array (
54 54
     'query_type' => 'default',
55 55
     'enable_range_search' => true,
56 56
     'is_date_field' => true,
57
-  ),
58
-  'end_range_date_entered' => 
59
-  array (
57
+    ),
58
+    'end_range_date_entered' => 
59
+    array (
60 60
     'query_type' => 'default',
61 61
     'enable_range_search' => true,
62 62
     'is_date_field' => true,
63
-  ),
64
-  'range_date_modified' => 
65
-  array (
63
+    ),
64
+    'range_date_modified' => 
65
+    array (
66 66
     'query_type' => 'default',
67 67
     'enable_range_search' => true,
68 68
     'is_date_field' => true,
69
-  ),
70
-  'start_range_date_modified' => 
71
-  array (
69
+    ),
70
+    'start_range_date_modified' => 
71
+    array (
72 72
     'query_type' => 'default',
73 73
     'enable_range_search' => true,
74 74
     'is_date_field' => true,
75
-  ),
76
-  'end_range_date_modified' => 
77
-  array (
75
+    ),
76
+    'end_range_date_modified' => 
77
+    array (
78 78
     'query_type' => 'default',
79 79
     'enable_range_search' => true,
80 80
     'is_date_field' => true,
81
-  ),
81
+    ),
82 82
     'favorites_only' => array(
83 83
         'query_type'=>'format',
84 84
         'operator' => 'subquery',
Please login to merge, or discard this patch.
modules/Documents/metadata/detailviewdefs.php 1 patch
Indentation   +72 added lines, -72 removed lines patch added patch discarded remove patch
@@ -39,140 +39,140 @@
 block discarded – undo
39 39
 
40 40
 $viewdefs ['Documents'] = 
41 41
 array (
42
-  'DetailView' => 
43
-  array (
42
+    'DetailView' => 
43
+    array (
44 44
     'templateMeta' => 
45 45
     array (
46
-      'maxColumns' => '2',
47
-      'form' => 
48
-      array (
46
+        'maxColumns' => '2',
47
+        'form' => 
48
+        array (
49 49
         'hidden' => 
50 50
         array (
51
-          0 => '<input type="hidden" name="old_id" value="{$fields.document_revision_id.value}">',
51
+            0 => '<input type="hidden" name="old_id" value="{$fields.document_revision_id.value}">',
52 52
         ),
53
-      ),
54
-      'widths' => 
55
-      array (
53
+        ),
54
+        'widths' => 
55
+        array (
56 56
         0 => 
57 57
         array (
58
-          'label' => '10',
59
-          'field' => '30',
58
+            'label' => '10',
59
+            'field' => '30',
60 60
         ),
61 61
         1 => 
62 62
         array (
63
-          'label' => '10',
64
-          'field' => '30',
63
+            'label' => '10',
64
+            'field' => '30',
65 65
         ),
66
-      ),
67
-      'useTabs' => true,
68
-      'tabDefs' => 
69
-      array (
66
+        ),
67
+        'useTabs' => true,
68
+        'tabDefs' => 
69
+        array (
70 70
         'LBL_DOCUMENT_INFORMATION' => 
71 71
         array (
72
-          'newTab' => true,
73
-          'panelDefault' => 'expanded',
72
+            'newTab' => true,
73
+            'panelDefault' => 'expanded',
74 74
         ),
75 75
         'LBL_PANEL_ASSIGNMENT' =>
76 76
         array (
77
-          'newTab' => true,
78
-          'panelDefault' => 'expanded',
77
+            'newTab' => true,
78
+            'panelDefault' => 'expanded',
79
+        ),
79 80
         ),
80
-      ),
81 81
     ),
82 82
     'panels' => 
83 83
     array (
84
-      'lbl_document_information' => 
85
-      array (
84
+        'lbl_document_information' => 
85
+        array (
86 86
         0 => 
87 87
         array (
88
-          0 => 
89
-          array (
88
+            0 => 
89
+            array (
90 90
             'name' => 'filename',
91 91
             'displayParams' => 
92 92
             array (
93
-              'link' => 'filename',
94
-              'id' => 'document_revision_id',
93
+                'link' => 'filename',
94
+                'id' => 'document_revision_id',
95
+            ),
95 96
             ),
96
-          ),
97
-          1 => 
98
-          array (
97
+            1 => 
98
+            array (
99 99
             'name' => 'status_id',
100 100
             'label' => 'LBL_DOC_STATUS',
101
-          ),
101
+            ),
102 102
         ),
103 103
         1 => 
104 104
         array (
105
-          0 => 
106
-          array (
105
+            0 => 
106
+            array (
107 107
             'name' => 'document_name',
108 108
             'label' => 'LBL_DOC_NAME',
109
-          ),
110
-          1 => 
111
-          array (
109
+            ),
110
+            1 => 
111
+            array (
112 112
             'name' => 'revision',
113 113
             'label' => 'LBL_DOC_VERSION',
114
-          ),
114
+            ),
115 115
         ),
116 116
         2 => 
117 117
         array (
118
-          0 => 
119
-          array (
118
+            0 => 
119
+            array (
120 120
             'name' => 'template_type',
121 121
             'label' => 'LBL_DET_TEMPLATE_TYPE',
122
-          ),
123
-          1 => 
124
-          array (
122
+            ),
123
+            1 => 
124
+            array (
125 125
             'name' => 'is_template',
126 126
             'label' => 'LBL_DET_IS_TEMPLATE',
127
-          ),
127
+            ),
128 128
         ),
129 129
         3 => 
130 130
         array (
131
-          0 => 'active_date',
132
-          1 => 'exp_date',
131
+            0 => 'active_date',
132
+            1 => 'exp_date',
133 133
         ),
134 134
         4 => 
135 135
         array (
136
-          0 => 'category_id',
137
-          1 => 'subcategory_id',
136
+            0 => 'category_id',
137
+            1 => 'subcategory_id',
138 138
         ),
139 139
         5 => 
140 140
         array (
141
-          0 => '',
142
-          1 => '',
141
+            0 => '',
142
+            1 => '',
143 143
         ),
144 144
         6 => 
145 145
         array (
146
-          0 => 'related_doc_name',
147
-          1 => 'related_doc_rev_number',
146
+            0 => 'related_doc_name',
147
+            1 => 'related_doc_rev_number',
148 148
         ),
149 149
         7 => 
150 150
         array (
151
-          0 => 
152
-          array (
151
+            0 => 
152
+            array (
153 153
             'name' => 'assigned_user_name',
154 154
             'label' => 'LBL_ASSIGNED_TO_NAME',
155
-          ),
155
+            ),
156 156
         ),
157
-      ),
158
-      'LBL_PANEL_ASSIGNMENT' =>
159
-      array (
157
+        ),
158
+        'LBL_PANEL_ASSIGNMENT' =>
159
+        array (
160 160
         0 => 
161 161
         array (
162
-          0 => 
163
-          array (
164
-              'name' => 'date_entered',
165
-              'customCode' => '{$fields.date_entered.value} {$APP.LBL_BY} {$fields.created_by_name.value}',
166
-          ),
167
-          1 => 
168
-          array (
169
-              'name' => 'date_modified',
170
-              'label' => 'LBL_DATE_MODIFIED',
171
-              'customCode' => '{$fields.date_modified.value} {$APP.LBL_BY} {$fields.modified_by_name.value}',
172
-          ),
173
-        ),
174
-      ),
162
+            0 => 
163
+            array (
164
+                'name' => 'date_entered',
165
+                'customCode' => '{$fields.date_entered.value} {$APP.LBL_BY} {$fields.created_by_name.value}',
166
+            ),
167
+            1 => 
168
+            array (
169
+                'name' => 'date_modified',
170
+                'label' => 'LBL_DATE_MODIFIED',
171
+                'customCode' => '{$fields.date_modified.value} {$APP.LBL_BY} {$fields.modified_by_name.value}',
172
+            ),
173
+        ),
174
+        ),
175
+    ),
175 176
     ),
176
-  ),
177 177
 );
178 178
 ?>
Please login to merge, or discard this patch.
modules/Documents/metadata/quickcreatedefs.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -49,42 +49,42 @@
 block discarded – undo
49 49
                                             array('label' => '10', 'field' => '30')
50 50
                                             ),
51 51
                             'includes' => 
52
-                              array (
52
+                                array (
53 53
                                 array('file' => 'include/javascript/popup_parent_helper.js'),
54 54
                                 array('file' => 'cache/include/javascript/sugar_grp_jsolait.js'),
55 55
                                 array('file' => 'modules/Documents/documents.js'),
56
-                              ),
56
+                                ),
57 57
 ),
58
- 'panels' =>array (
59
-  'default' => 
60
-  array (
58
+    'panels' =>array (
59
+    'default' => 
60
+    array (
61 61
     
62 62
     array (
63
-      'status_id',
63
+        'status_id',
64 64
     ),
65 65
     array (
66
-      array('name'=>'filename', 
66
+        array('name'=>'filename', 
67 67
             'displayParams'=>array('required'=>true, 'onchangeSetFileNameTo' => 'document_name'),
68 68
             ),
69 69
     ),
70 70
     
71 71
     array (
72
-      'document_name',
73
-       array('name'=>'revision',
72
+        'document_name',
73
+        array('name'=>'revision',
74 74
             'customCode' => '<input name="revision" type="text" value="{$fields.revision.value}" {$DISABLED}>'
75
-           ),
75
+            ),
76 76
     ),    
77 77
     
78 78
     array (
79
-       array('name'=>'active_date','displayParams'=>array('required'=>true)),
80
-       'category_id',
79
+        array('name'=>'active_date','displayParams'=>array('required'=>true)),
80
+        'category_id',
81 81
     ),
82 82
     
83 83
 
84 84
     array (
85
-      array('name'=>'description', 'displayParams'=>array('rows'=>10, 'cols'=>120)),
85
+        array('name'=>'description', 'displayParams'=>array('rows'=>10, 'cols'=>120)),
86
+    ),
86 87
     ),
87
-  ),
88 88
 )
89 89
 
90 90
 );
Please login to merge, or discard this patch.
modules/Documents/metadata/listviewdefs.php 1 patch
Indentation   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -42,16 +42,16 @@  discard block
 block discarded – undo
42 42
 
43 43
 
44 44
 $listViewDefs['Documents'] = array(
45
-  'DOCUMENT_NAME' => 
46
-  array (
45
+    'DOCUMENT_NAME' => 
46
+    array (
47 47
     'width' => '20%',
48 48
     'label' => 'LBL_NAME',
49 49
     'link' => true,
50 50
     'default' => true,
51 51
     'bold' => true,
52
-  ),
53
-  'FILENAME' => 
54
-  array (
52
+    ),
53
+    'FILENAME' => 
54
+    array (
55 55
     'width' => '20%',
56 56
     'label' => 'LBL_FILENAME',
57 57
     'link' => true,
@@ -66,45 +66,45 @@  discard block
 block discarded – undo
66 66
         2 => 'doc_type',
67 67
         3 => 'doc_url',
68 68
     ),
69
-  ),
70
-  'CATEGORY_ID' => 
71
-  array (
69
+    ),
70
+    'CATEGORY_ID' => 
71
+    array (
72 72
     'width' => '10%',
73 73
     'label' => 'LBL_LIST_CATEGORY',
74 74
     'default' => true,
75
-  ),
76
-  'SUBCATEGORY_ID' => 
77
-  array (
75
+    ),
76
+    'SUBCATEGORY_ID' => 
77
+    array (
78 78
     'width' => '15%',
79 79
     'label' => 'LBL_LIST_SUBCATEGORY',
80 80
     'default' => true,
81
-  ),
82
-  'LAST_REV_CREATE_DATE' => 
83
-  array (
81
+    ),
82
+    'LAST_REV_CREATE_DATE' => 
83
+    array (
84 84
     'width' => '10%',
85 85
     'label' => 'LBL_LIST_LAST_REV_DATE',
86 86
     'default' => true,
87 87
     'sortable' => false,
88 88
     'related_fields' => 
89 89
     array (
90
-      0 => 'document_revision_id',
90
+        0 => 'document_revision_id',
91
+    ),
91 92
     ),
92
-  ),
93
-  'EXP_DATE' => 
94
-  array (
93
+    'EXP_DATE' => 
94
+    array (
95 95
     'width' => '10%',
96 96
     'label' => 'LBL_LIST_EXP_DATE',
97 97
     'default' => true,
98
-  ),
99
-  'ASSIGNED_USER_NAME' =>
100
-  array(
98
+    ),
99
+    'ASSIGNED_USER_NAME' =>
100
+    array(
101 101
     'width' => '10',
102 102
     'label' => 'LBL_LIST_ASSIGNED_USER',
103 103
     'module' => 'Employees',
104 104
     'id' => 'ASSIGNED_USER_ID',
105 105
     'default' => true),
106
-  'MODIFIED_BY_NAME' =>
107
-  array (
106
+    'MODIFIED_BY_NAME' =>
107
+    array (
108 108
     'width' => '10%',
109 109
     'label' => 'LBL_MODIFIED_USER',
110 110
     'module' => 'Users',
@@ -113,13 +113,13 @@  discard block
 block discarded – undo
113 113
     'sortable' => false,
114 114
     'related_fields' =>
115 115
     array (
116
-      0 => 'modified_user_id',
116
+        0 => 'modified_user_id',
117 117
     ),
118 118
     ),
119
-  'DATE_ENTERED' => array (
119
+    'DATE_ENTERED' => array (
120 120
     'width' => '10%',
121 121
     'label' => 'LBL_DATE_ENTERED',
122 122
     'default' => true,
123
-  )
123
+    )
124 124
 );
125 125
 ?>
126 126
\ No newline at end of file
Please login to merge, or discard this patch.