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.
This commit is contained in:
nathangray 2020-11-05 13:41:07 -07:00
parent 5ef339dc9b
commit 0fcfad04b4

View File

@ -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);