From 69d6287fd11033fb6dc41cc6f42147b7c0a5ddd1 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Fri, 19 Mar 2021 10:54:30 +0100 Subject: [PATCH] pass 3rd parameter to formField() if returned by hook --- views/bootstrap/class.EditAttributes.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/views/bootstrap/class.EditAttributes.php b/views/bootstrap/class.EditAttributes.php index 2c98436f4..7708b7515 100644 --- a/views/bootstrap/class.EditAttributes.php +++ b/views/bootstrap/class.EditAttributes.php @@ -58,7 +58,7 @@ class SeedDMS_View_EditAttributes extends SeedDMS_Bootstrap_Style { $arr = $this->callHook('editDocumentContentAttribute', $version, $attrdef); if(is_array($arr)) { if($arr) { - $this->formField($arr[0], $arr[1]); + $this->formField($arr[0], $arr[1], isset($arr[2]) ? $arr[2] : null); } } elseif(is_string($arr)) { echo $arr; @@ -70,7 +70,7 @@ class SeedDMS_View_EditAttributes extends SeedDMS_Bootstrap_Style { $arrs = $this->callHook('addDocumentContentAttributes', $version); if(is_array($arrs)) { foreach($arrs as $arr) { - $this->formField($arr[0], $arr[1]); + $this->formField($arr[0], $arr[1], isset($arr[2]) ? $arr[2] : null); } } elseif(is_string($arrs)) { echo $arrs;