* fix setting of wrong data-nest-path.

This commit is contained in:
Catouse
2021-01-04 16:52:14 +08:00
parent 0d0d76800c
commit be2dc52245

View File

@@ -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'";
}