From be2dc5224564483df53fc14e12a82ba47ff970ce Mon Sep 17 00:00:00 2001 From: Catouse Date: Mon, 4 Jan 2021 16:52:14 +0800 Subject: [PATCH] * fix setting of wrong data-nest-path. --- module/program/view/pgmbrowsebylist.html.php | 1 + 1 file changed, 1 insertion(+) diff --git a/module/program/view/pgmbrowsebylist.html.php b/module/program/view/pgmbrowsebylist.html.php index e290becb2f..8c0942f2d6 100644 --- a/module/program/view/pgmbrowsebylist.html.php +++ b/module/program/view/pgmbrowsebylist.html.php @@ -31,6 +31,7 @@ if($program->parent and isset($programs[$program->parent])) { if($program->type != 'program') $trClass .= ' is-nest-child'; + if(empty($program->path)) $program->path = $programs[$program->parent]->path . "$program->id,"; $trClass .= ' table-nest-hide'; $trAttrs .= " data-nest-parent='$program->parent' data-nest-path='$program->path'"; }