mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-14 08:54:21 +01:00
NEW : care grandchild (#31314)
* NEW_CARE_GRANDCHILD * Update commonobject.class.php --------- Co-authored-by: Laurent Destailleur <eldy@destailleur.fr>
This commit is contained in:
@@ -3349,10 +3349,11 @@ abstract class CommonObject
|
||||
if ($resql) {
|
||||
$i = 0;
|
||||
$num = $this->db->num_rows($resql);
|
||||
$grandchild = getDolGlobalInt('MAIN_CARE_GRANDCHILD');
|
||||
while ($i < $num) {
|
||||
$row = $this->db->fetch_row($resql);
|
||||
$rows[] = $row[0]; // Add parent line into array rows
|
||||
$children = $this->getChildrenOfLine($row[0]);
|
||||
$children = $this->getChildrenOfLine($row[0], $grandchild);
|
||||
if (!empty($children)) {
|
||||
foreach ($children as $child) {
|
||||
array_push($rows, $child);
|
||||
|
||||
Reference in New Issue
Block a user