Fix expansion broken in ddddc5ba05

Caused export field checkboxes in new definition to not keep their value
This commit is contained in:
nathan 2021-10-13 15:08:16 -06:00
parent 918d91eb9b
commit 965e100082

View File

@ -88,8 +88,11 @@ class Grid extends Box
return false; // return
}
if ($this->id && $this->type !== 'row') $cname = self::form_name($cname, $this->id, $expand);
if (!empty($expand['cname']) && $expand['cname'] !== $cname && $cname)
if($this->id && $this->type !== 'row')
{
$cname = self::form_name($cname, $this->id, $expand);
}
if($cname && (!empty($expand['cname']) && $expand['cname'] !== $cname || !$expand['cname']))
{
$expand['cont'] =& self::get_array(self::$request->content, $cname);
$expand['cname'] = $cname;