fix errors related to new onepage mode

This commit is contained in:
Uwe Steinmann 2019-10-21 09:32:07 +02:00
parent 8c73f36151
commit e9b896ecf1
4 changed files with 15 additions and 0 deletions

View File

@ -48,6 +48,7 @@ if(isset($_GET['attrdefid']) && $_GET['attrdefid']) {
if($view) {
$view->setParam('accessobject', $accessop);
$view->setParam('onepage', false); // do most navigation by reloading areas of pages with ajax
$view->setParam('attrdefs', $attrdefs);
$view->setParam('selattrdef', $selattrdef);
$view->setParam('showtree', showtree());

View File

@ -26,6 +26,7 @@ require_once("inc/inc.Init.php");
require_once("inc/inc.Extension.php");
require_once("inc/inc.DBInit.php");
require_once("inc/inc.ClassUI.php");
require_once("inc/inc.ClassAccessOperation.php");
require_once("inc/inc.Authentication.php");
$tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
@ -44,6 +45,8 @@ if(isset($_GET['documentid']) && $_GET['documentid'] && is_numeric($_GET['docume
} else
$document = null;
$accessop = new SeedDMS_AccessOperation($dms, null, $user, $settings);
$calendar = new SeedDMS_Calendar($dms->getDB(), $user);
if(isset($_GET['eventid']) && $_GET['eventid'] && is_numeric($_GET['eventid'])) {
@ -62,6 +65,8 @@ if(isset($_GET['eventtype']) && $_GET['eventtype']) {
$eventtype = 'regular';
if($view) {
$view->setParam('accessobject', $accessop);
$view->setParam('onepage', false); // do most navigation by reloading areas of pages with ajax
$view->setParam('calendar', $calendar);
$view->setParam('start', $start);
$view->setParam('end', $end);

View File

@ -58,6 +58,8 @@ if (isset($_GET["navBar"])) {
*/
}
$accessop = new SeedDMS_AccessOperation($dms, null, $user, $settings);
if(isset($_GET["fullsearch"]) && $_GET["fullsearch"] && $settings->_enableFullSearch) {
// Search in Fulltext {{{
if (isset($_GET["query"]) && is_string($_GET["query"])) {
@ -435,6 +437,8 @@ if($settings->_showSingleSearchHit && count($entries) == 1) {
$tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
$view = UI::factory($theme, $tmp[1], array('dms'=>$dms, 'user'=>$user, 'query'=>$query, 'searchhits'=>$entries, 'totalpages'=>$totalPages, 'pagenumber'=>$pageNumber, 'searchtime'=>$searchTime, 'urlparams'=>$_GET, 'cachedir'=>$settings->_cacheDir));
if($view) {
$view->setParam('accessobject', $accessop);
$view->setParam('onepage', false); // do most navigation by reloading areas of pages with ajax
$view->setParam('showtree', showtree());
$view->setParam('enableRecursiveCount', $settings->_enableRecursiveCount);
$view->setParam('maxRecursiveCount', $settings->_maxRecursiveCount);

View File

@ -26,6 +26,7 @@ require_once("inc/inc.Init.php");
require_once("inc/inc.Extension.php");
require_once("inc/inc.DBInit.php");
require_once("inc/inc.ClassUI.php");
require_once("inc/inc.ClassAccessOperation.php");
require_once("inc/inc.Authentication.php");
$tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME']));
@ -40,6 +41,8 @@ if(isset($_GET['skip']))
else
$skip = array();
$accessop = new SeedDMS_AccessOperation($dms, null, $user, $settings);
$document = null;
$content = null;
if(isset($_GET['documentid']) && $_GET['documentid'] && is_numeric($_GET['documentid'])) {
@ -53,6 +56,8 @@ if(isset($_GET['documentid']) && $_GET['documentid'] && is_numeric($_GET['docume
if($view) {
$view->setParam('dms', $dms);
$view->setParam('user', $user);
$view->setParam('accessobject', $accessop);
$view->setParam('onepage', false); // do most navigation by reloading areas of pages with ajax
$view->setParam('showtree', showtree());
$view->setParam('fromdate', isset($_GET['fromdate']) ? $_GET['fromdate'] : '');
$view->setParam('todate', isset($_GET['todate']) ? $_GET['todate'] : '');