From 0fcfad04b4c43922419336f3d91aad1de416e796 Mon Sep 17 00:00:00 2001 From: nathangray Date: Thu, 5 Nov 2020 13:41:07 -0700 Subject: [PATCH] Etemplate: Match server-side grid row namespacing to client-side Client side does not open a new data perspective if row has an ID, server now doesn't to match. Fixes grids with row IDs lost their data on submit. --- api/src/Etemplate/Widget/Grid.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/Etemplate/Widget/Grid.php b/api/src/Etemplate/Widget/Grid.php index 2a5cefb6e3..7a1ca0c84c 100644 --- a/api/src/Etemplate/Widget/Grid.php +++ b/api/src/Etemplate/Widget/Grid.php @@ -88,7 +88,7 @@ class Grid extends Box return false; // return } - if ($this->id) $cname = self::form_name($cname, $this->id, $expand); + if ($this->id && $this->type !== 'row') $cname = self::form_name($cname, $this->id, $expand); if ($expand['cname'] !== $cname && $cname) { $expand['cont'] =& self::get_array(self::$request->content, $cname);