From 00e45dd63a01c225ee0911c6ca6bfd5285a638c6 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Fri, 22 Apr 2016 12:28:19 +0200 Subject: [PATCH] use setParam() instead of passing array to view --- out/out.UpdateDocument.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/out/out.UpdateDocument.php b/out/out.UpdateDocument.php index a79873ded..c145c47c6 100644 --- a/out/out.UpdateDocument.php +++ b/out/out.UpdateDocument.php @@ -59,8 +59,18 @@ $folder = $document->getFolder(); $accessop = new SeedDMS_AccessOperation($document, $user, $settings); $tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME'])); -$view = UI::factory($theme, $tmp[1], array('dms'=>$dms, 'user'=>$user, 'folder'=>$folder, 'document'=>$document, 'strictformcheck'=>$settings->_strictFormCheck, 'enablelargefileupload'=>$settings->_enableLargeFileUpload, 'enableadminrevapp'=>$settings->_enableAdminRevApp, 'enableownerrevapp'=>$settings->_enableOwnerRevApp, 'enableselfrevapp'=>$settings->_enableSelfRevApp, 'dropfolderdir'=>$settings->_dropFolderDir, 'workflowmode'=>$settings->_workflowMode, 'presetexpiration'=>$settings->_presetExpirationDate)); +$view = UI::factory($theme, $tmp[1], array('dms'=>$dms, 'user'=>$user)); if($view) { + $view->setParam('folder', $folder); + $view->setParam('document', $document); + $view->setParam('strictformcheck', $settings->_strictFormCheck); + $view->setParam('enablelargefileupload', $settings->_enableLargeFileUpload); + $view->setParam('enableadminrevapp', $settings->_enableAdminRevApp); + $view->setParam('enableownerrevapp', $settings->_enableOwnerRevApp); + $view->setParam('enableselfrevapp', $settings->_enableSelfRevApp); + $view->setParam('dropfolderdir', $settings->_dropFolderDir); + $view->setParam('workflowmode', $settings->_workflowMode); + $view->setParam('presetexpiration', $settings->_presetExpirationDate); $view->setParam('accessobject', $accessop); $view($_GET); exit;