From 9eef72cdd385876ad5e464010304c8243f42b783 Mon Sep 17 00:00:00 2001 From: Eldad Fux Date: Thu, 11 Jun 2020 07:37:12 +0300 Subject: [PATCH] Limited number of cells --- app/views/console/database/collection.phtml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/app/views/console/database/collection.phtml b/app/views/console/database/collection.phtml index da586a85d7..c3ed6e5574 100644 --- a/app/views/console/database/collection.phtml +++ b/app/views/console/database/collection.phtml @@ -1,6 +1,7 @@ getParam('collection', []); $rules = $collection->getAttribute('rules', []); +$maxCells = 10; ?>
getAttribute('rules', []); - $rule): + if($i > $maxCells) { + break; + } $label = (isset($rule['label'])) ? $rule['label'] : ''; ?> @@ -96,7 +100,10 @@ $rules = $collection->getAttribute('rules', []); - $rule): + if($i > $maxCells) { + break; + } $label = (isset($rule['label'])) ? $rule['label'] : ''; $key = (isset($rule['key'])) ? $rule['key'] : ''; $type = (isset($rule['type'])) ? $rule['type'] : '';
escape($label); ?>