N°3123 - Fix create new object link

This commit is contained in:
Eric
2020-12-08 10:13:05 +01:00
parent 0c8d78d753
commit 05e802b74a

View File

@@ -981,9 +981,9 @@ JS
*/
protected function RenderList(array $aExtraParams, WebPage $oPage)
{
$oBlock = new BlockList();
$aClasses = $this->m_oSet->GetSelectedClasses();
$aAuthorizedClasses = [];
$oBlock = new BlockList();
$oBlock->bEmptySet = false;
$oBlock->bNotAuthorized = false;
$oBlock->bCreateNew = false;
@@ -992,6 +992,7 @@ JS
$oBlock->sParams = '';
$oBlock->sDefault = '';
$oBlock->sEventAttachedData = '';
$oBlock->sAbsoluteUrlAppRoot = utils::GetAbsoluteUrlAppRoot();
if (count($aClasses) > 1) {
// Check the classes that can be read (i.e authorized) by this user...