From b3ed6372f72053424c0dd3b0b9b7e8a7b87d0a1b Mon Sep 17 00:00:00 2001 From: nathangray Date: Wed, 4 Nov 2020 12:53:14 -0700 Subject: [PATCH] Etemplate: Fix unwanted row reset if box had no ID --- api/src/Etemplate/Widget/Box.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/Etemplate/Widget/Box.php b/api/src/Etemplate/Widget/Box.php index 28f0698417..3a1bb39b1b 100644 --- a/api/src/Etemplate/Widget/Box.php +++ b/api/src/Etemplate/Widget/Box.php @@ -73,7 +73,7 @@ class Box extends Etemplate\Widget // Expand children $columns_disabled = null; - if($this->children[0] && strpos($this->children[0]->id, '$') !== false) + if($this->id && $this->children[0] && strpos($this->children[0]->id, '$') !== false) { // Need to set this so the first child can repeat $expand['row'] = 0;