forked from Wavyzz/dolibarr
WIP Dir statement in ECM
This commit is contained in:
@@ -233,6 +233,7 @@ if ($type == 'directory') {
|
||||
'holiday',
|
||||
'recruitment-recruitmentcandidature',
|
||||
'banque',
|
||||
'bank-statement',
|
||||
'chequereceipt',
|
||||
'mrp-mo'
|
||||
);
|
||||
@@ -286,6 +287,8 @@ if ($type == 'directory') {
|
||||
$upload_dir = $conf->recruitment->dir_output.'/recruitmentcandidature';
|
||||
} elseif ($module == 'banque') {
|
||||
$upload_dir = $conf->bank->dir_output;
|
||||
} elseif ($module == 'bank-statement') {
|
||||
$upload_dir = $conf->bank->dir_output.'/*/statement';
|
||||
} elseif ($module == 'chequereceipt') {
|
||||
$upload_dir = $conf->bank->dir_output.'/checkdeposits';
|
||||
} elseif ($module == 'mrp-mo') {
|
||||
@@ -300,7 +303,7 @@ if ($type == 'directory') {
|
||||
|
||||
// Automatic list
|
||||
if (in_array($module, $automodules)) {
|
||||
$param .= '&module='.$module;
|
||||
$param .= '&module='.urlencode($module);
|
||||
if (isset($search_doc_ref) && $search_doc_ref != '') {
|
||||
$param .= '&search_doc_ref='.urlencode($search_doc_ref);
|
||||
}
|
||||
@@ -309,6 +312,7 @@ if ($type == 'directory') {
|
||||
|
||||
$filter = preg_quote((string) $search_doc_ref, '/');
|
||||
$filearray = dol_dir_list($upload_dir, "files", 1, $filter, $excludefiles, $sortfield, $sorting, 1);
|
||||
//var_dump($filearray);
|
||||
|
||||
// To allow external users,we must restrict $filearray to entries the user is a thirdparty.
|
||||
// This can be done by filtering on entries found into llx_ecm
|
||||
|
||||
Reference in New Issue
Block a user