From 434c12672fd739581d74358317107ce0db4917c5 Mon Sep 17 00:00:00 2001 From: logmanoriginal Date: Tue, 22 Jan 2019 18:11:52 +0100 Subject: [PATCH] lib: Ignore required attribute on lists an checkboxes References #1014 --- lib/BridgeCard.php | 10 ++++++++++ lib/ParameterValidator.php | 5 ++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/lib/BridgeCard.php b/lib/BridgeCard.php index a3493b75..9d42cacf 100644 --- a/lib/BridgeCard.php +++ b/lib/BridgeCard.php @@ -207,6 +207,11 @@ This bridge is not fetching its content through a secure connection'; * @return string The list input field */ private static function getListInput($entry, $id, $name) { + if(isset($entry['required'])) { + Debug::log('The "required" attribute is not supported for lists.'); + unset($entry['required']); + } + $list = '