From 2a5a5b205349de4203bb760d77ef581d9eba2310 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Fri, 5 Mar 2021 18:46:20 +0100 Subject: [PATCH] pass $document not $folder to hook addDocumentContentAttributes --- views/bootstrap/class.UpdateDocument.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/bootstrap/class.UpdateDocument.php b/views/bootstrap/class.UpdateDocument.php index b855d89ee..780e5c78d 100644 --- a/views/bootstrap/class.UpdateDocument.php +++ b/views/bootstrap/class.UpdateDocument.php @@ -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]);