@@ -46,40 +46,40 @@ |
||
46 | 46 | * *******************************************************************************/ |
47 | 47 | |
48 | 48 | if(ob_get_level() < 1) |
49 | - ob_start(); |
|
49 | + ob_start(); |
|
50 | 50 | ob_implicit_flush(1); |
51 | 51 | |
52 | 52 | // load the generated persistence file if found |
53 | 53 | $persistence = array(); |
54 | 54 | if(file_exists($persist = sugar_cached('/modules/UpgradeWizard/_persistence.php'))) { |
55 | - require_once $persist; |
|
55 | + require_once $persist; |
|
56 | 56 | } |
57 | 57 | require_once('modules/UpgradeWizard/uw_utils.php'); |
58 | 58 | require_once('include/utils/zip_utils.php'); |
59 | 59 | |
60 | 60 | switch($_REQUEST['preflightStep']) { |
61 | - case 'find_upgrade_files': |
|
62 | - logThis('preflightJson finding upgrade files'); |
|
63 | - ob_end_flush(); |
|
64 | - $persistence['upgrade_files'] = preflightCheckJsonFindUpgradeFiles(); |
|
65 | - break; |
|
61 | + case 'find_upgrade_files': |
|
62 | + logThis('preflightJson finding upgrade files'); |
|
63 | + ob_end_flush(); |
|
64 | + $persistence['upgrade_files'] = preflightCheckJsonFindUpgradeFiles(); |
|
65 | + break; |
|
66 | 66 | |
67 | - case 'diff_upgrade_files': |
|
68 | - logThis('preflightJson diffing upgrade files'); |
|
69 | - ob_end_flush(); |
|
70 | - $persistence = preflightCheckJsonDiffFiles(); |
|
71 | - break; |
|
67 | + case 'diff_upgrade_files': |
|
68 | + logThis('preflightJson diffing upgrade files'); |
|
69 | + ob_end_flush(); |
|
70 | + $persistence = preflightCheckJsonDiffFiles(); |
|
71 | + break; |
|
72 | 72 | |
73 | - case 'get_diff_results': |
|
74 | - logThis('preflightJson getting diff results for display'); |
|
75 | - ob_end_flush(); |
|
76 | - $persistence = preflightCheckJsonGetDiff(); |
|
77 | - break; |
|
73 | + case 'get_diff_results': |
|
74 | + logThis('preflightJson getting diff results for display'); |
|
75 | + ob_end_flush(); |
|
76 | + $persistence = preflightCheckJsonGetDiff(); |
|
77 | + break; |
|
78 | 78 | |
79 | - case 'get_diff_errors': |
|
80 | - logThis('preflightJson getting diff errors (if any)'); |
|
81 | - preflightCheckJsonGetDiffErrors(); |
|
82 | - break; |
|
79 | + case 'get_diff_errors': |
|
80 | + logThis('preflightJson getting diff errors (if any)'); |
|
81 | + preflightCheckJsonGetDiffErrors(); |
|
82 | + break; |
|
83 | 83 | } |
84 | 84 | |
85 | 85 | write_array_to_file('persistence', $persistence, $persist); |
@@ -38,10 +38,10 @@ discard block |
||
38 | 38 | * display the words "Powered by SugarCRM" and "Supercharged by SuiteCRM". |
39 | 39 | ********************************************************************************/ |
40 | 40 | |
41 | - //Request object must have these property values: |
|
42 | - // Module: module name, this module should have a file called TreeData.php |
|
43 | - // Function: name of the function to be called in TreeData.php, the function will be called statically. |
|
44 | - // PARAM prefixed properties: array of these property/values will be passed to the function as parameter. |
|
41 | + //Request object must have these property values: |
|
42 | + // Module: module name, this module should have a file called TreeData.php |
|
43 | + // Function: name of the function to be called in TreeData.php, the function will be called statically. |
|
44 | + // PARAM prefixed properties: array of these property/values will be passed to the function as parameter. |
|
45 | 45 | |
46 | 46 | require_once('include/JSON.php'); |
47 | 47 | require_once('include/upload_file.php'); |
@@ -50,9 +50,9 @@ discard block |
||
50 | 50 | |
51 | 51 | $json = getJSONobj(); |
52 | 52 | $file_name = $json->decode(html_entity_decode($_REQUEST['file_name'])); |
53 | - if(isset($file_name['jsonObject']) && $file_name['jsonObject'] != null){ |
|
54 | - $file_name = $file_name['jsonObject']; |
|
55 | - } |
|
53 | + if(isset($file_name['jsonObject']) && $file_name['jsonObject'] != null){ |
|
54 | + $file_name = $file_name['jsonObject']; |
|
55 | + } |
|
56 | 56 | |
57 | 57 | $filesize = ''; |
58 | 58 | if(file_exists($file_name)){ |
@@ -73,10 +73,10 @@ discard block |
||
73 | 73 | //$uploadSizeIni = substr(ini_get("upload_max_filesize"), 0, strlen( ini_get("upload_max_filesize")) - 1); |
74 | 74 | //$GLOBALS['log']->fatal('Upload php setting Size '.return_bytes(ini_get("upload_max_filesize"))); |
75 | 75 | if($filesize != null){ |
76 | - if(($filesize > return_bytes(ini_get("upload_max_filesize"))) || ($filesize > return_bytes(ini_get("post_max_size")))){ |
|
77 | - $response=$filesize; |
|
78 | - //$response= "<script>alert('File size is bigger than the max_upload-size setting in php.ini. Upgrade attempt will fail. Increase the upload_max_size in php.ini to greater than ')</script>"; |
|
79 | - } |
|
76 | + if(($filesize > return_bytes(ini_get("upload_max_filesize"))) || ($filesize > return_bytes(ini_get("post_max_size")))){ |
|
77 | + $response=$filesize; |
|
78 | + //$response= "<script>alert('File size is bigger than the max_upload-size setting in php.ini. Upgrade attempt will fail. Increase the upload_max_size in php.ini to greater than ')</script>"; |
|
79 | + } |
|
80 | 80 | } |
81 | 81 | |
82 | 82 | if (!empty($response)) { |
@@ -72,18 +72,18 @@ |
||
72 | 72 | } |
73 | 73 | */ |
74 | 74 | |
75 | - $_SESSION['totalUpgradeTime'] = $_SESSION['totalUpgradeTime']+$_REQUEST['upgradeStepTime']; |
|
76 | - $response = $_SESSION['totalUpgradeTime']; |
|
75 | + $_SESSION['totalUpgradeTime'] = $_SESSION['totalUpgradeTime']+$_REQUEST['upgradeStepTime']; |
|
76 | + $response = $_SESSION['totalUpgradeTime']; |
|
77 | 77 | |
78 | 78 | $GLOBALS['log']->fatal('TOTAL TIME .....'.$_SESSION['totalUpgradeTime']); |
79 | - //$uptime = $uptime+$_REQUEST['upgradeStepTime']; |
|
80 | - $GLOBALS['log']->fatal($response); |
|
79 | + //$uptime = $uptime+$_REQUEST['upgradeStepTime']; |
|
80 | + $GLOBALS['log']->fatal($response); |
|
81 | 81 | |
82 | 82 | |
83 | - if (!empty($response)) { |
|
83 | + if (!empty($response)) { |
|
84 | 84 | $json = getJSONobj(); |
85 | - print $json->encode($response); |
|
86 | - } |
|
85 | + print $json->encode($response); |
|
86 | + } |
|
87 | 87 | |
88 | 88 | sugar_cleanup(); |
89 | 89 | exit(); |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | */ |
69 | 69 | public function getFilesToRemove($version) |
70 | 70 | { |
71 | - return array(); |
|
71 | + return array(); |
|
72 | 72 | } |
73 | 73 | |
74 | 74 | /** |
@@ -79,31 +79,31 @@ discard block |
||
79 | 79 | */ |
80 | 80 | public function processFilesToRemove($files=array()) |
81 | 81 | { |
82 | - if(empty($files) || !is_array($files)) |
|
83 | - { |
|
84 | - return; |
|
85 | - } |
|
82 | + if(empty($files) || !is_array($files)) |
|
83 | + { |
|
84 | + return; |
|
85 | + } |
|
86 | 86 | |
87 | - require_once('include/dir_inc.php'); |
|
87 | + require_once('include/dir_inc.php'); |
|
88 | 88 | |
89 | - if(!file_exists('custom/backup')) |
|
90 | - { |
|
91 | - mkdir_recursive('custom/backup'); |
|
92 | - } |
|
89 | + if(!file_exists('custom/backup')) |
|
90 | + { |
|
91 | + mkdir_recursive('custom/backup'); |
|
92 | + } |
|
93 | 93 | |
94 | - foreach($files as $file) |
|
95 | - { |
|
96 | - if(file_exists($file)) |
|
97 | - { |
|
98 | - $this->backup($file); |
|
99 | - if(is_dir($file)) |
|
100 | - { |
|
101 | - rmdir_recursive($file); |
|
102 | - } else { |
|
103 | - unlink($file); |
|
104 | - } |
|
105 | - } |
|
106 | - } |
|
94 | + foreach($files as $file) |
|
95 | + { |
|
96 | + if(file_exists($file)) |
|
97 | + { |
|
98 | + $this->backup($file); |
|
99 | + if(is_dir($file)) |
|
100 | + { |
|
101 | + rmdir_recursive($file); |
|
102 | + } else { |
|
103 | + unlink($file); |
|
104 | + } |
|
105 | + } |
|
106 | + } |
|
107 | 107 | } |
108 | 108 | |
109 | 109 | |
@@ -115,20 +115,20 @@ discard block |
||
115 | 115 | */ |
116 | 116 | protected function backup($file) |
117 | 117 | { |
118 | - $basename = basename($file); |
|
119 | - $basepath = str_replace($basename, '', $file); |
|
118 | + $basename = basename($file); |
|
119 | + $basepath = str_replace($basename, '', $file); |
|
120 | 120 | |
121 | - if(!empty($basepath) && !file_exists('custom/backup/' . $basepath)) |
|
122 | - { |
|
123 | - mkdir_recursive('custom/backup/' . $basepath); |
|
124 | - } |
|
121 | + if(!empty($basepath) && !file_exists('custom/backup/' . $basepath)) |
|
122 | + { |
|
123 | + mkdir_recursive('custom/backup/' . $basepath); |
|
124 | + } |
|
125 | 125 | |
126 | - if(is_dir($file)) |
|
127 | - { |
|
128 | - copy_recursive($file, 'custom/backup/' . $file); |
|
129 | - } else { |
|
130 | - copy($file, 'custom/backup/' . $file); |
|
131 | - } |
|
126 | + if(is_dir($file)) |
|
127 | + { |
|
128 | + copy_recursive($file, 'custom/backup/' . $file); |
|
129 | + } else { |
|
130 | + copy($file, 'custom/backup/' . $file); |
|
131 | + } |
|
132 | 132 | } |
133 | 133 | |
134 | 134 | } |
@@ -38,10 +38,10 @@ discard block |
||
38 | 38 | * display the words "Powered by SugarCRM" and "Supercharged by SuiteCRM". |
39 | 39 | ********************************************************************************/ |
40 | 40 | |
41 | - //Request object must have these property values: |
|
42 | - // Module: module name, this module should have a file called TreeData.php |
|
43 | - // Function: name of the function to be called in TreeData.php, the function will be called statically. |
|
44 | - // PARAM prefixed properties: array of these property/values will be passed to the function as parameter. |
|
41 | + //Request object must have these property values: |
|
42 | + // Module: module name, this module should have a file called TreeData.php |
|
43 | + // Function: name of the function to be called in TreeData.php, the function will be called statically. |
|
44 | + // PARAM prefixed properties: array of these property/values will be passed to the function as parameter. |
|
45 | 45 | |
46 | 46 | require_once('include/JSON.php'); |
47 | 47 | require_once('include/entryPoint.php'); |
@@ -52,25 +52,25 @@ discard block |
||
52 | 52 | |
53 | 53 | $json = getJSONobj(); |
54 | 54 | $selectedTable = $json->decode(html_entity_decode($_REQUEST['selectedTable'])); |
55 | - if(isset($tagArticleIds['jsonObject']) && $tagArticleIds['jsonObject'] != null){ |
|
56 | - $selectedTable = $selectedTable['jsonObject']; |
|
57 | - } |
|
55 | + if(isset($tagArticleIds['jsonObject']) && $tagArticleIds['jsonObject'] != null){ |
|
56 | + $selectedTable = $selectedTable['jsonObject']; |
|
57 | + } |
|
58 | 58 | $GLOBALS['log']->fatal('************ comes here *********'); |
59 | 59 | //$GLOBALS['log']->fatal($_REQUEST['selectedTable']); |
60 | 60 | function tableColumns($table_name){ |
61 | - $GLOBALS['log']->fatal('********TABLE PASSED******* '.$table_name); |
|
62 | - global $sugar_config; |
|
63 | - global $setup_db_database_name; |
|
61 | + $GLOBALS['log']->fatal('********TABLE PASSED******* '.$table_name); |
|
62 | + global $sugar_config; |
|
63 | + global $setup_db_database_name; |
|
64 | 64 | global $setup_db_host_name; |
65 | 65 | global $setup_db_host_instance; |
66 | 66 | global $setup_db_admin_user_name; |
67 | 67 | global $setup_db_admin_password; |
68 | 68 | |
69 | - //$db = &DBManagerFactory::getInstance('information_schema'); |
|
69 | + //$db = &DBManagerFactory::getInstance('information_schema'); |
|
70 | 70 | |
71 | - $db_name= $sugar_config['dbconfig']['db_name']; |
|
72 | - $setup_db_host_name = $sugar_config['dbconfig']['db_host_name']; |
|
73 | - $setup_db_admin_user_name = $sugar_config['dbconfig']['db_user_name']; |
|
71 | + $db_name= $sugar_config['dbconfig']['db_name']; |
|
72 | + $setup_db_host_name = $sugar_config['dbconfig']['db_host_name']; |
|
73 | + $setup_db_admin_user_name = $sugar_config['dbconfig']['db_user_name']; |
|
74 | 74 | $setup_db_host_instance = $sugar_config['dbconfig']['db_host_instance']; |
75 | 75 | $setup_db_admin_password = $sugar_config['dbconfig']['db_password']; |
76 | 76 | |
@@ -78,27 +78,27 @@ discard block |
||
78 | 78 | mysql_select_db('information_schema'); |
79 | 79 | |
80 | 80 | $qu="SELECT column_name FROM information_schema.columns WHERE table_schema = '".$db_name."' AND table_name = '".$table_name."'"; |
81 | - $ct =mysql_query($qu,$link); |
|
81 | + $ct =mysql_query($qu,$link); |
|
82 | 82 | //$cols= ''; |
83 | 83 | $colsDrop = array(); |
84 | 84 | while($row = mysql_fetch_assoc($ct)){ |
85 | - $colsDrop[] =$row['column_name']; |
|
85 | + $colsDrop[] =$row['column_name']; |
|
86 | 86 | } |
87 | 87 | return $colsDrop; |
88 | 88 | } |
89 | 89 | |
90 | 90 | $colsDrop = tableColumns($_REQUEST['selectedTable']); |
91 | 91 | if($colsDrop != null){ |
92 | - $colsDropDown = "<option value=".$_REQUEST['selectedTable']." Columns>".$_REQUEST['selectedTable']." Columns</option>"; |
|
93 | - foreach($colsDrop as $col){ |
|
94 | - $colsDropDown .="<option value={$col}>{$col}</option>"; |
|
95 | - } |
|
92 | + $colsDropDown = "<option value=".$_REQUEST['selectedTable']." Columns>".$_REQUEST['selectedTable']." Columns</option>"; |
|
93 | + foreach($colsDrop as $col){ |
|
94 | + $colsDropDown .="<option value={$col}>{$col}</option>"; |
|
95 | + } |
|
96 | 96 | } |
97 | 97 | //$response = "<script>document.getElementById('select_column').innerHTML=$colsDropDown</script>"; |
98 | 98 | $response = $colsDropDown; |
99 | 99 | |
100 | 100 | if (!empty($response)) { |
101 | - echo $response; |
|
101 | + echo $response; |
|
102 | 102 | } |
103 | 103 | sugar_cleanup(); |
104 | 104 | exit(); |
@@ -35,29 +35,29 @@ discard block |
||
35 | 35 | ********************************************************************************/ |
36 | 36 | |
37 | 37 | function build_argument_string($arguments=array()) { |
38 | - if(!is_array($arguments)) { |
|
39 | - return ''; |
|
40 | - } |
|
38 | + if(!is_array($arguments)) { |
|
39 | + return ''; |
|
40 | + } |
|
41 | 41 | |
42 | - $argument_string = ''; |
|
43 | - $count = 0; |
|
44 | - foreach($arguments as $arg) { |
|
45 | - if($count != 0) |
|
46 | - { |
|
47 | - //If current directory or parent directory is specified, substitute with full path |
|
48 | - if($arg == '.') |
|
49 | - { |
|
50 | - $arg = getcwd(); |
|
51 | - } else if ($arg == '..') { |
|
52 | - $dir = getcwd(); |
|
53 | - $arg = substr($dir, 0, strrpos($dir, DIRECTORY_SEPARATOR)); |
|
54 | - } |
|
55 | - $argument_string .= ' ' . escapeshellarg($arg); |
|
56 | - } |
|
57 | - $count++; |
|
58 | - } |
|
42 | + $argument_string = ''; |
|
43 | + $count = 0; |
|
44 | + foreach($arguments as $arg) { |
|
45 | + if($count != 0) |
|
46 | + { |
|
47 | + //If current directory or parent directory is specified, substitute with full path |
|
48 | + if($arg == '.') |
|
49 | + { |
|
50 | + $arg = getcwd(); |
|
51 | + } else if ($arg == '..') { |
|
52 | + $dir = getcwd(); |
|
53 | + $arg = substr($dir, 0, strrpos($dir, DIRECTORY_SEPARATOR)); |
|
54 | + } |
|
55 | + $argument_string .= ' ' . escapeshellarg($arg); |
|
56 | + } |
|
57 | + $count++; |
|
58 | + } |
|
59 | 59 | |
60 | - return $argument_string; |
|
60 | + return $argument_string; |
|
61 | 61 | } |
62 | 62 | |
63 | 63 | //Bug 52872. Dies if the request does not come from CLI. |
@@ -75,8 +75,8 @@ discard block |
||
75 | 75 | $run_dce_upgrade = true; |
76 | 76 | //set the php path if found |
77 | 77 | if(is_file($argv[7].'dce_config.php')){ |
78 | - include($argv[7].'dce_config.php'); |
|
79 | - $php_path = $dce_config['client_php_path'].'/'; |
|
78 | + include($argv[7].'dce_config.php'); |
|
79 | + $php_path = $dce_config['client_php_path'].'/'; |
|
80 | 80 | } |
81 | 81 | } |
82 | 82 | |
@@ -92,25 +92,25 @@ discard block |
||
92 | 92 | $has_error = $output == 0 ? false : true; |
93 | 93 | |
94 | 94 | if(!$has_error) { |
95 | - if($run_dce_upgrade) { |
|
96 | - $step2 = $php_path."php -f {$php_dir}silentUpgrade_dce_step1.php " . build_argument_string($argv); |
|
97 | - passthru($step2, $output); |
|
98 | - } else { |
|
99 | - $step2 = "php -f {$php_dir}silentUpgrade_step2.php " . build_argument_string($argv); |
|
100 | - passthru($step2, $output); |
|
101 | - } |
|
95 | + if($run_dce_upgrade) { |
|
96 | + $step2 = $php_path."php -f {$php_dir}silentUpgrade_dce_step1.php " . build_argument_string($argv); |
|
97 | + passthru($step2, $output); |
|
98 | + } else { |
|
99 | + $step2 = "php -f {$php_dir}silentUpgrade_step2.php " . build_argument_string($argv); |
|
100 | + passthru($step2, $output); |
|
101 | + } |
|
102 | 102 | } |
103 | 103 | |
104 | 104 | if($run_dce_upgrade) { |
105 | - $has_error = $output == 0 ? false : true; |
|
106 | - if(!$has_error) { |
|
107 | - $step3 = $php_path."php -f {$php_dir}silentUpgrade_dce_step2.php " . build_argument_string($argv); |
|
108 | - passthru($step3, $output); |
|
109 | - } |
|
105 | + $has_error = $output == 0 ? false : true; |
|
106 | + if(!$has_error) { |
|
107 | + $step3 = $php_path."php -f {$php_dir}silentUpgrade_dce_step2.php " . build_argument_string($argv); |
|
108 | + passthru($step3, $output); |
|
109 | + } |
|
110 | 110 | } |
111 | 111 | |
112 | 112 | if($output != 0) { |
113 | - echo "*************** silentupgrade failed ***************: $output\n"; |
|
113 | + echo "*************** silentupgrade failed ***************: $output\n"; |
|
114 | 114 | } |
115 | 115 | exit($output); |
116 | 116 | ?> |
@@ -38,45 +38,45 @@ discard block |
||
38 | 38 | ********************************************************************************/ |
39 | 39 | |
40 | 40 | $dictionary['AOR_Report'] = array( |
41 | - 'table'=>'aor_reports', |
|
42 | - 'audited'=>true, |
|
43 | - 'duplicate_merge'=>true, |
|
44 | - 'fields'=>array ( |
|
45 | - 'report_module' => |
|
46 | - array ( |
|
47 | - 'required' => true, |
|
48 | - 'name' => 'report_module', |
|
49 | - 'vname' => 'LBL_REPORT_MODULE', |
|
50 | - 'type' => 'enum', |
|
51 | - 'massupdate' => 0, |
|
52 | - 'default' => '', |
|
53 | - 'no_default' => false, |
|
54 | - 'comments' => '', |
|
55 | - 'help' => '', |
|
56 | - 'importable' => 'true', |
|
57 | - 'duplicate_merge' => 'disabled', |
|
58 | - 'duplicate_merge_dom_value' => '0', |
|
59 | - 'audited' => true, |
|
60 | - 'reportable' => true, |
|
61 | - 'unified_search' => false, |
|
62 | - 'merge_filter' => 'disabled', |
|
63 | - 'len' => 100, |
|
64 | - 'size' => '20', |
|
65 | - 'options' => 'aor_moduleList', |
|
66 | - 'studio' => 'visible', |
|
67 | - 'dependency' => false, |
|
68 | - ), |
|
41 | + 'table'=>'aor_reports', |
|
42 | + 'audited'=>true, |
|
43 | + 'duplicate_merge'=>true, |
|
44 | + 'fields'=>array ( |
|
45 | + 'report_module' => |
|
46 | + array ( |
|
47 | + 'required' => true, |
|
48 | + 'name' => 'report_module', |
|
49 | + 'vname' => 'LBL_REPORT_MODULE', |
|
50 | + 'type' => 'enum', |
|
51 | + 'massupdate' => 0, |
|
52 | + 'default' => '', |
|
53 | + 'no_default' => false, |
|
54 | + 'comments' => '', |
|
55 | + 'help' => '', |
|
56 | + 'importable' => 'true', |
|
57 | + 'duplicate_merge' => 'disabled', |
|
58 | + 'duplicate_merge_dom_value' => '0', |
|
59 | + 'audited' => true, |
|
60 | + 'reportable' => true, |
|
61 | + 'unified_search' => false, |
|
62 | + 'merge_filter' => 'disabled', |
|
63 | + 'len' => 100, |
|
64 | + 'size' => '20', |
|
65 | + 'options' => 'aor_moduleList', |
|
66 | + 'studio' => 'visible', |
|
67 | + 'dependency' => false, |
|
68 | + ), |
|
69 | 69 | |
70 | - 'graphs_per_row' => |
|
71 | - array ( |
|
72 | - 'required' => true, |
|
73 | - 'name' => 'graphs_per_row', |
|
74 | - 'vname' => 'LBL_GRAPHS_PER_ROW', |
|
75 | - 'type' => 'int', |
|
76 | - 'massupdate' => 0, |
|
77 | - 'default' => 2, |
|
78 | - 'no_default' => false, |
|
79 | - ), |
|
70 | + 'graphs_per_row' => |
|
71 | + array ( |
|
72 | + 'required' => true, |
|
73 | + 'name' => 'graphs_per_row', |
|
74 | + 'vname' => 'LBL_GRAPHS_PER_ROW', |
|
75 | + 'type' => 'int', |
|
76 | + 'massupdate' => 0, |
|
77 | + 'default' => 2, |
|
78 | + 'no_default' => false, |
|
79 | + ), |
|
80 | 80 | |
81 | 81 | 'field_lines' => |
82 | 82 | array ( |
@@ -118,8 +118,8 @@ discard block |
||
118 | 118 | 'include' => 'modules/AOR_Conditions/conditionLines.php' |
119 | 119 | ), |
120 | 120 | ), |
121 | - 'aor_fields' => |
|
122 | - array ( |
|
121 | + 'aor_fields' => |
|
122 | + array ( |
|
123 | 123 | 'name' => 'aor_fields', |
124 | 124 | 'type' => 'link', |
125 | 125 | 'relationship' => 'aor_reports_aor_fields', |
@@ -127,26 +127,26 @@ discard block |
||
127 | 127 | 'bean_name'=>'AOR_Field', |
128 | 128 | 'source'=>'non-db', |
129 | 129 | 'id_name' => 'aor_report_id', |
130 | - ), |
|
131 | - 'aor_conditions' => |
|
132 | - array ( |
|
133 | - 'name' => 'aor_conditions', |
|
134 | - 'type' => 'link', |
|
135 | - 'relationship' => 'aor_reports_aor_conditions', |
|
136 | - 'module'=>'AOR_Conditions', |
|
137 | - 'bean_name'=>'AOR_Condition', |
|
138 | - 'source'=>'non-db', |
|
139 | - ), |
|
140 | - 'aor_charts' => |
|
141 | - array ( |
|
130 | + ), |
|
131 | + 'aor_conditions' => |
|
132 | + array ( |
|
133 | + 'name' => 'aor_conditions', |
|
134 | + 'type' => 'link', |
|
135 | + 'relationship' => 'aor_reports_aor_conditions', |
|
136 | + 'module'=>'AOR_Conditions', |
|
137 | + 'bean_name'=>'AOR_Condition', |
|
138 | + 'source'=>'non-db', |
|
139 | + ), |
|
140 | + 'aor_charts' => |
|
141 | + array ( |
|
142 | 142 | 'name' => 'aor_charts', |
143 | 143 | 'type' => 'link', |
144 | 144 | 'relationship' => 'aor_charts_aor_reports', |
145 | 145 | 'source' => 'non-db', |
146 | 146 | 'id_name' => 'aor_report_id', |
147 | 147 | 'vname' => 'LBL_AOR_CHARTS', |
148 | - ), |
|
149 | - 'aor_scheduled_reports' => |
|
148 | + ), |
|
149 | + 'aor_scheduled_reports' => |
|
150 | 150 | array ( |
151 | 151 | 'name' => 'aor_scheduled_reports', |
152 | 152 | 'type' => 'link', |
@@ -188,8 +188,8 @@ discard block |
||
188 | 188 | 'relationship_type'=>'one-to-many', |
189 | 189 | ), |
190 | 190 | ), |
191 | - 'optimistic_locking'=>true, |
|
192 | - 'unified_search'=>true, |
|
191 | + 'optimistic_locking'=>true, |
|
192 | + 'unified_search'=>true, |
|
193 | 193 | ); |
194 | 194 | |
195 | 195 | if (!class_exists('VardefManager')){ |
@@ -24,18 +24,18 @@ |
||
24 | 24 | */ |
25 | 25 | |
26 | 26 | $searchFields['AOR_Reports'] = |
27 | - array ( |
|
28 | - 'name' => array( 'query_type'=>'default'), |
|
29 | - 'current_user_only'=> array('query_type'=>'default','db_field'=>array('assigned_user_id'),'my_items'=>true, 'vname' => 'LBL_CURRENT_USER_FILTER', 'type' => 'bool'), |
|
30 | - 'assigned_user_id'=> array('query_type'=>'default'), |
|
27 | + array ( |
|
28 | + 'name' => array( 'query_type'=>'default'), |
|
29 | + 'current_user_only'=> array('query_type'=>'default','db_field'=>array('assigned_user_id'),'my_items'=>true, 'vname' => 'LBL_CURRENT_USER_FILTER', 'type' => 'bool'), |
|
30 | + 'assigned_user_id'=> array('query_type'=>'default'), |
|
31 | 31 | |
32 | - //Range Search Support |
|
33 | - 'range_date_entered' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true), |
|
34 | - 'start_range_date_entered' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true), |
|
35 | - 'end_range_date_entered' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true), |
|
36 | - 'range_date_modified' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true), |
|
37 | - 'start_range_date_modified' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true), |
|
38 | - 'end_range_date_modified' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true), |
|
39 | - //Range Search Support |
|
40 | - ); |
|
32 | + //Range Search Support |
|
33 | + 'range_date_entered' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true), |
|
34 | + 'start_range_date_entered' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true), |
|
35 | + 'end_range_date_entered' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true), |
|
36 | + 'range_date_modified' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true), |
|
37 | + 'start_range_date_modified' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true), |
|
38 | + 'end_range_date_modified' => array ('query_type' => 'default', 'enable_range_search' => true, 'is_date_field' => true), |
|
39 | + //Range Search Support |
|
40 | + ); |
|
41 | 41 | ?> |
@@ -31,15 +31,15 @@ |
||
31 | 31 | ), |
32 | 32 | |
33 | 33 | |
34 | - 'panels' =>array ( |
|
35 | - 'default' => |
|
36 | - array ( |
|
34 | + 'panels' =>array ( |
|
35 | + 'default' => |
|
36 | + array ( |
|
37 | 37 | |
38 | 38 | array ( |
39 | - 'name', |
|
40 | - 'assigned_user_name', |
|
39 | + 'name', |
|
40 | + 'assigned_user_name', |
|
41 | + ), |
|
41 | 42 | ), |
42 | - ), |
|
43 | 43 | |
44 | 44 | ), |
45 | 45 |