From abceebdc4bbd8f8844d4748075a7b647c7edc752 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Tue, 28 Aug 2018 21:15:51 +0200 Subject: [PATCH] fixed file upload --- lam/lib/html.inc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/lam/lib/html.inc b/lam/lib/html.inc index 1d5149e5..5b6c8b99 100644 --- a/lam/lib/html.inc +++ b/lam/lib/html.inc @@ -3988,6 +3988,8 @@ class htmlResponsiveInputFileUpload extends htmlInputFileUpload { private $label; /** help ID */ private $helpID; + /** help module */ + private $helpModule = null; /** render HTML of parent class */ private $renderParentHtml = false; @@ -4001,7 +4003,13 @@ class htmlResponsiveInputFileUpload extends htmlInputFileUpload { function __construct($name, $label, $helpID = null) { parent::__construct($name); $this->label = htmlspecialchars($label); - $this->helpID = $helpID; + if (is_string($helpID)) { + $this->helpID = $helpID; + } + elseif (is_array($helpID)) { + $this->helpID = $helpID[0]; + $this->helpModule = $helpID[1]; + } } /**