pass $document not $folder to hook addDocumentContentAttributes

This commit is contained in:
Uwe Steinmann 2021-03-05 18:46:20 +01:00
parent 88ed21488c
commit 2a5a5b2053

View File

@ -290,7 +290,7 @@ console.log(element);
}
}
}
$arrs = $this->callHook('addDocumentContentAttributes', $folder);
$arrs = $this->callHook('addDocumentContentAttributes', $document);
if(is_array($arrs)) {
foreach($arrs as $arr) {
$this->formField($arr[0], $arr[1]);