Skip to content

Commit

Permalink
Make top level data always be "group"
Browse files Browse the repository at this point in the history
  • Loading branch information
arnemorken committed Jan 9, 2025
1 parent 87131da commit c8be796
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions data/mysql/anyTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -1807,10 +1807,10 @@ public function prepareData($id=null)
$data = array("data" => array($topidx => array()));

// Set "head" and header
$data["data"][$topidx]["head"] = $this->mType;
$data["data"][$topidx]["head"] = "group";
$hdr = $this->findHeader($this->mType,$this->mData,$id);
if (isset($hdr) && $hdr != "")
$data["data"][$topidx][$this->mNameKey] = $hdr;
$data["data"][$topidx]["group_name"] = $hdr;

// Set data
if (isset($this->mData)) {
Expand Down

0 comments on commit c8be796

Please sign in to comment.