From 88b7c91b4280a7dd4469e643b54416ecf2760d1c Mon Sep 17 00:00:00 2001 From: nathangray Date: Tue, 13 Nov 2018 15:06:46 -0700 Subject: [PATCH] ID reset has to go after parent call, or things break --- api/src/Etemplate/Widget/Entry.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/src/Etemplate/Widget/Entry.php b/api/src/Etemplate/Widget/Entry.php index 60e4f72045..1bac26f21a 100644 --- a/api/src/Etemplate/Widget/Entry.php +++ b/api/src/Etemplate/Widget/Entry.php @@ -109,11 +109,11 @@ abstract class Entry extends Transformer $this->regex($attrs, $new_value); - $this->id = self::ID_PREFIX . $this->id . "[{$attrs['field']}]"; - - parent::beforeSendToClient($cname, $expand); + // Change this after parent::beforeSendToClient or it adds another layer + $this->id = self::ID_PREFIX . $this->id . "[{$attrs['field']}]"; + } /**