Skip to content

Commit

Permalink
Bugfix: Show subgroups for groups
Browse files Browse the repository at this point in the history
  • Loading branch information
arnemorken committed Jan 10, 2025
1 parent 522a3b1 commit 4eb4672
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
11 changes: 5 additions & 6 deletions data/alasql/anyTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -755,13 +755,12 @@ anyTable.prototype.dbSearchList = async function(options)
console.log(err);
}
else
if (linkType != "group") {
if (this.data && this.data["nogroup"])
this.data = this.data["nogroup"];
if (this.data && this.data["nogroup"]) {
this.data = this.data["nogroup"];
}
else {
if (this.data && this.data[linkId])
this.data = this.data[linkId];
else
if (this.data && this.data[linkId]) {
this.data = this.data[linkId];
}
}
//console.log("dbSearchList, tree list data:"); console.log(this.data);
Expand Down
9 changes: 4 additions & 5 deletions data/mysql/anyTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -981,12 +981,11 @@ protected function dbSearchList($linkId=null,$linkType=null,$groupId=null,$group
error_log($err);
}
else
if ($linkType != "group") {
if (isset($this->mData) && isset($this->mData["nogroup"]))
$this->mData = $this->mData["nogroup"];
if (isset($this->mData) && isset($this->mData["nogroup"])) {
$this->mData = $this->mData["nogroup"];
}
else {
if (isset($this->mData) && isset($this->mData[$linkId]))
else
if (isset($this->mData) && isset($this->mData[$linkId])) {
$this->mData = $this->mData[$linkId];
}
}
Expand Down

0 comments on commit 4eb4672

Please sign in to comment.