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']}]"; + } /**