From e93d3b79f77b134c83514c994c01d75bb9446190 Mon Sep 17 00:00:00 2001 From: Eldad Fux Date: Tue, 21 Apr 2020 11:13:08 +0300 Subject: [PATCH] Hide rule when not collections are set --- app/views/console/database/rules/document.phtml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/app/views/console/database/rules/document.phtml b/app/views/console/database/rules/document.phtml index 8cdb076e9..505505d6f 100644 --- a/app/views/console/database/rules/document.phtml +++ b/app/views/console/database/rules/document.phtml @@ -3,8 +3,12 @@ $key = $this->getParam('key', ''); $array = $this->getParam('array', false); $required = $this->getParam('required', ''); $namespace = $this->getParam('namespace', ''); +$list = $this->getParam('list', []); +$list = (is_array($list)) ? $list : []; +$list = ($array) ? $list : array_shift($list); ?> +
+
-
+ +
+
\ No newline at end of file