@@ -371,6 +396,10 @@
+
@@ -442,7 +471,7 @@
+
+
+
+
+
+
Cancel
-
+
-
Update
@@ -84,6 +175,7 @@ $namespace = 'project-document';
$comp
->setParam('collection', $collection)
+ ->setParam('collections', $collections)
->setParam('namespace', $namespace)
->setParam('key', 'data')
->setParam('parent', 1)
@@ -127,7 +219,7 @@ $namespace = 'project-document';
- -
+ -
@@ -160,47 +252,4 @@ $namespace = 'project-document';
-
-
-
- getId()) {
- continue; // Do not allow rec recrusion
- }
-
- Authorization::disable(); //TODO Try and avoid calling the DB from the template
- $childCollection = $db->getDocument($item, false);
- Authorization::reset();
-
- if(!$childCollection->getId()) {
- continue;
- }
- ?>
-
-
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/app/views/console/database/form.phtml b/app/views/console/database/form.phtml
index 64911d2036..59ce352763 100644
--- a/app/views/console/database/form.phtml
+++ b/app/views/console/database/form.phtml
@@ -3,6 +3,7 @@
use Utopia\View;
$collection = $this->getParam('collection', null);
+$collections = $this->getParam('collections', []);
$rules = $collection->getAttribute('rules', []);
$key = $this->getParam('key', null);
$parent = $this->getParam('parent', true);
@@ -24,7 +25,7 @@ $array = $this->getParam('array', false);
*/ ?>
-