Skip to content
Snippets Groups Projects
Commit 1f7bc1d5 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

FIX Bad sort link on ECM module for automatic tab

parent 914d56bb
No related branches found
No related tags found
No related merge requests found
...@@ -82,6 +82,7 @@ else // For no ajax call ...@@ -82,6 +82,7 @@ else // For no ajax call
$relativepath=$ecmdir->getRelativePath(); $relativepath=$ecmdir->getRelativePath();
$upload_dir = $conf->ecm->dir_output.'/'.$relativepath; $upload_dir = $conf->ecm->dir_output.'/'.$relativepath;
} }
if (empty($url)) $url=DOL_URL_ROOT.'/ecm/index.php';
// Load traductions files // Load traductions files
$langs->load("ecm"); $langs->load("ecm");
...@@ -138,10 +139,10 @@ if (! dol_is_dir($upload_dir)) ...@@ -138,10 +139,10 @@ if (! dol_is_dir($upload_dir))
} }
print '<!-- TYPE='.$type.' -->'."\n"; print '<!-- TYPE='.$type.' -->'."\n";
print '<!-- Page called with mode='.(isset($mode)?$mode:'').' type='.$type.' module='.$module.' url='.$_SERVER["PHP_SELF"].'?'.$_SERVER["QUERY_STRING"].' -->'."\n"; print '<!-- Page called with mode='.(isset($mode)?$mode:'').' type='.$type.' module='.$module.' url='.$url.' '.$_SERVER["PHP_SELF"].'?'.$_SERVER["QUERY_STRING"].' -->'."\n";
$param=($sortfield?'&sortfield='.$sortfield:'').($sortorder?'&sortorder='.$sortorder:''); $param=($sortfield?'&sortfield='.$sortfield:'').($sortorder?'&sortorder='.$sortorder:'');
$url=DOL_URL_ROOT.'/ecm/index.php';
// Dir scan // Dir scan
if ($type == 'directory') if ($type == 'directory')
......
...@@ -574,6 +574,7 @@ if (empty($action) || $action == 'file_manager' || preg_match('/refresh/i',$acti ...@@ -574,6 +574,7 @@ if (empty($action) || $action == 'file_manager' || preg_match('/refresh/i',$acti
$mode='noajax'; $mode='noajax';
$url=DOL_URL_ROOT.'/ecm/index_auto.php';
include_once DOL_DOCUMENT_ROOT.'/core/ajax/ajaxdirpreview.php'; include_once DOL_DOCUMENT_ROOT.'/core/ajax/ajaxdirpreview.php';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment